Enforcing password change


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Enforcing password change
# 1  
Old 09-18-2002
Enforcing password change

Hi I am using SUN_Unix and HPUX. We have a discussion of how to force people to change their passwords every 90 days I suppose.

I have seen the case where I log on to a system, which I have my password change with in the last 90 days, the system would prompt me to change the password immediately. Like I run the passwd command by my self.

I would like to reproduce the situation. Where the user login, if the password have been changed for a period of time the system will ask for the new password.

Thanks in advance
Vu
# 2  
Old 09-18-2002
Tools

u want to write a script???
or u need options...
man useradd in solaris...
or admintool
raju
# 3  
Old 09-18-2002
For HP I'm not sure - the man page for passwd mentions a /etc/default/security file which keeps a history but did not mention /etc/default/passwd which, in Solaris, allows you to set different limits. It may be the same but I can't tell (or test at the moment)- check out the man page for passwd.

On Solaris, /etc/default/passwd is the file you want. Again, check out the man page for passwd which explains it all.

Note that the changes in HP and Solaris will not work on NIS accounts. NIS+ on Solaris has a different solution I believe.
# 4  
Old 09-19-2002
Nice to be back on this forum - I was a regular in the old days, it's very encouraging to see how this board has expanded.

Anyway vtran4270 you can utilise SAM on HP-UX to set various account password options such as password lifetimes, password expiration, allowed time between password changes etc. Once you enter the SAM GUI or TUI navigate as follows: Auditing and Security > System Security Policies > Password Aging Policies.

I cannot determine from the information you have given if you are running a trusted HP-UX system. If not, you may want to look into converting to a trusted system, it provides many additional security benefits as well as a new range of options in managing and controlling system accounts. Once the system is trusted the account details are held under /tcb and you can utilise the command /usr/lbin/getprpw and /usr/lbin/modprpw to view and change account parameters for specific users. These are powerful and very useful commands - read the man pages for more details.

If you're not running a trusted system make sure you undergo a brief feasability study to ensure certain services will not suffer when you convert to trusted system, certain account changes can cause services running under those accounts to error next time they are restarted, and I have experienced this before.

Hope this helps.
alwayslearningunix
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Forum Support Area for Unregistered Users & Account Problems

Password sent via reset password email is 'weak' and won't allow me to change my password

I was unable to login and so used the "Forgotten Password' process. I was sent a NEWLY-PROVIDED password and a link through which my password could be changed. The NEWLY-PROVIDED password allowed me to login. Following the provided link I attempted to update my password to one of my own... (1 Reply)
Discussion started by: Rich Marton
1 Replies

2. AIX

Change password to blank password

AIX 6.1 User has a password set. It needs to be a blank password (no password). smit passwd enter user name at change password and confirm password, just press ENTER Afterwards, I could not log on with blank password or with original password. How can I change the password to a... (2 Replies)
Discussion started by: landog
2 Replies

3. Linux

Change password

Hello People, How can i make linux's ssh ask a new password when the user's password is expired? I have some linux servers with this feature working, but other aren't. I've already tried to use chage -D 0 and other arguments, but it's not working as I expected. (1 Reply)
Discussion started by: alfastar
1 Replies

4. UNIX for Dummies Questions & Answers

Help with Password Change

When I am trying to change the password of my account. I could see the following error: passwd: Changing password for ramu Enter existing login password: passwd: Sorry: less than 14 days since the last change. Permission denied Is anybody out there who can help me in changing my password? (4 Replies)
Discussion started by: bobby1015
4 Replies

5. Solaris

Enforcing password length.

I would like to enforce the users to use 15 character passwords. I have edited the /etc/default/passwd and given PASSLENGTH=15. What i noticed is that when user changes the password next time, it will enforce the a 15 character password but during the next logon, it verifies only first 8... (5 Replies)
Discussion started by: uxadmin007
5 Replies

6. Solaris

Solaris 8 - Asks for current root password when trying to change root password.

Hello All, I have several solaris boxes running Solaris 8. When changing root passwords on them, all will simply ask for the new root password to change and of course to re-type the new password. One of the systems however asks for the existing root password before it will display the new password... (8 Replies)
Discussion started by: tferrazz
8 Replies

7. Shell Programming and Scripting

how to change root password using shell script with standard password

Hi Friends. I am new to scripting now i want to change the root password using the script with standard password. which is the easy scripting to learn for the beginner, Thanks in advance. (2 Replies)
Discussion started by: kurva
2 Replies

8. HP-UX

change password in one go

Hi all, I need to change the password of any user in one go. For example in Linux we have two options :- (echo "username:password") | chpasswd or echo $PASS | passwd $USER --stdin This changes the password without prompting. Actually, I need to make a script which adds a user and... (0 Replies)
Discussion started by: vikas027
0 Replies

9. UNIX for Advanced & Expert Users

change password ??

Hey all, How to reset the password to a given user id ?? I used passwd commands, but now for that user there are 2 passwords. i.e the old and new passwords. as : passwd mqcfaostt oldpassword : pass1 new password : pass2 Confirm new password : pass2 Now, su - mqcdaostt is working for... (4 Replies)
Discussion started by: varungupta
4 Replies

10. UNIX for Dummies Questions & Answers

Change password by pushing encrypted password to systems

I'm tasked to change a user's password on multiple Linux systems (RH v3). I though copying the encrypted password from one Linux /etc/shadow file to another would work but I was wrong. The long term solution is to establish an openLDAP Directory service, but for now I'm stuck with a manual... (1 Reply)
Discussion started by: benq70
1 Replies
Login or Register to Ask a Question