Operating System - HP-UX
1825605 Members
2835 Online
109682 Solutions
New Discussion

Switching to user accounts from root asking for password

 
Phani_4
Frequent Advisor

Switching to user accounts from root asking for password

Hi,

The HP-UX server is in trusted mode. From past few days we started facing a strange problem. When 'root' user tries to switch to any user using 'su' command it is prompting for a paaaword.

If anybody knows about this, please give me the solution to get out of this problem.

Thanks,
Phani
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: Switching to user accounts from root asking for password

never seen that.

run this please:

pwck

It may show problems that need to be dealt with.

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
Robert-Jan Goossens
Honored Contributor

Re: Switching to user accounts from root asking for password

Hi Phani,

OS version 11.11 or 11.0 ?

Robert-Jan
Pete Randall
Outstanding Contributor

Re: Switching to user accounts from root asking for password

Phani,

Are you sure that you truly are root? Try either logging in directly as root or doing a su to root first.


Pete

Pete
Sridhar Bhaskarla
Honored Contributor

Re: Switching to user accounts from root asking for password

Hi Phani,

When you are 'root' do an 'id' and make sure it is showing 0.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Jeff Schussele
Honored Contributor

Re: Switching to user accounts from root asking for password

Hi Phani,

Try the following commands:

whoami
who am i

If whoami returns root - you are truly root.
If not you're not

who am i should always return the "true" login name - even if you su / sudo to root.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Jawed Akhtar
Advisor

Re: Switching to user accounts from root asking for password

It happens when you login through a normal user then
$su -
#su user (root changed to user "user" but prompt remain # same and you think ur root but actually the id is of user.
THen you mistakenly try once agian
su - user and then u r asked for password.

ALways check id before using su to user.

Jawed