OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Sharp ROMs => Topic started by: daniel3000 on April 10, 2006, 09:12:11 am

Title: Su Asks For Password!
Post by: daniel3000 on April 10, 2006, 09:12:11 am
Hello,

restoring my zaurus setup now after my main unit has been stolen...
just installed Cacko 1.23b1 successfully and now wondering about why su asks for a password?!

I can enter "sudo su" in order to become super user, then it doesnt ask for a password.
But if I just enter "su" it requires a password, which I have never set and don't know.

Any ideas why this is and how can I delete that password? as root "passwd" then pressing enter twice does not delete the password...

thanks!
daniel
Title: Su Asks For Password!
Post by: bluedevils on April 10, 2006, 09:39:25 am
The passcode set in security is the root password.  Sudo opens a temp shell as super user already so no *root* password is required to su.  Only your user password maybe required

I've never heard of using sudo su, but I have used sudo bash to get a root shell.  I wonder what the differences are.
Title: Su Asks For Password!
Post by: daniel3000 on April 10, 2006, 09:54:25 am
Quote
The passcode set in security is the root password.  Sudo opens a temp shell as super user already so no *root* password is required to su.  Only your user password maybe required

I've never heard of using sudo su, but I have used sudo bash to get a root shell.  I wonder what the differences are.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=122490\"][{POST_SNAPBACK}][/a][/div]


hmm - good idea. I just tried it. I've indeed set a passcode before.
But when I enter it after "su" I get "Password incorrect".
Also, if I clear the passcode again, su still asks for the password.
How can I delete the super user password?

Thanks
daniel
Title: Su Asks For Password!
Post by: bluedevils on April 10, 2006, 10:13:52 am
if you can sudo bash (or if sudo su works for you) you can always type "passwd root"
Title: Su Asks For Password!
Post by: daniel3000 on April 10, 2006, 10:16:04 am
Quote
if you can sudo bash (or if sudo su works for you) you can always type "passwd root"
[div align=\"right\"][a href=\"index.php?act=findpost&pid=122499\"][{POST_SNAPBACK}][/a][/div]

Ah, okay. Thanks. Now the password is gone.
But it still asks for a password. I have to press enter (entring "no" password).
Once upon a time <g>, it even didn't ask me for a password. Any way to get back to that? It was more convenient.

daniel
Title: Su Asks For Password!
Post by: bluedevils on April 10, 2006, 10:44:35 am
I'm not sure on this, but probably you can delete the password entry in /etc/shadow.  I do not mean delete root's entry, but the encrypted password inbetween the first set of colons after the word root.  Make a backup of the file before hand!