
Code: Select all
adduser -g users -G wheel -d /home/username -s /bin/bash -c "Full Name" -m usernameCode: Select all
passwd usernameCode: Select all
man useraddCode: Select all
useradd: warning: CREATE_HOME not supported, please use -m instead.Code: Select all
useradd username # should run without error now
useradd -m username # will create the users homedirectory in /home
useradd -g wheel username # will add a user and set their primary group to wheel (defaults to users)
useradd -G group1,group2 # sets the seconday groups
passwd username # will set a password for username, this is needed to actually loginCode: Select all
man usermod

My understanding is that membership in the wheel group gives you the ability to su. I'm sure it has other uses, but I believe that's the primary one.static wrote:What is this wheel group? static will need to be part of group wheel to be able to su to root?

Lemma wrote:The different user-groups that there are in this dist, how do i track them down?
Code: Select all
cat /etc/groupwheel is a group used for people with administrator (or "semi-administrator") privileges...static wrote:What is this wheel group? static will need to be part of group wheel to be able to su to root?
Code: Select all
#useradd -g wheel -G othergroup1, othergroup2 -d /home/user/ -s /bin/bash -c Name -m -k /etc/skel username
Code: Select all
useradd -g wheel -G floppy,cdrw,audio -d /home/myusername -c "My Name" myusername