Operating System - HP-UX
1834935 Members
2286 Online
110071 Solutions
New Discussion

Re: 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!
Geoff Wild
Honored Contributor

Re: hp unix 11 password are not required

Is there a /etc/hosts.equiv??? with just a + sign in it?

Run pwck on your /etc/passwd file

If it is bad, to recreate it - Boot from recovery CD and copy standard
passwd file to /etc

You will lose all the users....

You will have to set the root password before you reboot...



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.
G. Vrijhoeven
Honored Contributor

Re: hp unix 11 password are not required

Hi,

If it is not the PAM file, and you tried resetting the passwd file. I do not know a tool to recreate the passwd file. If you have an other server you could copy that file. You can also use vipw and delete all unnessesery lines. If this does not help I would go for a clean install. On a system like that there can be a lot more not configured correct.
Is this possible, no apps running?

Gideon
walid salah faroun
Occasional Advisor

Re: hp unix 11 password are not required

Thanks Jeff - I did changed the password for the root and now I am getting the password prompt.

Thanks everybody
Marvin Strong
Honored Contributor

Re: hp unix 11 password are not required

I would make a copy of the passwd file, before you replace it tho. So you have something to reference, when recreating your users.

However, I think I would get a good backup of application data, and do a fresh install.

copy the current passwd file to another machine for reference after you rebuild.

I wouldn't trust that machine, in my environment, how can you guarantee system integrity?

Of course this may not be possible.