Securing User Envirionment Flashcards
what is the password file in linux?
/etc/passwd is the file where all users are categorized and listed as having pws and group policies listed.
What is the format for each line in the passwd file?
what is the category of files you will find in /etc ?
all config files for the system and programs. all of them are customizable.
How does the /etc/group File work?
What is the /etc/shadow File?
What is the /etc/login.def ?
This is called the login.default file.
Commands to create user accounts and setting account passwords
How does the chage command work?
Looks like CHANGE, but chage shows how long ago a password was changed.
But it’s really CH-AGE, change age.
and setting password policies for when the password can be change, min/max days allowed to change password or have it expire. also set the days before hand that they will be warned that their pw is expire. and you can make the account inactive after x days expires that it’s disabled.
examples of how to use chage command by finding the user id, etc.
The image chage example is missing the actual username, which should be specified at the end of the syntax.
Setting password policy.
what are the 3 main files where you can set password policy?
How would you change the the number of previous passwords it would compare against? IOW, you can’t use any of the previous 5 pws, for example…
How would you require a pw length?
How would you set the minimum number of required class of characters for use in the password?
How does the useradd document work and where is it located?
How do you lock or disable user accounts manually?