Accounts Flashcards
What is the location for account passwords?
/etc/shadow
* has no permissions, owned by root
What is the location of account attributes?
/etc/passwd
What is the location of default configuration parameters for creating new users?
/etc/default/useradd
What is the location for login and password ageing information?
/etc/login.defs
How do you create/modify a user to have no interactive shell?
-s /sbin/nologin
What is the structure for an entry in /etc/shadow?
user:hashedpasswd:passwd expiry:min pass age:max pass age:days warning before pass expire:days account is active after expired:account expiration date
How do you change a group name?
groupmod oldname -n newname
How do you change the gid of a group?
groupmod -g groupname
How do you get information about a group?
getent group
How do you log into a new group to create files/directories with that group?
newgrp -
* the - reloads without having to logout and login
When changing group what is important to note?
The user must be a member of that group
How do you set the inherited group for all files/folders created within a directory?
chmod g+s
* setgid
How would you use sso with kerberos authentication
yum install realmd
realm discover
realm join
*authconfig-gtk is a gui alternative
What is the assigned UID range for system users?
0-200
What UID ranges are reserved for regular users?
1000+