You are not logged in.

#1 2011-12-08 23:49:39

inkdinky
Member
Registered: 2011-12-08
Posts: 66

sudo operates differently on two comps using arch.

I have two different computers running arch.
On one when I sudo I have to enter a password.
On the other when I sudo I don't have to enter the password.
Can anyone explain what I did that has produced this different behavior?
I'm guessing it has to do with either visudo or wheel when I set up the user.
Thanks in advance.

Offline

#2 2011-12-09 00:09:18

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: sudo operates differently on two comps using arch.

Just compare the /etc/sudoers files between the two computers.

Offline

#3 2011-12-09 00:09:32

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: sudo operates differently on two comps using arch.

inkdinky wrote:

I'm guessing it has to do with either visudo or wheel when I set up the user.

This.

Are the /etc/sudoers files identical?

Offline

#4 2011-12-09 05:09:53

kyla
Member
From: Arlington, VA
Registered: 2011-03-12
Posts: 112
Website

Re: sudo operates differently on two comps using arch.

Presumably on one computer you have one of these lines uncommented and the other uncommented on the second.


In /etc/sudoers:

## Uncomment to allow members of group wheel to execute any command
# %wheel ALL=(ALL) ALL

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

Offline

#5 2011-12-09 16:49:09

inkdinky
Member
Registered: 2011-12-08
Posts: 66

Re: sudo operates differently on two comps using arch.

Thanks! that was it all right.

Offline

Board footer

Powered by FluxBB