Operating System - HP-UX
1834149 Members
2047 Online
110064 Solutions
New Discussion

Re: sudo - password issue

 
Anil
Advisor

sudo - password issue

Hi,

I am facing below issue on one of my 11.11 server which is in trusted mode. If I use special characters in password, I can login to server, but for sudo it wont accept the password. With normal password, its working fine.

Could anyone got any clue...

Thanks in advance,
Anil
5 REPLIES 5
Dennis Handly
Acclaimed Contributor

Re: sudo - password issue

What special characters? # or @? You may have to quote them with "\".
Anil
Advisor

Re: sudo - password issue

Thanks for the immediate response.

I am using special characters like $,@,etc. Do u mean I have to specify "\" while providing the sudo password.?

I have other server's working fine with special characters.

Thanks,
Anil
Advisor

Re: sudo - password issue

Is there any restrictions for the password in trusted mode for sudo.
Patrick Wallek
Honored Contributor

Re: sudo - password issue

Have a read through the passwd(1m) man page. I believe it mentions special characters that should be avoided. That is good practice overall, not just for sudo.
Dennis Handly
Acclaimed Contributor

Re: sudo - password issue

>Do you mean I have to specify "\" while providing the sudo password?

You may have to do that if stty is set wrong.

>Is there any restrictions for the password in trusted mode for sudo.

Check the "stty -a" settings and see if "@" shows up, probably for "kill".