[{TableOfContents }]


!!! Ubuntu

!! Users

! Graphical

# Go to __System__ -> __Administration__ -> __Users and Groups__
# Press __Unlock__
# Press __+ Add User__
# Enter a username and password.  Use only letters or digits.
# Set any options you like under __User Privileges__ and __Advanced__ tabs.

! Shell

You should be using the {{__adduser__}} command, not {{__useradd__}}.

%%prettify 
{{{
$ sudo adduser <username>
$ sudo passwd <username>
}}}
/%

!! Groups

! Graphical

# Go to __System__ -> __Administration__ -> __Users and Groups__
# Press __Unlock__
# Press __Manage Groups__ -> __+ Add Group__
# Enter a group name and group id.  Use only letters or digits for the group name and digits for the group id.
# Add any existing users to the group by clicking on their names under __Group Members__

! Shell

To create a new group

%%prettify 
{{{
$ sudo addgroup <groupname>
}}}
/%

To add a user to a pre-existing group

%%prettify 
{{{
$ sudo adduser <usermame> <groupname>
}}}
/%

You can also edit

{{{
/etc/group
}}}


directly.

!!! CentOS

!! Add user to group
{{{
$ sudo adduser <username>
$ sudo passwd <username>
$ sudo useradd -G wheel username
}}}

----
[Linux | CategoryComputing.Linux] - [Linux Shell | CategoryComputing.Linux.Shell] - [Fixme | CategoryFixme]