Linux user & group administration

From Got Opinion Wiki
Jump to navigation Jump to search

Add user & change password

Add user

# adduser username
# passwd username

Delete user

Delete user

# userdel -r username

Other tips:
User and group admin

/etc/passwd

/etc/passwd file

/etc/group

/etc/group file

sudo

Setup RHEL/CentOS to use sudo in command line & x setup

Ubuntu Add User

Example adding user "factorio".

sudo adduser factorio

Answer some questions and user created with home directory and default shell.


To Linux