:Add New User
There are a few different ways to add a new user depending on what type of user you would like to add. There is a fileserver user which is a user that is limited only to fileserver access, there is the website user which is a user that is allowed to log in and have a website but does not have any administrative privileges, and then there is the administrative user which is a user which is not limited like the fileserver use is and can be granted administrative privileges (although this is not granted by default).
Add a Fileserver User
In order to add a fileserver user make sure you are logged in to the server via ssh as a user that is allowed to use sudo to create users and execute the following command (replacing -username- with the approprite username x2)
sudo adduser --home /filesrv/-username- --shell /usr/bin/smbpasswd --ingroup smb --disabled-password -username-
This command specifies that the user's home directory is at /filesrv/-username-, the shell is /usr/bin/smbpasswd which means that at login they will only be allowed to change their samba password, and that no default password is set (you will need to do that in the next step). You will then need to execute the following two commands with the individual that is being added present so that they can set their password.
sudo passwd -username-
This command changes their unix password (not strictly necessary, but needed if they are going to be allowed to change their samba password without your help in the future).
sudo smbpasswd -username-
This command changes their samba password, should probably be the same as their other password. But not required.
Add a Website User
In order to add a website user make sure you are logged in to the server via ssh as a user that is allowed to use sudo to create users and execute the following command (replacing -username- with the approprite username)
sudo adduser --disabled-password -username-
You will then be asked a series of questions regarding details about this user, feel free to leave them all blank. They will most likely change from year to year anyway.
You can then execute the following block of shell commands (just copy and paste into a terminal window after making sure to change all the instances of -username- with the appropriate username x14)
sudo mkdir /www/-username- sudo mkdir /www/-username--cgi sudo ln -s /www/-username- /home/-username-/public_html sudo ln -s /www/-username--cgi /home/-username-/public_cgi sudo chown -username-: /www/-username- sudo chown -username-: /www/-username--cgi sudo chown -username-: /home/-username-/public_html sudo chown -username-: /home/-username-/public_cgi
Add a Administrative User
This is much easier than either of the two entries.
sudo adduser -username-
Enter past all the misc stuff. You may then look at editing the sudoer's file to allow this administrative user to sudo things, or not, as you see fit. I will not get into the syntax of this file, there are much better guides out there. Google sudoers and find them. To actually edit the file: