User Accounts

Below is various bits and pieces regarding adding, changing and all various other bits surrounding user accounts

To create a user that can use FTP but not login via a shell then use

useradd -s /sbin/nologin <new username>


useradd -c “person login For FTP” -d /home/Person -p Pers0n5 person -s /sbin/nologin

To change a password



Add a new group

groupadd xxxxxxx


Assigne a user to a group

usermod -G groupname username                  This will add the group to the user list

usermod -g groupname username                   This will make the group the primary one fro the user





Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s