Operating System - HP-UX
1847174 Members
6826 Online
110263 Solutions
New Discussion

Re: password disable under hp-ux B.11.31

 
SOLVED
Go to solution
kacou
Regular Advisor

password disable under hp-ux B.11.31

I can't log to the system using "su". see the error message below
-----------------------------------------
$ su
Account is disabled - see Account Administrator
su: Sorry
21 REPLIES 21
PVR
Valued Contributor

Re: password disable under hp-ux B.11.31

Please login into the system as root from your system console. As soon as you login as root from console, the account shall get enabled

Now you try using su and it should work.
Don't give up. Try till success...
kacou
Regular Advisor

Re: password disable under hp-ux B.11.31

are you sure that my root account is not disable?
PVR
Valued Contributor

Re: password disable under hp-ux B.11.31

Account is disabled. But you can login through console.

When the root account is diabled, you can login to the system as root only from console.

As soon as you login into the system as root fromc onsole, it will be enabled automatically. If you have any other root sessions active at this time, you can execute the below command to enable it.

/usr/lbin/modprpw -k root
Don't give up. Try till success...
kacou
Regular Advisor

Re: password disable under hp-ux B.11.31

i have a root session active in other system. i try to log using ssh root@10.x.x.x
but the password still disable.
PVR
Valued Contributor

Re: password disable under hp-ux B.11.31

As root, execute the following command;

/usr/lbin/modprpw -k root

Also give me the output of

/usr/lbin/getprpw root

After executing the first command you should be able to login as root.
Don't give up. Try till success...
Jeeshan
Honored Contributor
Solution

Re: password disable under hp-ux B.11.31

Hi

did you check that, is there any password expiration has occured?

or , did you convert the shadow password?
a warrior never quits
kacou
Regular Advisor

Re: password disable under hp-ux B.11.31

yes i remember that i convert the shadow password?

Can you help me to resolve the problem now?
Jeeshan
Honored Contributor

Re: password disable under hp-ux B.11.31

then check that the /etc/nsswitch.conf file has this

passwd: files
group: files

.............

if not change the passwd line to

passwd: files
a warrior never quits
kacou
Regular Advisor

Re: password disable under hp-ux B.11.31

I don't see the /etc/nsswitch.conf but i check the /etc/nsswitch.files file. please see the result below. And what can i do after. help me please.

# vi /etc/nsswitch.files
# @(#)B.11.31_LR
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# does not use any name services.
#
passwd: files
group: files
hosts: files
ipnodes: files
services: files
networks: files
protocols: files
rpc: files
publickey: files
netgroup: files
automount: files
aliases: files
~
Jeeshan
Honored Contributor

Re: password disable under hp-ux B.11.31

you may copy the /etc/nsswitch.files to nsswitch.conf and check again.

#cp /etc/nsswitch.files /etc/nsswitch.conf
a warrior never quits
kacou
Regular Advisor

Re: password disable under hp-ux B.11.31

see the result below

# cp /etc/nsswitch.files /etc/nsswitch.conf
cp: cannot create /etc/nsswitch.conf: Permission denied
Jeeshan
Honored Contributor

Re: password disable under hp-ux B.11.31

whats the permission of nsswitch.files?
a warrior never quits
kacou
Regular Advisor

Re: password disable under hp-ux B.11.31

ll nsswitch.files
-r--r--r-- 1 bin bin 392 Jan 12 2007 nsswitch.files
Jeeshan
Honored Contributor

Re: password disable under hp-ux B.11.31

check this way

1. create nsswitch.conf files and put the all entries hav in nsswitch.files.

2. copy the file entering the /etc folders

3. what is the permission in /etc folder.

4. you can revert back your shadow password. (;-)) using pwunconv.
a warrior never quits
kacou
Regular Advisor

Re: password disable under hp-ux B.11.31

how can i create using my account? i am not root. i have permission deny.
Adam Winebaugh
Regular Advisor

Re: password disable under hp-ux B.11.31

Again! Log into root from the CONSOLE. The do what is suggested. If the root account is disabled you can still access it by logging into the account from the CONSOLE.
kacou
Regular Advisor

Re: password disable under hp-ux B.11.31

even if i convert the shadow password.
Jeeshan
Honored Contributor

Re: password disable under hp-ux B.11.31

without root password you cannot modify any root user owned file(s).

This means you need to go to single user mode to reset your password
a warrior never quits
kacou
Regular Advisor

Re: password disable under hp-ux B.11.31

How can i reset the root password on hp-ux b11.31?
Torsten.
Acclaimed Contributor

Re: password disable under hp-ux B.11.31

The answers are in the posts above yours.

As a "normal" user you can change nothing ... no account creation, no root password change.

(this would not make any sense)

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
kacou
Regular Advisor

Re: password disable under hp-ux B.11.31

After the ''pwunconv''command, am i oblige to reboot the system?