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.

Change global user account defaults

Change global user account defaults - Linux Tutorial

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

Start my 1-month free trial

Change global user account defaults

- [Narrator] When we create a user without specifying account settings, the user add command assumes a lot of things. In Linux there are defaults for user ID numbers, group ID numbers, how many days before the account is logged, and more. We can find these settings in the /ets/login.deskfile. Let's take a look at it using the less command. In terminal type in less /etc/login.defs and hit enter. Note that if we change anything in this file, it only effects newly created users, not existing users. Any user accounts that exist currently will need to be modified using other tools like Chage. For password aging information refer to the individual user account settings video in this course. We can see password aging information in this file. Scroll down to the line that says password aging controls. We've seen these numbers in the /etc/shadow file in another video. These are the defaults. Here we can change the maximum number of days a password is good. The default is 99,999 or roughly 274…

Contents