31.5. Adding and Editing Users

The CVS server requires that all clients supply a valid username and password before they can perform any operations on the repository. Users are authenticated against a list of accounts used only by the server and optionally against the standard UNIX user database from the /etc/passwd and /etc/shadow files. Using only the server's user list for authentication is the best option, as it gives you more control over who is allowed to connect. See the documentation for the Check users against system password file? field in Section 31.7 “Configuring the CVS Server” for more information on turning on or off UNIX authentication.

For each CVS user, you can specify the name of a UNIX user whose permissions will be used for all file access. This can be useful if all files in your repository are owned by a single user, in which case all CVS access should be done as that user. This avoids the problem of ensuring that file permissions in the repository are set correctly so that people can edit and read each others' files.

To add a new login to the CVS user list, follow these steps:

1.
On the module's main page, click on the CVS Users icon. This will take you to a page containing a table of all existing users, as shown in Figure 31.2.

Figure 31.2. The CVS users list.


2.
Click on the Add a new CVS user link above or below the table to go to the user creation form.

3.
Enter a unique name for the user into the Login username field. A UNIX user of the same name must already exist. If not, the Access files as UNIX user field must be set.

4.
The Login password field is for entering the user's password. The available options are:

None required If selected, the CVS server will accept any password or none at all when a client connects as this user.

Copy from UNIX If chosen, the user's password is initially set to that of the UNIX user with the same name.

Set to If selected, you must enter a password for the user into the field next to it.

5.
The Access files as UNIX user field controls which UNIX user the CVS server will switch to when this CVS user connects. If Same as username is selected, then the UNIX user with the same name will be used. If the other option is chosen, however, you must enter a UNIX username into the adjacent field to access files as instead.

6.
Click the Create button to have the user added to the server's list. You will be returned to the table of users, which should include your new entry. If you choose for it to access files as a different UNIX user, the name will be shown in brackets next to the CVS login name.

Once a user has been created, you can edit it by clicking on its name in the table on the CVS users page. The editing form is the same as the one used for user creation, except that the Copy from UNIX option in the Login password field is replaced with Leave unchanged, which must be selected if you are not changing the password. When you are done editing a user, click the Save button. Or to delete the user, click on Delete on the editing form instead.

This page can also be used to set up synchronization between the CVS user list and the UNIX user database. This can be useful for keeping passwords in sync, or for having a CVS user deleted when the corresponding UNIX user is removed. Chapter 4 explains in more detail how user synchronization works in Webmin, but follow these steps to set it up for this module:

1.
On the main page, click on the CVS Users icon and then scroll down to the form below the list of existing users.

2.
To have a new CVS user created for each UNIX user created in Webmin, select the Add a new CVS user when a UNIX user is added checkbox. Below it is a field labeled Access files as UNIX user that you can use to set the UNIX access user for automatically created CVS users.

This option is most useful when all users access repository files as a single UNIX user. Otherwise, you might as well just allow all UNIX users to log in to your CVS server.

3.
To have the password or username of a CVS user changed when the corresponding UNIX user is updated, check the Update a CVS user when the matching UNIX user is modified checkbox.

4.
To have a CVS user deleted when the UNIX user of the same name is removed, check the Delete a CVS user when the matching UNIX user is deleted box.

5.
Click the Save button to save the new synchronization settings. They will apply to users created, edited, and deleted in the Users and Groups module from now on.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.224.31.50