Bash: /bin/su: Permission denied???

Discuss Sugar, upgrades and developer perspectives.

Bash: /bin/su: Permission denied???

Postby Sparky » Mon Nov 17, 2008 8:59 pm

Hello there!

I've just gotten around to trying to upgrade from build 656.

However, I've recently discovered that whenever I try to access super user I get:

[ olpc@xo-0D-2A-B7 ~]$ su -l
Bash: /bin/su: Permission denied
[ olpc@xo-0D-2A-B7 ~]$


Can anyone help me with this?
Sparky
 
Posts: 19
Joined: Tue Apr 01, 2008 1:42 am

Re: Bash: /bin/su: Permission denied???

Postby ektoric » Tue Nov 18, 2008 1:28 pm

There are various ways of how you can get into this situation, but I wouldn't bother with trying to figure them out just yet if you are going to upgrade anyway.

Instead of going to Terminal, consider going straight to a tty: press CTRL-ALT-Neighborhood. This should drop you to a text console. Press enter a few times and you should be logged in as root.
ektoric
Support Team
 
Posts: 470
Joined: Wed Jan 02, 2008 3:46 pm
Location: Austin, TX

Re: Bash: /bin/su: Permission denied???

Postby Sparky » Wed Nov 19, 2008 11:54 pm

I tried that, But now it wants a password which I don't have...
Sparky
 
Posts: 19
Joined: Tue Apr 01, 2008 1:42 am

Re: Bash: /bin/su: Permission denied???

Postby ektoric » Thu Nov 20, 2008 1:43 am

Sounds like someone put a root password on your unit. There are only a few ways out of that:
1) Boot to USB/SD, mount the nand, and edit /etc/shadow.
2) Perform a fresh USB install

option 2 is much less complex than option 1.
ektoric
Support Team
 
Posts: 470
Joined: Wed Jan 02, 2008 3:46 pm
Location: Austin, TX

Re: Bash: /bin/su: Permission denied???

Postby krubo » Thu Jan 01, 2009 12:49 pm

I'm afraid I also lost my root password. Is it possible to reset the root password without wiping the whole machine? You mention "Boot to USB..." I'm trying to boot to USB, but I'm not sure where to start. My XO won't boot off a Damn Small Linux bootable USB key, at any rate. Can you point me in the right direction? Thanks!
krubo
 
Posts: 1
Joined: Thu Jan 01, 2009 12:37 pm

Re: Bash: /bin/su: Permission denied???

Postby ektoric » Thu Jan 01, 2009 5:38 pm

The XO normally is not root password protected. So, unless you dropped to a terminal, and intentionally set your root password, chances are you don't have a root password set.

As for booting to USB, again it's not for the feint of heart: http://wiki.laptop.org/go/OS_images_for_USB_disks
ektoric
Support Team
 
Posts: 470
Joined: Wed Jan 02, 2008 3:46 pm
Location: Austin, TX

Re: Bash: /bin/su: Permission denied???

Postby ncarrol » Thu Jan 01, 2009 7:02 pm

656 has a bug in it and su - and su -l do not work:

http://wiki.laptop.org/go/Olpc-update

See section accessing root and updating olpc update.
ncarrol
 
Posts: 367
Joined: Mon Aug 25, 2008 12:38 am

Re: Bash: /bin/su: Permission denied???

Postby cuprum » Thu Jan 08, 2009 9:14 am

su also has a bug in it that causes it to ask for a password if it does not have its permissions set correctly.
cuprum
 
Posts: 87
Joined: Fri Mar 28, 2008 5:34 am

Re: Bash: /bin/su: Permission denied???

Postby Guardian » Sat Jan 10, 2009 2:23 pm

So what password is it defaulting to? Has anyone tried "root" or maybe "admin" :)
Guardian
 
Posts: 1
Joined: Sat Jan 10, 2009 2:00 pm

Re: Bash: /bin/su: Permission denied???

Postby mini_fly » Sun Jan 18, 2009 1:56 pm

I used root as a password and it accepted it.
mini_fly
 
Posts: 3
Joined: Sun Jan 18, 2009 1:26 pm

Re: Bash: /bin/su: Permission denied???

Postby aceqbaceq » Fri Jan 29, 2010 10:45 am

i've solved today exactly the same problem by adjusting permissions on all folders in root folder

all folder must be 755

and

lost+found = 770
proc = 555
root = 750
tmp =777
aceqbaceq
 
Posts: 1
Joined: Fri Jan 29, 2010 10:44 am


Return to Sugar, Linux and System Software

Who is online

Users browsing this forum: No registered users and 1 guest

cron