users
Linux User Management
How to create and manage users on a Linux box. These notes assume you have an initial login for a privelaged user such as root. Creating A Group Of Users Login to the linux command line via an SSH session Add the group Create a directory for the users to "live in" Set the directory so members of the group can read/write/execute the info Add a user and attach to the group Set the user password Repeat as necessary groupadd dev mkdir /home/users chgrp dev /home/users chmod 774 /home/users useradd -d /home/users/<username> -g dev -m <username> passwd <username> ...<enter password> ...<enter password again> Modifying a User's Primary Group A user has a single "primary" group (defined at creation) usermod -g<maingroup> <username> Adding Users To Secondary Groups Create the other group Modify an existing user to add to the group groupadd othergrp usermod -Gothergrp <username> Change Defaults for useradd Note: You should not do this unless you want to change systemwide settings. This ...

