LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-23-2012, 06:17 AM   #1
Skyer
Member
 
Registered: Aug 2011
Posts: 113

Rep: Reputation: 6
sudo - always wrong password


Hello,
I'm having problem with my sudo. It always denies my attempt as if my password was incorrect. There is a clear time difference when I write correct and incorrect password (sudo always lags for a second when user enters wrong password).

My distribution is Arch linux.

I installed fresh version of sudo, problem can be reproduced.

Code:
[root@sigma /]# sudo -V
Sudo version 1.8.5p2
...
[root@sigma /]# ls -l /etc/sudoers
-r--r----- 1 root root 2849 May 31 13:37 /etc/sudoers
If /etc/sudoers is configured to forbid me usage of sudo, it asks me for password, but never accepts authentication.

Behavior is same when I allow sudo usage for wheel group and add myself to wheel group.

Code:
[root@sigma /]# cat /etc/sudoers|grep wheel
## Uncomment to allow members of group wheel to execute any command
%wheel ALL=(ALL) ALL
# %wheel ALL=(ALL) NOPASSWD: ALL
[root@sigma /]# su skyer
[skyer@sigma /]$ groups
wheel audio users wireshark skyer
I can log in using 'login' normally. (login, the program for standard log ins).

If I allow access for wheel without password, it seems to work.


I have no idea where the problem could be,
thank you for your help.
 
Old 06-24-2012, 01:42 AM   #2
Babertje
Member
 
Registered: Jun 2009
Location: Haarlem, The Netherlands
Distribution: Archlinux
Posts: 125

Rep: Reputation: 20
is this your last uncommented line? any below this one can overide the wheel entry
 
Old 06-24-2012, 04:34 AM   #3
Skyer
Member
 
Registered: Aug 2011
Posts: 113

Original Poster
Rep: Reputation: 6
Yes, it is the last.
 
Old 06-24-2012, 04:49 AM   #4
PhoenixAndThor
Member
 
Registered: Sep 2009
Location: Geogia, USA
Distribution: Ubuntu, Debian, Live CDs
Posts: 213

Rep: Reputation: 39
AFAIK, you have two options right now.

1. Set a new password for your user account.

2. Create a new user group and add your user account to it. Then use 'visudo' to add it to the config file.

Furthermore, you should note that any changes to sudo usually don't take affect until you log out and log back in again. When in doubt, restart your computer. If that doesn't work, then it may not be just sudo that has a problem.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] sudo su: wrong password try again greed109 Linux - Newbie 13 12-21-2011 03:00 PM
sudo password not same as root password - ubuntu 11.04. hence can't access partitions daudiam Linux - Newbie 1 09-03-2011 11:02 AM
my sudo password is not the root password newbiesforever Linux - General 7 01-02-2010 09:59 PM
scp needs three times password in wrong password case!!! JATA01 Programming 6 12-01-2008 05:28 AM
Using sudo, sytax error with visudo...what am I doing wrong? Baix Linux - General 4 02-08-2005 03:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration