1836645 Members
1674 Online
110102 Solutions
New Discussion

Re: sudo not working

 
SOLVED
Go to solution
jhingoor
Frequent Advisor

sudo not working

Hi guys,
I am a regular sudo user for root...
but today when i changed my password; my sudo is not working for me....plz help as it is a producn server.........

Password:
Sorry, try again.
Password:
Sorry, try again.
Password:
Sorry, try again.
sudo: 3 incorrect password attempts
8 REPLIES 8
Raj D.
Honored Contributor
Solution

Re: sudo not working

Jhingoor,

Check the file sudoers , any improper entry will lead to this situatoin.

# find / -name sudoers -print
# visudo and check..


Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
jhingoor
Frequent Advisor

Re: sudo not working

Hi raj,
the entry is absolutely perfect..when i change the password to old password sudo works fine for me......
Arunvijai_4
Honored Contributor

Re: sudo not working

Hi,

Does your new password contain any special characters ? Check that first.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Steven E. Protter
Exalted Contributor

Re: sudo not working

Shalom,

You have a solution to the crisis, which is the old password. I suggest you go with it a few days and take this problem to a test machine and figure out if Arun is right about special characters or whatever the issue is.

This doesn't have to be a production problem any more.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
RAC_1
Honored Contributor

Re: sudo not working

does your password contain more than 8 chars, if yes enter only first 8 chars. Also does it contain special chars like @ etc? Aviod that.
There is no substitute to HARDWORK
jhingoor
Frequent Advisor

Re: sudo not working

Hi guys,


i got it....Actually the new password i was trying was of length 10..and since hp-ux allows only 8...it just wasnt accepting....

Now its absolutely fine.........
jhingoor
Frequent Advisor

Re: sudo not working

Hi RAC,

u are absolutely right.........thanx very much.........
jhingoor
Frequent Advisor

Re: sudo not working

Thanks RAC