19 lines
295 B
Plaintext
19 lines
295 B
Plaintext
|
% misc
|
||
|
|
||
|
# List users
|
||
|
cat /etc/passwd | awk -F: '{ print $1}'
|
||
|
|
||
|
# Change user password
|
||
|
sudo passwd <user>
|
||
|
|
||
|
# Create user with home
|
||
|
sudo useradd -m <username>
|
||
|
|
||
|
# Create user without home
|
||
|
sudo useradd <username>
|
||
|
|
||
|
# Delete an user
|
||
|
sudo deluser <user>
|
||
|
|
||
|
$ user: cat /etc/passwd | awk -F: '{ print $1}'
|