gruppe

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
gruppe [2017/09/29 14:22] tmaiergruppe [2020/12/29 02:09] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Linux User Management ====== ====== Linux User Management ======
 +
 ===== Create User ===== ===== Create User =====
 +
   * ''useradd''   * ''useradd''
-    * Native binary compiled with the system +      * Native binary compiled with the system 
-    * Creates only a user by default (you have to use switches) to specify home directories and other settings+      * Creates only a user by default (you have to use switches) to specify home directories and other settings
   * ''adduser''   * ''adduser''
-    * Perl script which uses ''useradd'' among others +      * Perl script which uses ''useradd''  among others 
-    * More user friendly and interactive +      * More user friendly and interactive 
-    * Creates a fully functional user on the system by default+      * Creates a fully functional user on the system by default
  
 ===== Groups ===== ===== Groups =====
 +
 ==== Create Group ==== ==== Create Group ====
 +
 ''groupadd examplegroup'' ''groupadd examplegroup''
  
 ==== Add user to group ==== ==== Add user to group ====
 +
 ''usermod -a -G examplegroup exampleusername'' ''usermod -a -G examplegroup exampleusername''
 +
 +''adduser exampleusername examplegroup''
 +
 +''gpasswd -a exampleusername examplegroup''
 +
 +
 +==== Remove user from group ====
 +
 +''gpasswd -d exampleuser examplegroup''
  
 ==== Change user's primary group ==== ==== Change user's primary group ====
 +
 ''usermod -g groupname username'' ''usermod -g groupname username''
 +
 +
  • gruppe.1506687738.txt.gz
  • Last modified: 2020/12/29 02:09
  • (external edit)