12 lines
244 B
Markdown
12 lines
244 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`
|