Difference between revisions of "Linux user & group administration"

From Got Opinion Wiki
Jump to navigation Jump to search
m
 
Line 22: Line 22:


[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
[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.


To Linux