Thread: root password
View Single Post
Posts: 515 | Thanked: 266 times | Joined on Nov 2009 @ Oelsted, Denmark
#23
Originally Posted by javispedro View Post
Note: please check if you're not setting the suid bit on the entire busybox binary. (su might be a symlink to busybox)

If you are, then you will in trouble soon.

Suggestion: forget about everything said on this thread and just use "root" or "sudo gainroot".
You're absolutely right... It IS a symlink to busybox:
Code:
N900:~$ ls -l /bin/su 
lrwxrwxrwx 1 root root 7 2010-05-11 20:11 /bin/su -> busybox
In my defense, I did say "I'm not sure this is something I would want to do"...

To clean up the mess run this:
Code:
su -
chmod u-s /bin/su
And as said earlier as 'user' just type 'root' to become root (no password needed).

After this change You won't be able to use 'su -' anymore.
__________________
Christian Wilken - tux-POWER.dk!
... May the Source be with You ...

Last edited by DrWilken; 2010-12-24 at 10:49.