From LedHed's Wiki
Line 1: | Line 1: | ||
− | + | == Groups == | |
''groupadd'' | ''groupadd'' | ||
groupadd -g 2001 groupname | groupadd -g 2001 groupname | ||
Line 6: | Line 6: | ||
<br> | <br> | ||
− | + | == Users == | |
''useradd'' | ''useradd'' | ||
useradd -u 2001 -s /bin/false -d /bin/null -c "Users Real Name" -g group username | useradd -u 2001 -s /bin/false -d /bin/null -c "Users Real Name" -g group username | ||
+ | useradd -m username | ||
-u = UID | -u = UID | ||
Line 21: | Line 22: | ||
-g = Default Group | -g = Default Group | ||
<br> | <br> | ||
+ | |||
+ | |||
+ | === Modify Users === | ||
+ | usermod | ||
+ | |||
+ | === Expire Password === | ||
+ | chage -d 0 | ||
+ | |||
[[Category:Linux]] | [[Category:Linux]] |
Revision as of 20:45, 16 July 2015
Groups
groupadd
groupadd -g 2001 groupname
-g = GID
Users
useradd
useradd -u 2001 -s /bin/false -d /bin/null -c "Users Real Name" -g group username useradd -m username
-u = UID
-s = Shell
-d = Home Directory
-c = Comment (User's Real Name Typically)
-g = Default Group
Modify Users
usermod
Expire Password
chage -d 0