Truly speaking, the customers does not require to add new websites users from the command line on their uk dedicated servers with the help of control panel. Many of the control panels will automatically set up the users and groups, whenever a new website is created. Once, there was a time when the clients use to create the users and groups manually.
However, because of the automation people are now easily able to reduce their work load.
For example, if you want to install a specific software, such as a complicated Perl application, it may require its own user and user group. You may also require to assign different privileges to those users.
Another example is that, imagine you are using your uk dedicated servers for something other than website hosting and don’t have a web based control panel. It might be anything, may be a game server or a chat server, and adding different control panels will only consume the system resources that you require elsewhere.
To add a user, go through the below steps:
1. Login to your server via SSH
2. Become root:
su
3. As an example, let’s say you want to make a user called “gamerdude” with a group by the same name (default setting). Type this from the command line:
adduser gamerdude
4. When it asks for a password, enter the user’s password
5. It will ask for other information like “phone number.” This is optional.
6. If all of the information is correct, press “y” yes.
Sample output:
# adduser testman3
Adding user `testman3′ …
Adding new group `testman3′ (1004) …
Adding new user `testman3′ (1004) with group `testman3′ …
Creating home directory `/home/testman3′ …
Copying files from `/etc/skel’ …
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for testman3
Enter the new value, or press ENTER for the default
Full Name []: Test Man
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] Y
To assign file ownership to the new user, use the following command:
chown gamerdude:gamerdude /var/www/files/filename
To assign ownership of an entire directory, enter:
chown -R gamerdude:gamerdude /var/www/files
Posted under Dedicated Servers
This post was written by on April 28, 2010

















