You are not logged in.
Yesterday I was messing around a bit with SLiM. I didn't configure any sessions for it however, so I was forced to login trough a VT.
The funny thing is, on the VT, before loging in with a graphical manager, sudo didn't ask for a password. This was also the case when I using gdm. After I logged on to a graphical desktop, sudo would also ask for a password in de VT.
My /etc/sudoers:
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
# Failure to use 'visudo' may result in syntax or file permission errors
# that prevent sudo from running.
#
# See the sudoers man page for the details on how to write a sudoers file.
#
# Host alias specification
# User alias specification
# Cmnd alias specification
# Defaults specification
# Runas alias specification
# User privilege specification
root ALL=(ALL) ALL
# Uncomment to allow people in group wheel to run all commands
%wheel ALL=(ALL) ALL
# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
Does anybody know if this is default behavior? Or is it more likely I made a mistake in some error file?
Last edited by lldmer (2008-08-11 12:51:23)
For lack of better words: chair, never, toothbrush, really. Ohw, and fish!
Offline
On my machine sudo 'remembers' me for up to five minutes so if you had used sudo just prior to that time this might be what is happening.
from 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 (5 minutes unless
overridden in sudoers).
Otherwise, I am not sure.
Offline
Hmm, yes. The thing is, it was right after a fresh reboot. I tried it 3 times to see if I didn't just make a mistake (like forgetting I already used sudo). I'll try again tomorrow, cause it might just be the cannabinol making me forget stuff
Last edited by lldmer (2008-08-10 22:44:53)
For lack of better words: chair, never, toothbrush, really. Ohw, and fish!
Offline
Ok, nvm
Note to self: test while sober before posting.
For lack of better words: chair, never, toothbrush, really. Ohw, and fish!
Offline