Operating System - HP-UX
1846648 Members
2034 Online
110256 Solutions
New Discussion

Shadow installation on HPUX 11

 
Emanuele_4
Regular Advisor

Shadow installation on HPUX 11

Hello.

I've a problem.

We need to administrate the accounts password so that it won't be possible to use password with less than 6 character, for more than X month ecc ecc.

Actually we use the "classic" /etc/passwd without shadow.

Can someone help me? I'm lookin for information to install shadow, pam or anything else could be useful.

Is there any information to install shadow suite?

I'm using HPUX B11.00 U on a HP9000 (L1000 & L3000)

PS "man shadow" doesn't exist! ;-(
14 REPLIES 14
Robert-Jan Goossens
Honored Contributor

Re: Shadow installation on HPUX 11

Pete Randall
Outstanding Contributor

Re: Shadow installation on HPUX 11

Emanuele,

HP has a product called "HP-UX Shadow Passwords ". It's free, I believe. See this thread for details:

http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0xe14163f96280d711abdc0090277a778c%2C00.html&admit=716493758+1067955109584+28353475


Pete



Pete
Jeff Schussele
Honored Contributor

Re: Shadow installation on HPUX 11

Hi Emanuele,

There is a Shadow Password product available for HP-UX - here:

http://www.software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=ShadowPassword

Unfortunately it's available for 11i only.

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

Re: Shadow installation on HPUX 11

Shadow product is freely available.

Min OS 11.00.

pwconv to start using /etc/shadow.

pwuconv to revert back.

Putting system in trusted mode is better option.

There is no substitute to HARDWORK
Emanuele_4
Regular Advisor

Re: Shadow installation on HPUX 11

Thanks to everyone...

So I need version 11.11 or 11i to install shadow?

With my v11.0 I've already seen that the command pwconv exists on the system (but not pwuconv)...but I'm not so sure to launch it....doesn't it make trouble with user accounts, does it?

I dont' want to make my system trusted (not now!)...it's enought to enable shadow...but I'm afraid to what can happen when I run pwconv...

sorry...I'm at the beginning...
Robert-Jan Goossens
Honored Contributor

Re: Shadow installation on HPUX 11

No problem,

Requirements and Restrictions for shadow passwd
This product requires HP-UX 11.11 is the same as 11.i

Regards,
Robert-Jan.
Emanuele_4
Regular Advisor

Re: Shadow installation on HPUX 11

Ok, thanks for the answers.

So I've two choices:

1) Upgrade the system to HPUX 11i and install shadow suite.
2) Upgrade the system to become a Trusted System.

I think I'll convert to Trusted system and I've already noticed the presence of SAM.

When I ran SAM -> Auditing and Security -> System Security Policy
it told me I have to convert to trusted system and It can made the conversion by
1) creating a protected database
2) moving the password from etc/passwd to the database
3) replacing the passwd field in etc/passwd with an *

It seems it's not a problem making this conversion...but I'm afraid about the consequences on the system...

Did anybody make this conversion with SAM?
After the conversion, is it anything right?

Emanuele
RAC_1
Honored Contributor

Re: Shadow installation on HPUX 11

After converting to trusted system, all user passwords are going to expire.

To avoid that just run following command.

/usr/lbin/modprpw -V
There is no substitute to HARDWORK
Jeff Schussele
Honored Contributor

Re: Shadow installation on HPUX 11

Hi (again) Emanuele,

Another side affect of converting to Trusted is that any PWs greater than 8 chars will be truncated to 8. Then if users enter their old PW - even correctly - it will not be accepted. BUT if they enter *just* the first 8 of their original PW - it will be accepted.

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

Re: Shadow installation on HPUX 11

Hello to everybody again!

First of all I should thank everybody!
It's my firt post in this forum and I didn't think I would receive so many answers in a few minutes!

Second...you are helping me very much...so I'll surely give some points (In the free time I'll look at the graduating system of the forum!)

Third...

Ok, I'm almost convinced to upgrade to trusted system and I'll try to avoid pwd expiration.

Any impacts on the system?

Thanks again and sorry for my english!

Emanuele

PS I read I shouldn't use NIS to convert to trusted system...how can I discover if I'm using NIS?
Robert-Jan Goossens
Honored Contributor

Re: Shadow installation on HPUX 11

Hi Emanuele,

# ypwhich
ypwhich: the NIS domain name hasn't been set on this machine

If above command displays above message you are not running nis.

Robert-Jan.
Emanuele_4
Regular Advisor

Re: Shadow installation on HPUX 11

Thanks very much Robert!

The ypwhich command told me exactly what I wanted!

So, I'll convert to trusted system asap on the dev system (to use like a test machine)...

I'll post the results of the convert process.
For now...thanks to everybody

Emanuele.
Emanuele_4
Regular Advisor

Re: Shadow installation on HPUX 11

Hello again!

A question for RAC: you suggested me to use
modprpw -V

I found that no man exist on this command.
So...should I run this command before or after the trusted system conversion?

I think I should convert to trusted system and than run modprpw...but prefer ask pefore making disasters! ;-)

But, if I run the command after the conversion, the old passwords aren't expired?

Thanks for eny help!

by

Emanuele
Bill Hassell
Honored Contributor

Re: Shadow installation on HPUX 11

man modprpw only exists on 11i systems or you can read the man page at docs.hp.com (see also getprpw and prpw). When you run SAM and enter the "Auditing and Security" section, selecting the first item "Auditing Events" will ask you about converting to Trusted. If you say yes, the conversion will take place. This is the supported way although you can use the undocumented /usr/lbin/tsconvert which is how SAM performs the task. Note that *everything* in /usr/lbin is considered 'backend' and subject to undocumented changes.

AS far as affecting your system, going Trusted allows you to add a lot more security to your system in the form of password controls, expiration, login restrictions, etc. A Trusted system *is* a shadow password design but far more sophisticated than the old shadow system. Whetre you may find difficulties is with application programs that have archaic code for authentication that acceses the password files directly rather than using PAM modules. If this turns out to be the case, the /usr/lbin/tscovert -r (-r=revert, -c=convert) command can put everything back to normal.

Since a Trusted system understands and honors long passwords, a user that had a long (more than 8 chars) password must type only the first 8 in a Trusted system to login. Once in, the user may then create a new password that is longer than 8 chars and it will be validated only when the exact password is entered. And conversely, if a user picks a long password and the system is subsequently converted back to non-Trusted, the password will never work and must be reset by root.

While this may seem complicated, trusted systems do offer a clean and stable way to ensure good security controls, most of which are not available in a non-trusted system.


Bill Hassell, sysadmin