You are not logged in.

#1 2007-09-16 00:05:37

0l33l
Member
Registered: 2007-09-15
Posts: 28

Problem with sudo

Hi. I'm setting up my ArchLinux 8.1.07 distro and I'm running into issues with sudo. I installed sudo through pacman, and now after I added myself to the /etc/sudoers file, it doesn't request a password for me. I do not have the NOPASSWRD option enabled.

excerpt from my sudoers file:
dburban ALL=(ALL) ALL

On all of my previous linux setups, I was asked for the password everytime I logged in and out, or restarted. Arch doesn't ask even if i reboot. The only way I got it to ask for the password was to delete my user and set it up again. But it didn't solve the problem, it just asked for the password once, and now doesn't ask for it anymore.

Specs: Thinkpad T61
14"
1gb DDR2
80gb HD
Intel 4965AGN

Thanks in advance smile

Offline

#2 2007-09-16 00:15:30

tam1138
Member
Registered: 2007-09-10
Posts: 238

Re: Problem with sudo

Please post the entire /etc/sudoers file (well, all lines that aren't comments, at least smile ).

Offline

#3 2007-09-16 00:40:36

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: Problem with sudo

I could be wrong here, but I find that it appears to be time based, or at least that's what I've always chalked it up to when it's happened to me.  For instance, if I use the sudo command, enter a password, reboot within 3-5 minutes, and then use another sudo command sometimes it works without prompting me.


thayer williams ~ cinderwick.ca

Offline

#4 2007-09-16 01:08:03

tam1138
Member
Registered: 2007-09-10
Posts: 238

Re: Problem with sudo

Yes, there is a "session" type behavior to sudo, as controlled by the passwd_timeout parameter, such that you enter the password once and it doesn't bug you again for n minutes (default 5).  But I got the impression from the OP that it was *never* prompting him for a password.  Did I misunderstand?

Offline

#5 2007-09-16 01:10:36

0l33l
Member
Registered: 2007-09-15
Posts: 28

Re: Problem with sudo

I guess it is on a timeout system. I guess I never knew that because I never had to use it much, and then restart.

# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# 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) SETENV: ALL

# Uncomment to allow people in group wheel to run all commands
# and set environment variables.
# %wheel    ALL=(ALL) SETENV: ALL

# Same thing without a password
# %wheel    ALL=(ALL) NOPASSWD: SETENV: ALL

# Samples
# %users  ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users  localhost=/sbin/shutdown -h now
dburban ALL=(ALL) ALL

Offline

#6 2007-09-16 01:45:16

tam1138
Member
Registered: 2007-09-10
Posts: 238

Re: Problem with sudo

Please try to narrow down exactly what you're seeing (eg, do you ever have to enter a password? does it indeed not prompt you again for 5 minutes? etc.) so we can help. smile

Offline

#7 2007-09-16 01:55:50

0l33l
Member
Registered: 2007-09-15
Posts: 28

Re: Problem with sudo

Thanks guys! It turns out that there is the session type behavior to sudo. I guess I never encountered it with the other distributions.

Offline

Board footer

Powered by FluxBB