notes/ubuntu/users.md
2019-07-18 23:48:15 -04:00

21 lines
390 B
Markdown

add a new user and then add to multiple groups
`adduser user_name`
`usermod -a -G adm,sudo user_name`
`chfn` -> changes full name
change a ownership
`chown file_or_dir user_name`
`chgrp file_or_dir user_name`
delete user
`userdel user_name`
`adduser` -> high-level
`useradd` -> low-level
adduser fc_api
usermod -a -G sudo fc_api
chown user_name directory/
chgrp user_name directory/