Operating System - HP-UX
1830931 Members
2372 Online
110017 Solutions
New Discussion

Sudo error , sorry try again

 
Salm
Frequent Advisor

Sudo error , sorry try again

Hi ,

I have rx2620 servers with OS 11.23 ia. their is sudo version 1.6.8p12 installed.

I can log in as user with my passwd, but whene I try to become root and run the command sudo vi is not accept my passwd give me the error " sorry try again "

I tried ever times but same error.

I have no clue ,
Any one can advice ?

6 REPLIES 6
skt_skt
Honored Contributor

Re: Sudo error , sorry try again

could you post the the entry of that user in sudo config file ..


Also could you post the "how" u tried what the exact error.. a copy paste..
Salm
Frequent Advisor

Re: Sudo error , sorry try again

The problem for newly created users .

root@xxxx $ cat /etc/sudoers | grep bk79
bk79 ALL=ALL,RCMNDS,SHELLS

the user can successfully log in with his id and passwd but not able to do sudo .

here is the output

root@xxxx $ login bk79
Password:
Last successful login for bk79: Tue Feb 5 19:14:22 EST5EDT 2008 on pts/0
Last unsuccessful login for bk79: NEVER
Please wait...checking for disk quotas
(c)Copyright 1983-2003 Hewlett-Packard Development Company, L.P.
(c)Copyright 1979, 1980, 1983, 1985-1993 The Regents of the Univ. of California
Out put truncate


$ who
bk79 pts/0 Feb 5 23:04



$ /usr/local/bin/sudo vi

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

Password:
Sorry, try again.
Password:




likid0
Honored Contributor

Re: Sudo error , sorry try again

To discard any problem with the sudoers file,you can login as the user and then do a /usr/local/bin/sudo -l , it will give you a list of commands that the user can launch with sudo.
Windows?, no thanks
skt_skt
Honored Contributor

Re: Sudo error , sorry try again

what do "/usr/local/bin/sudo -l" for that user?
Salm
Frequent Advisor

Re: Sudo error , sorry try again

This not help me. Is shows only one command roo = ALL . I already tried .


Now I found one thing I jsut change passwd of the user again and now able to sudo vi. I dont know why this behaviur.each newly created user has same problem . initial passwd not accepted but whe I changes passwd for each user. I'm able to sudo vi .

Is any one knows what is the reason.

Regards
likid0
Honored Contributor

Re: Sudo error , sorry try again

Could it be that the accounts are blocked,locked,expired and that's why it doesn't let you use sudo.

Can you check it out ?
Windows?, no thanks