View Full Version : sudo -s ...
massebasse
Jul 30, 2001, 08:56 PM
When typing sudo -s in teh terminal i became root witout typing in the password. Should it be that way?
I mean, if i typ: sudo reboot
or something the password is needed ...
Insecure, bug or feature?
Jadey
Jul 30, 2001, 10:25 PM
Maybe you have set your root password to nothing. According to man, the -s option "runs the shell specified by the shell environment variable", which has nothing to do with not typing in a password. I tried sudo -s in a terminal here, and I was prompted for a password.
I would run your NetInfo Manager and reset that root password.
Eugene
Aug 2, 2001, 03:24 AM
If you used sudo immediately before, it won't prompt you for a passphrase. It uses a timer I believe.
Eugene
Aug 2, 2001, 03:53 AM
If you used sudo immediately before, it won't prompt you for a passphrase. It uses a timer I believe.
Scrod
Aug 2, 2001, 05:51 AM
Yep. From the sudo man page:
Once a user has been authenticated, a timestamp is updated and the user may then use sudo without a password for a short period of time (five minutes by default).
Angus_D
Aug 5, 2001, 01:38 PM
By the way when you use sudo you use *YOUR* admin account password, not the root password. When you use su, you use the root password.
vBulletin® v3.8.8, Copyright ©2000-2024, vBulletin Solutions, Inc.