[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Correct sudoers file configuration



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/26/09 08:42, Jason Filippou wrote:
> Hello,
> 
> When I first installed squeeze on my system, and being oblivious as to
> the presence of any sudoers file in general, I asked a friend to help me
> with the setting up of the sudoers file. I have a sneaking suspicion,
> however, that the configuration applied might be flawed, since whenever
> I'm required to input my password by sudo (to download and install
> software, for instance), the password required is my account password,
> and not the sudo password. Here is my sudoers file:
> 
> # Host alias specification
> 
> # User alias specification
> 
> # Cmnd alias specification
> 
> # User privilege specification
> root    ALL=(ALL) ALL
> jason   ALL=(ALL) ALL
> # Uncomment to allow members of group sudo to not need a password
> # (Note that later entries override this, so you might need to move
> # it further down)
> # %sudo ALL=NOPASSWD: ALL
> 
> I suspect that something may be wrong at line
> 
>  jason   ALL=(ALL) ALL
> 
> Anybody can help me with this?
> 
> Thanks,
> Jason


I thought sudo was meant to use your password, not the root/sudo
password? If you want to change that behaviour, use the following line
at the start of the file:

Defaults:rootpw


Hope that works

- -- 
Many thanks
Harry Rickards (GPG Key ID:646ED06A)

- -----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GAT/GCM/GCS/GCC/GIT/GM d? s: a? C++++ UL++++ P- L+++ E--- W+++ N o K+
w--- O- M- V- PS+  PE Y+ PGP++ t 5 X R tv-- b+++ DI D---- G e* h! !r y?
- ------END GEEK CODE BLOCK------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkobpIQACgkQ1kZz3mRu0GpXZQCgs5yCWCaEPG638ebIs6yupD9i
s14AoIGqT2Qumvrj/fMdG7iBuGohs5F3
=CHxQ
-----END PGP SIGNATURE-----


Reply to: