|
For the World's Most Important Web Site - YOURS! VPS v2 Support Documentation |
||||||
|
|
Managing Users on your Virtual Private ServerVirtual Private Server user accounts grant shell, email, or FTP access, as well as giving a user the ability to publish Web content. Managing user accounts is a significant part of server administration. Adding New UsersCreating new users can be done by manually editing the files that contain user information, but to make the job easier, there are two commands that will guide you through the process. You must be root to add or modify any user information. adduserThe adduser command is the standard UNIX command to add user accounts. If you are not familiar with the command, however, it can be confusing. For more information on adduser, see the man page or check a UNIX manual. vadduservadduser has been created for your VPS to make adding new accounts easier. If you are familiar with the command from VPS version 1, it has not changed significantly. To run the vadduser command, you must log on to your VPS as root, then type vadduser at the command prompt. The on screen instructions will prompt you for the required information. see User Permissions for more information. Modifying User AccountsThe vedituser command is a custom script that can be used to modify an existing user account. You will be prompted to modify the user information, including permissions and quota. There are also several other tools that exist which you may want to become familiar with. For more information about these tools, see the relevant man page or a UNIX manual.
Because user account information is stored in several places, including in compressed databases, it is important to use the tools listed above, rather than trying to modify account information by editing any files directly.
Removing UsersWhen a user account is no longer needed, you can remove the account using the rmuser command. This will give you the option to keep or remove the home directory as well. It is not recommended to use this command to disable a user who you intend to re-enable at a later time. In those cases, it is better to change the password or to disable their privileges instead.
User Information FilesUser information is stored in several different files on your Virtual Private Server. First, the /etc/passwd file contains a list of usernames, along with some account information. The following is a sample entry for the user test: test:*:1001:1001:Test User Account:/home/test:/usr/local/bin/tcsh The entry contains seven fields in a colon (:) delimited list. The first field is the username, followed by an asterisk (*), which represents the password. As a security measure, passwords are not actually stored in the /etc/passwd file, so you will see the asterisk instead. Next are two numbers, the User ID number and the Group ID number. These are used by the system to track file access and ownership rights. After the numbers comes the "real name" or a description of the user account, followed by the user's home directory, and finally the shell they are allowed to use. User passwords are stored in an encrypted format in the ~/etc/master.passwd file. This file is similar to the passwd file, although there are a few extra fields that the system uses. Both the passwd and the master.passwd files are duplicated in compressed database files named pwd.db and spwd.db respectively. These database files are used by many programs for authentication. Additional user information is stored in files such as /etc/group and /user.quota. vlistuserWe have provided a special tool for Virtual Private Server administrators to view their users and their quotas. The vlistuser command will display a list of all the user accounts (excluding the system users). The following is an example of the output of the vlistuser command.
|
|||||
|
© 1996 - 2008 Web Hosting Solutions 1311 Darcann Drive, Columbus, OH 43220 1-888-522-3738 Money Back Guarantee 99.9% Uptime Guarantee Like sports? Visit ColumbusSports.com |