cancel
Showing results for 
Search instead for 
Did you mean: 

su and Login problem.

SOLVED
Go to solution
carl airiel
Advisor

su and Login problem.

I have an HP-UX 11. I have an account in that machine. When I'm login my account if working properly.BUt when I tried to make a su - or su - root command, and input my password. The system say that the user root was disabled. The message I'm getting when I use to su from my user account to oracle. What would be the proble of this?How can I resolve the problem?

Thanks.

Regards,
Allan
8 REPLIES
Muthukumar_5
Honored Contributor
Solution

Re: su and Login problem.

Is your machine trusted system?

ls -ld /tcb

If exists then your machine is trusted one. Normal user can not su to other users in trusted mode. You have to login with telnet or ssh to the machine with that user again.

--
Muthu
Easy to suggest when don't know about the problem!
Steve Steel
Honored Contributor

Re: su and Login problem.

Hi


Can you login directly as root

If not then you need to try the console and reenable the root account

Disabled because of too many failed attempts


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
DCE
Honored Contributor

Re: su and Login problem.



It sounds like the root account has been disabled (too many invalid logins, time expiration, etc)

If you have console access, logon as root at the console (you can log on the console as root even if the account is disabled.)

run the command
/usr/lbin/modprpw -k root to reactivate the account

If you do not have console access - do you have sudo access with root priveledges? if so, sudo the above command
/usr/lbin/modprpw -k root
sudo
Steven E. Protter
Exalted Contributor

Re: su and Login problem.

Shalom carl,

A direct console login using root will reactivate the account.

You can also use sam if you already have a root session open somewhere.

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
carl airiel
Advisor

Re: su and Login problem.

Yes, I have configured the system as trusted. But I did that stuff a month ago. Will i able to login in my console since i have added root in file /etc/securetty?I think I can't do that.

Thanks

Yogeeraj_1
Honored Contributor

Re: su and Login problem.

hi allan,

in the worst case, you may wish to boot into single user mode and reset the account from there...

hope this helps too!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Arunvijai_4
Honored Contributor

Re: su and Login problem.

Hi Allan,

You can enable the root account by,

# /usr/lbin/modprpw -V

Also check root account using
# /usr/lbin/getprpw root

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Mustafa Gulercan
Respected Contributor

Re: su and Login problem.

i had a problem something like that,
pls check the size of directory of root with the command as following;
#bdf
attention:if the size of /dev/vg00/lvol3 file sistem is %100 ,you must delete some file under root directory.