Difference between revisions of "Linux user & group administration"
Jump to navigation
Jump to search
To Linux
m (→/etc/group) |
m |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[http://www.debianadmin.com/users-and-groups-administration-in-linux.html User and group admin] | == Add user & change password == | ||
Add user | |||
<pre># adduser username | |||
# passwd username</pre> | |||
== Delete user == | |||
Delete user | |||
<pre># userdel -r username</pre> | |||
Other tips:<br>[http://www.debianadmin.com/users-and-groups-administration-in-linux.html User and group admin] | |||
== /etc/passwd == | == /etc/passwd == | ||
Line 7: | Line 18: | ||
== /etc/group == | == /etc/group == | ||
[http://www.cyberciti.biz/faq/understanding-etcgroup-file/ /etc/group] file | [http://www.cyberciti.biz/faq/understanding-etcgroup-file/ /etc/group] file | ||
== sudo == | |||
[http://serverfault.com/questions/205681/setup-rhel-centos-5-to-use-sudo-in-command-line-and-x Setup RHEL/CentOS to use sudo] in command line & x setup | |||
== Ubuntu Add User == | |||
Example adding user "factorio". | |||
<code>sudo adduser factorio</code> | |||
Answer some questions and user created with home directory and default shell. | |||
<center>[[Linux | To Linux]]</center> | <center>[[Linux | To Linux]]</center> |
Latest revision as of 09:30, 4 May 2024
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.