Operating System - HP-UX
1753787 Members
7472 Online
108799 Solutions
New Discussion юеВ

hp unix 11 password are not required

 
SOLVED
Go to solution
walid salah faroun
Occasional Advisor

hp unix 11 password are not required

I've inherited a system that does not require any passwords when login. Can somebody let me know what do i need to secure that?
13 REPLIES 13
Geoff Wild
Honored Contributor
Solution

Re: hp unix 11 password are not required

No passwords? What users are there? Check /etc/passwd

Go through them, and set password - either from sam or command line:

passwd userid


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
walid salah faroun
Occasional Advisor

Re: hp unix 11 password are not required

i did that, but still no password is prompted even root. thanks for the help
Hazem Mahmoud_3
Respected Contributor

Re: hp unix 11 password are not required

If you "su" to any user from root, it will not prompt you for a password. What you can do is "su" to a user from root (will not be prompted for a password), and then try to "su" to root from that user. At that point it should prompt you for a password if they are setup.
If you still aren't getting prompted, then it probably has to do with the password file. Is it a trusted system?

-Hazem
Hein van den Heuvel
Honored Contributor

Re: hp unix 11 password are not required



Check out the .rhosts files?

Hein.
Marvin Strong
Honored Contributor

Re: hp unix 11 password are not required

Wild guess here.
check your /etc/pam.conf file.

login should have:
auth required
account required
session required
password required

in the appropriate sections.
walid salah faroun
Occasional Advisor

Re: hp unix 11 password are not required

Thanks for all the help.
Here is what I've have so far, I am still getting the same problem

Hazem - The system is not trusted
there is no .rhost file
/etc/pam.conf file is ok -every thing is tagged required.

Di you think I can blow away the passwd file and recreate it using some tool?
Geoff Wild
Honored Contributor

Re: hp unix 11 password are not required

Let me get this straight - if you open up a new telent window, and telnet to this machine, if you enter root as the login , hit enter, you get no password prompt?

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
walid salah faroun
Occasional Advisor

Re: hp unix 11 password are not required

yes - that's the problem. I telnet and login as root without password prompt. I think the passwd file might be corrupted.
Jeff Schussele
Honored Contributor

Re: hp unix 11 password are not required

Hi Walid,

In the /etc/passwd file is the second field null = i.e. like

username::UID:GID:GEICOS:HOME_DIR:SHELL

If so, then you can just hit at the PW prompt because, in fact, there is NO PW.
Then all you need to do is set PWs for the users.

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