From LedHed's Wiki
Line 1: | Line 1: | ||
− | '''Creating Groups''' | + | '''Creating Groups'''<br> |
''groupadd'' | ''groupadd'' | ||
− | groupadd -g 2001 | + | groupadd -g 2001 groupname |
− | '''Creating Users''' | + | -g = GID |
+ | <br> | ||
+ | |||
+ | '''Creating Users'''<br> | ||
''useradd'' | ''useradd'' | ||
− | useradd -u 2001 -s /bin/false -d /bin/null -c " | + | |
+ | useradd -u 2001 -s /bin/false -d /bin/null -c "Users Real Name" -g group username | ||
+ | |||
+ | -u = UID | ||
+ | <br> | ||
+ | -s = Shell | ||
+ | <br> | ||
+ | -d = Home Directory | ||
+ | <br> | ||
+ | -c = User's Real Name | ||
+ | <br> | ||
+ | -g = Default Group | ||
+ | <br> | ||
+ | |||
[[Category:Linux]] | [[Category:Linux]] |
Revision as of 22:10, 28 December 2006
Creating Groups
groupadd
groupadd -g 2001 groupname
-g = GID
Creating Users
useradd
useradd -u 2001 -s /bin/false -d /bin/null -c "Users Real Name" -g group username
-u = UID
-s = Shell
-d = Home Directory
-c = User's Real Name
-g = Default Group