Security and File Permissions Flashcards
how to make new user?
useradd
whare are the defalts used for creating useres stored?
in /etc/default/useradd
how to print user defauls via useradd
useradd -D
where are login configurations shtored?
/etc/login.defs
what is etc/skel
a directory where all files are copied into the users home directory
How to make default files appear in new user home dir automatically?
add it to /etc/skel of course!
command to modify a user
usermod
How to delete a user
userdel
how to delete a user and its home dir
userdel -r
how are groups categorized in /etc/group
groupname:passwd:GId:usersInGroup
(if) groups store encrypted passwords, where would they be
/etc/gshadow
how to add a new group
groupadd [options] groupname
change groupid (gid) of group
groupmod -g