You are not logged in.
Pages: 1
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
Offline
Please post the entire /etc/sudoers file (well, all lines that aren't comments, at least ).
Offline
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
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
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
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.
Offline
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
Pages: 1