From the course: Linux CentOS 7: User and Group Management

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Individual user account settings

Individual user account settings - Linux Tutorial

From the course: Linux CentOS 7: User and Group Management

Start my 1-month free trial

Individual user account settings

- [Instructor] In another video of this course, we saw how to change global user account settings by editing the /etc/login.deskfile. This only affects new users created after the change. If we need to change existing user accounts, we have to use various other commands. You could edit the /etc/shadow file for most of these settings, but it's not recommended, as it's easy to misconfigure a user this way. The main command we'll use to change user accounts settings is chage, or change age. Chage is used to change password and account aging information for users. Chage -d changes the number of days since January 1, 1970, when the password was last changed. Setting this to zero means the password hasn't been changed, and forces the password change on next login. - E sets the date that the users account will expire. - I sets the number of days of inactivity after password expiration, before the account is automatically locked. -m sets the minimum number of days before a password changes…

Contents