Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Linux System Getting Started Tutorial: How to Force Change your password at next logon Linux     - Precautions against hackers Linux environment (Linux)

- To create someone else can not afford to delete the administrator user (Linux)

- To use iostat display I / O status under Linux (Linux)

- A brief description of Java 8 new features introduced syntax (Programming)

- Under CentOS Linux automatic backup MySQL database daily (Database)

- IOS interview questions Summary (Programming)

- Composition and dynamic memory allocation C program (Programming)

- Arronax allows you to easily create desktop startup file (Linux)

- Cobbler batch install Ubuntu / CentOS system (Linux)

- Installation image conversion tool on your Ubuntu Converseen 0.8.1 (Linux)

- 10 Linux in the passwd command examples (Linux)

- Installation and deployment of Hadoop 2.7.1 on Ubuntu 14.04 LTS (Server)

- Syncthing: Private Security Synchronization tool to synchronize files between computers / folder (Linux)

- redis configuration in detail (English) (Database)

- Thinking in Java study notes - initialization and cleanup (Programming)

- Java look and feel mode (Facade mode) (Programming)

- Struts2 study notes -Valuestack (value stack) and OGNL expression (Programming)

- An Example of GoldenGate Extract Process Hang Problem Solving (Database)

- stat Usage: Get permission to file the corresponding figures (Linux)

- Raspberry Pi configuration wireless hotspot (Linux)

 
         
  Linux System Getting Started Tutorial: How to Force Change your password at next logon Linux
     
  Add Date : 2017-01-08      
         
         
         
  Question: I run a Linux server shared by many people. I just use the default password to create a new user, but I would like the user to change the password the first time you log on. Is there any way to make him / her password at next logon modify it?

In a multi-user Linux environment, the standard practice is to use a default random password to create a user account. After a successful login, new user change the default password. For security reasons, often recommended "force" a user to change the password the first time you log in to ensure that the single-use password will not be used again.

Here is how to force the user to modify his / her password at the next login.

Each Linux user associated with this different passwords and related configuration information. For example, a record of the date of the last password change, the number of days the minimum / maximum change the password, the password expires when the like.

Called chage command-line tool to access and adjust the password expiration configuration. You can use this tool to force the user to change the password at the next logon,

To view a specific user expiration information (for example: alice), run the following command. Note that except yourself view any other user's password information needs root privileges.

$ Sudo chage -l alice

Force users to change password

If you want to force the user to modify his / her password, use the following command.

$ Sudo chage -d0 < user-name >
Originally "-d" parameter is used to set the password "age" (that is, the number of days played last modified password 1970/1/1 played). Thus "-d0" means the last modified time is 1970/1/1 password, which allows the current password has expired, when he was also forced to make changes at the next logon password.

Another current password expires way is to use the passwd command.

$ Sudopasswd-e < user-name >
The above command and "chage -d0" role, getting the current user's password expires immediately.

Now check the user's information, you will find:

When you log in again, you will be asked to change the password. You will be asked to modify before once again verify the current password.


To set up a more comprehensive password policies (such as password complexity, prevent re-use), you can use PAM. See this article for more details.
     
         
         
         
  More:      
 
- Ubuntu PPA install SMPlayer 14.9 (Linux)
- Oracle 11g RMAN virtual private directory (Database)
- Linux desktop system using the remote server in clear text ssh password (Server)
- Cool Android realization SVG animation (Programming)
- Tmux Getting Start (Linux)
- Security Knowledge: How to hide a backdoor PHP file tips (Linux)
- Ubuntu How to install screen recording tool Simple Screen Recorder 0.3.1 (Linux)
- Implicit conversion from Java type conversion compare MySQL and Oracle (Database)
- CentOS 6.6 installation certification system based on the ftp service (Server)
- To install Docker under Ubuntu 15.04 (Linux)
- Linux user groups, file permissions Detailed (Linux)
- Linux (CentOS) SSH login without password authentication (Linux)
- Ubuntu Gnome and Fedora 22 Gnome desktop, extended to achieve global menu (Linux)
- Python kills corresponding process according to pid (Programming)
- Spring MVC Exception Handling (Programming)
- See Shell Script Linux Server network traffic (Server)
- Print Linux system error codes (Linux)
- CentOS7 minimized installation can not find the 'ifconfig' command - Repair Tips (Linux)
- Oracle RMAN backups of the control file backup (Database)
- Use ARChon runtime environment to run Android apps on Ubuntu (Linux)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.