notes/ubuntu/users.md

21 lines
390 B
Markdown
Raw Normal View History

2019-03-30 02:28:55 -04:00
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
2019-07-18 23:48:15 -04:00
`userdel user_name`
2019-04-30 15:42:59 -04:00
`adduser` -> high-level
`useradd` -> low-level
adduser fc_api
usermod -a -G sudo fc_api
chown user_name directory/
2019-07-18 23:48:15 -04:00
chgrp user_name directory/