Linux User Administration
Create User
useradd -s /bin/bash -G users,staff,cdrom -g staff -m winston
passwd winston
-
-s /bin/bash
Default shell will be /bin/bash.
-
-G users,staff,cdrom
List of groups winston will be belong to.
-
-g staff
winston will belong to the staff group by default.
-
-m
Create their home directory and put default stuff from
/etc/skel in there.
Modify User
Add User to Group
gpasswd -a winston svnuser
Delete User from Group
gpasswd -d winston user
Change Default Group
usermod -g users winston
newgrp staff