Linux user & group administration

From Got Opinion Wiki
Revision as of 09:30, 4 May 2024 by Paul (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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