notes/ubuntu/users.md

24 lines
583 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/
2021-07-15 16:56:15 -04:00
attempted to change password with "Read only file system" as an error, as well a pull a git repository with the same error.
used fsck /dev/sda5 to fix a whole list of issues, problem resolved