...
Code Block | ||
---|---|---|
| ||
sudo useradd -d /home/bhitch -m -g staff -u 2000 -c "Support Bryan Hitch" -s /bin/bash bhitch sudo useradd -d /home/jcassaday -m -g staff -u 2001 -c "Support John Cassaday" -s /bin/bash jcassaday sudo useradd -d /home/wellis -m -g staff -u 2002 -c "Support Warren Ellis" -s /bin/bash wellis |
Note |
---|
When adding an existing user to an existing group the user must log out and log back in for changes to take effect. |
Notice the -u which set's the user's GUIDs. We found it essential to standardize on the GUID of the accounts across all our systems consistently. Not doing so causes problems when it comes to cloning systems or moving programs across different environments. As a practice, we use the following GUID's ranges,
...
Code Block | ||
---|---|---|
| ||
sudo usermod -a -G adm bhitch sudo usermod -a -G adm jcassaday sudo usermod -a -G adm wellis |
Note |
---|
When adding an existing user to an existing group the user must log out and log back in for changes to take effect. |
Info |
---|
The above step could have been done on user create. However, this illustrates user modification as part of the tutorial. |
...