Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux_wiki:create_delete_and_modify_local_user_accounts [2016/02/29 21:56] billdozor created |
linux_wiki:create_delete_and_modify_local_user_accounts [2018/03/18 23:59] billdozor [Modifying Users] |
||
---|---|---|---|
Line 3: | Line 3: | ||
**General Information** | **General Information** | ||
- | About this page/how-to/script. | + | Expect |
---- | ---- | ||
+ | |||
+ | ===== User IDs and Files ===== | ||
User IDs | User IDs | ||
Line 16: | Line 18: | ||
* /etc/passwd - user account details | * /etc/passwd - user account details | ||
* /etc/shadow - user account' | * /etc/shadow - user account' | ||
+ | |||
+ | Useradd default settings: | ||
+ | * / | ||
+ | |||
+ | Login default settings | ||
+ | * / | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Adding Users ===== | ||
Add user with default settings | Add user with default settings | ||
Line 24: | Line 36: | ||
* Users may belong to many other supplementary groups. | * Users may belong to many other supplementary groups. | ||
- | Useradd default settings: | + | \\ |
- | * / | + | Adding a user with a specific UID |
+ | <code bash> | ||
+ | useradd -u 5000 rjones | ||
+ | </ | ||
+ | * Creates a user " | ||
- | Login default settings | + | ---- |
- | * / | + | |
+ | ===== Modifying Users ===== | ||
User comment, usually for a full name (also known as the GECOS field) | User comment, usually for a full name (also known as the GECOS field) | ||
Line 35: | Line 52: | ||
</ | </ | ||
- | Lock user account (user cannot login) | + | \\ |
+ | Lock user account | ||
<code bash> | <code bash> | ||
usermod -L rjones | usermod -L rjones | ||
Line 42: | Line 60: | ||
* Use " | * Use " | ||
+ | \\ | ||
Unlock user account | Unlock user account | ||
<code bash> | <code bash> | ||
Line 47: | Line 66: | ||
</ | </ | ||
+ | \\ | ||
Stop user from logging into a shell | Stop user from logging into a shell | ||
<code bash> | <code bash> | ||
Line 52: | Line 72: | ||
</ | </ | ||
+ | \\ | ||
Delete user account | Delete user account | ||
<code bash> | <code bash> |