You are not logged in.

#1 2008-08-10 20:00:26

lldmer
Member
From: Amsterdam
Registered: 2008-05-17
Posts: 119

[solved] sudo: No password needed before graphical login?

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

#2 2008-08-10 22:30:01

faw
Member
Registered: 2007-06-09
Posts: 18

Re: [solved] sudo: No password needed before graphical login?

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

#3 2008-08-10 22:44:23

lldmer
Member
From: Amsterdam
Registered: 2008-05-17
Posts: 119

Re: [solved] sudo: No password needed before graphical login?

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 tongue

Last edited by lldmer (2008-08-10 22:44:53)


For lack of better words: chair, never, toothbrush, really. Ohw, and fish!

Offline

#4 2008-08-11 12:51:56

lldmer
Member
From: Amsterdam
Registered: 2008-05-17
Posts: 119

Re: [solved] sudo: No password needed before graphical login?

Ok, nvm smile

Note to self: test while sober before posting.


For lack of better words: chair, never, toothbrush, really. Ohw, and fish!

Offline

Board footer

Powered by FluxBB