Author Topic: Su Asks For Password!  (Read 3187 times)

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Su Asks For Password!
« 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
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0

bluedevils

  • Hero Member
  • *****
  • Posts: 1284
    • View Profile
    • http://
Su Asks For Password!
« Reply #1 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.
« Last Edit: April 10, 2006, 09:41:19 am by bluedevils »
I'm now an iphone user and use my zaurii as serial terminals, perl and shell scripting and when I need 640x480 screens

sl-c3100/pda cacko 1.23 | sl-6000l/needs battery | sl-c760/server pdaxrom rc12 | Former sl-5500/tkcrom owner (sister's birthday gift)

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Su Asks For Password!
« Reply #2 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
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0

bluedevils

  • Hero Member
  • *****
  • Posts: 1284
    • View Profile
    • http://
Su Asks For Password!
« Reply #3 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"
I'm now an iphone user and use my zaurii as serial terminals, perl and shell scripting and when I need 640x480 screens

sl-c3100/pda cacko 1.23 | sl-6000l/needs battery | sl-c760/server pdaxrom rc12 | Former sl-5500/tkcrom owner (sister's birthday gift)

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Su Asks For Password!
« Reply #4 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
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0

bluedevils

  • Hero Member
  • *****
  • Posts: 1284
    • View Profile
    • http://
Su Asks For Password!
« Reply #5 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!
I'm now an iphone user and use my zaurii as serial terminals, perl and shell scripting and when I need 640x480 screens

sl-c3100/pda cacko 1.23 | sl-6000l/needs battery | sl-c760/server pdaxrom rc12 | Former sl-5500/tkcrom owner (sister's birthday gift)