user management
create user
-
useradd john -
set password
passwd john -
create user with root privilages:
useradd -ou 0 -g 0 john- check if id are set correctly:
$ grep john /etc/passwd john:x:0:0::/home/john:/bin/sh - add user to root group
usermod -a -G root john
- check if id are set correctly:
-
delete user
userdel john
No comments to display
No comments to display