-
Notifications
You must be signed in to change notification settings - Fork 1
Users
Jennings Zhang edited this page Jan 13, 2018
·
1 revision
Default settings for user creation is found in /etc/default/useradd.
Example of creating a user with the username "jenni" and a new home directory at /home/jenni/
useradd -m jenni- Set a real name:
-c "Jennings Zhang" - Specify a shell (bash):
-s /bin/bash - Group: use
-Uto add as a normal user, or-G wheelto add as an administrator.
passwd jenniOptionally, populate the home directory after logging in with xdg-user-dirs-update.
sudo is used to delegate administrative responsibilities to UNIX users.
https://help.ubuntu.com/community/Sudoers
# let normal user "jenni" use `apt` (on ALL hosts)
jenni ALL= /usr/bin/apt