PDA

View Full Version : Sudo bug ?


troutrou
November 22nd, 2004, 09:46 PM
I don't quite understand this 'sudo" thing. Is it like a proper root terminal except that you must call sudo for each and every command you want to run as root ?

I was expecting sudo to therefore ask me for my password each and everytime, but it doesn't...

For example I typed "sudo /etc/init.d/./cron stop", and it asked me the PW.
Then a second later I stopped another service/daemon in the same way, but this time it did NOT ask me my PW ! :-O

Is this a bug ? Must be, it's scary !


Vince, very concerned... :-/

WW
November 22nd, 2004, 10:26 PM
Try this:
$ man sudo and read the first paragraph. You'll see this:
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 (15 minutes unless overridden in sudoers).

troutrou
November 23rd, 2004, 10:42 AM
Ah, thanks, I understand much better now, I can stop worrying, sudo is working, no bug :-)