Update users password change time


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Update users password change time
# 1  
Old 09-07-2011
Update users password change time

Hello - Is this possible on Unix machines? Can we update user password change time?
# 2  
Old 09-07-2011
man usermod

HTH,
/Lew
# 3  
Old 09-07-2011
I'm not sure what exactly you are about but if mean to expire the password in regular basis . Then yes you can do it easily.
What of UNIX flavor you are using?
# 4  
Old 09-07-2011
Hello - It is not about updating password expiring time. It is about updating password change time.

It is one of dev requirement, which I think is not possible. The password change time is a like log entry maintained by OS and not possible to be updated by us. Right ?
# 5  
Old 09-07-2011
Quote:
Originally Posted by manju--
Hello - It is not about updating password expiring time. It is about updating password change time.

It is one of dev requirement, which I think is not possible. The password change time is a like log entry maintained by OS and not possible to be updated by us. Right ?
What Do u mean by "updating password change time" exactly?

/Lew
# 6  
Old 09-07-2011
Quote:
Originally Posted by manju--
Hello - It is not about updating password expiring time. It is about updating password change time.

It is one of dev requirement, which I think is not possible. The password change time is a like log entry maintained by OS and not possible to be updated by us. Right ?
There is no command to do it, but you could edit appropriate field in the /etc/shadow file by hand (in Solaris it is 3rd field). I don't know how safe it is to do it though Smilie.
# 7  
Old 09-08-2011
OK, now I got it. bartus11 showed one way.

Of course, this assumes that you're using shadow identification method and that you're using proper locking to manage properly possible concurrent modifications of /etc/shadow.

/Lew
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 for many users on an AIX server

Hi I want to change password for around 100 users on an aix server. I have the list of those 100 users with me. instead of doing # passwd username for all the 100 users one by one, can you please help with a script through which we can change the password for all the 100 users in a... (2 Replies)
Discussion started by: newtoaixos
2 Replies

3. Shell Programming and Scripting

Bulk NIS Users Password Change

Hi All, I am having Solaris 5.10 acting as NIS. How do i change multiple user password in NIS in a batch. I have predefined users with their passwords to be set: Example: user1 password1 user2 password2 Pls advise. (0 Replies)
Discussion started by: yogajwa
0 Replies

4. Solaris

Change password for users

I am on SunOS SolarisServer 5.11 11.1 i86pc i386 i86pc , I am trying to change password for a user,but I get the following message.I cannot find any google help on the matter.can anyone help? root@SolarisServer:~# passwd passwd: Changing password for stain Please try again Please try... (6 Replies)
Discussion started by: cbtshare
6 Replies

5. Solaris

To restrict the users not to change the passwords for NIS users

Hi All, How to restrict the NIS users not to change their passwords in for NIS users?? and my NIS user is unable to login to at client location what could be the problem for this ? Any body can help me. Thanks in advance. (1 Reply)
Discussion started by: Sharath Kumar
1 Replies

6. Shell Programming and Scripting

script to change password for all users

We have a server where we have a number of user ids and we also have the list of old passwords in a CSV file. Now we want to change the password of all the users and assign them a default password.Can we write a shell script to do that. I am planning to read the user name and corresponding... (7 Replies)
Discussion started by: dr46014
7 Replies

7. Solaris

How to enforce all users to change their password

Hi All, How to enforce all users to change their password when they try to login. I am having Solaris 9 and 10. Even it would be much better if anyone can say to enforce all users to change their password next morning they login. Thanks in advance, Deepak (3 Replies)
Discussion started by: naw_deepak
3 Replies

8. Shell Programming and Scripting

Help- Change the password of users to common one

Hi all I have some 106 users of which i need to change the password of them to a common one. I dont know their paswword. But i need to reset them to a common one. How can i do this with a shell script? It would be a great help if some one can help to sort out this.:b::b: I know it can be... (0 Replies)
Discussion started by: Tuxidow
0 Replies

9. 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

10. Shell Programming and Scripting

To simultaneously update password change in two server at a time

I am new beginner in Unix and little experienced in BaaN ERP. Problem Statement: I have to run a BaaN session. I have to change the password for both primary and secondary server by using this session. On primary server only few people has access permission (say 10). But on secondary server... (0 Replies)
Discussion started by: s_chandrakar
0 Replies
Login or Register to Ask a Question