Force user to change passwd on first login


 
Thread Tools Search this Thread
Operating Systems Solaris Force user to change passwd on first login
# 1  
Old 06-17-2009
Force user to change passwd on first login

Hello All,

How to force user to change his login passwd on his first login in solaris 10 ?

while adding user do we need to set the password in theis case??
# 2  
Old 06-17-2009
You can use

#passwd -f <username>

to force the user to change the password on the next logging, however you have to set the password separately

Last edited by kumarmani; 06-17-2009 at 08:34 AM..
# 3  
Old 06-17-2009
Quote:
Originally Posted by kumarmani
You can use

#passwd -f <username>

to force the user to change the password on the next logging, however you have to set the password separately

After Running this command, It shows that

passwd: password information changed for <username>

but when i am trying to login with user i am not able to login remotely. i tried with another user i am able to login??
# 4  
Old 06-17-2009
You were able to logging to this user before without changing the password information? The moment you logging with user name and password system is going to give u option for the new password and confirmation.

Please check the logging directory and shell for the user !!
# 5  
Old 06-17-2009
Quote:
Originally Posted by kumarmani
You were able to logging to this user before without changing the password information? The moment you logging with user name and password system is going to give u option for the new password and confirmation.

Please check the logging directory and shell for the user !!
Yes i was login successfully before changing the password information

Shell is bash
# 6  
Old 06-17-2009
Can you try to logging to system through some different user and then try logging to user with su - ? Just see if are able to logging on not?
# 7  
Old 06-17-2009
Quote:
Originally Posted by kumarmani
Can you try to logging to system through some different user and then try logging to user with su - ? Just see if are able to logging on not?

yes , i logged in through another user the su - <username>

it showed Password for the user <username> has expired and it prompted for new password. and i changed the password to new one

but, still this can happen if user is logged in then su . how to recreate this on first login.??
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Setting root pasword to null with force change on first login

Greetings All I have a specific use case: for the deployment of a standard AIX Golden Image via mksysb, I have been requested to set the root user password to NULL with forced change on first login. Currently the admins need to remember when the Golden Image mksysb was created to calculate the... (5 Replies)
Discussion started by: milegrin
5 Replies

2. Solaris

Passwd -f locks out login

hello; I have inherited a SunOS sjcorpftp 5.10 Generic_118855-36 i86pc i386 i86pc whenever someone needs a new password, I change it via "passwd username" then "passwd -f username" so they can change their password on my only sun sparc 5.9 you can "accessed denied" when you... (0 Replies)
Discussion started by: ikeleong
0 Replies

3. UNIX for Advanced & Expert Users

Determining if user is local-user in /etc/passwd or LDAP user

Besides doing some shell-script which loops through /etc/passwd, I was wondering if there was some command that would tell me, like an enhanced version of getent. The Operating system is Solaris 10 (recent-ish revision) using Sun DS for LDAP. (5 Replies)
Discussion started by: ckmehta
5 Replies

4. Red Hat

how to force a user to change the password

RHEL 5 update 4. How to force a user to change the password at his next logon. Thanks in advance. (8 Replies)
Discussion started by: uxadmin007
8 Replies

5. Shell Programming and Scripting

force to change password(by modifying /etc/shadow)

hi by modifying /etc/shadow how can I Force a change of password so that user has at least 1 week to login? I did it by using: echo "enter username to force password change" read user; chage -M 7 $user; How can I do it by modifying /etc/shadow?? (6 Replies)
Discussion started by: tjay83
6 Replies

6. Shell Programming and Scripting

force to change password(shell script)

hi How can I force user to change of password by modifying the password expiry and the grace period so that the user has at least 1 week to login and change the password...... (3 Replies)
Discussion started by: tjay83
3 Replies

7. UNIX for Dummies Questions & Answers

Server wide password enforcement rules? 90 day force change.

Using Solaris 9 and 10. What we want to do is set up global rules for our password files to restrict all users, not only new ones set up with the rules but also the ones that have been sitting on the system for years. Is there a global way to force all users to change their password every 90... (1 Reply)
Discussion started by: LordJezo
1 Replies

8. UNIX for Dummies Questions & Answers

User should not be allowed to change passwd

Hi Group, Can anyone assist me with this? I am on AIX 5.2 ML06. I create the user and assign a passwd. But I do not want the user to change the passwd at all. I like him/her to use the passwd that I have set for him/her. Any ideas would be highly appreciated!!! Thanks. (3 Replies)
Discussion started by: brookingsd
3 Replies

9. UNIX for Advanced & Expert Users

Force to change to a different password

Hi, I notice in my Sun Solaris 8 sparc worstation, I am able to change my password to same existing password. That is, right now my password is abc, and I change it with "passwd" command and change it abc again. It will accept. How can I make it such that it will not accept same password?... (3 Replies)
Discussion started by: champion
3 Replies

10. UNIX for Advanced & Expert Users

Force Password Change...RedHat 7.1

Hello, I just finished adding a bunch of new users to the linux servers I administer. I add users either via command line or via linuxconf, but I can't seem to find out how to force users to change their passwords on their first login to the system. Anyone know how to do that? My HP-UX... (1 Reply)
Discussion started by: vancouver_joe
1 Replies
Login or Register to Ask a Question