Users and Groups

This help page is incomplete


Introduction

This module allows you to create, edit and delete Unix users and groups. Typically, there is one Unix user account for each person who wants to login to your system. In addition, various system programs will have their own accounts, such as uucp or www. Every user belongs to one or more groups, one of which is the primary group for the user.

The main Users and Groups page shows all the local users and groups on your system. NIS and NIS+ users and groups will not be shown in the list, because they are not stored locally and cannot be edited. However, groups can contain NIS users and users can have an NIS group as their primary group.

If your machine is an NIS or NIS+ server and the table sources are not /etc/passwd and /etc/group, you can change the module configuration to edit the appropriate files. The Command to run after change parameter can be set to something like cd /var/yp ; make to update NIS maps after every change to the password and group files.


Editing an Existing User

To edit a user, just click on the user's name from the list on the main page. This will display a form in which you can edit the following user details :

Some other user properties are only available if your system has a shadow password file and the module configuration knows about it. They are :


Creating a New User

To create a new user, click on the Create New User link below the list of existing users on the main page. This will display the same form as is used for editing a user, but with almost all the fields empty. The only field that will be automatically filled in for you is the UID, which Webmin will compute by picking a free UID at the end of a sequence of existing UIDs.

When a new user is created, the user's home directory can be created as well. To have webmin create and set the permissions on the directory you specify, choose Create home directory at the bottom of the page. You should do this for all normal users you add.

The Files to copy option in the module preferences can be used to copy various files (such as .cshrc or .profile) into the home directory of a newly created user. You should change this parameter to a space-separated list of files to copy.


Deleting a User

To delete an existing user, click on the Delete button in the user details form. This will take you to a page asking if you want to delete the user's home directory as well. Be very careful when choosing to do this, as some system users have the root directory as their home directory.

In general, you should never change the UID, username or shell of system users such as root, bin or nobody. Doing so could make your system unusable or unbootable. Do not try to delete any of these users either, especially root.


Editing an Existing Group

To edit a group, click on the group name from the list of groups on the main page. This will bring you to a form in which you can edit the following group properties :


Creating a New Group

To create a new group, click on the Create new group link beneath the list of existing groups. This links to the same form as is used for editing an existing group, but with all the fields blank except for the GID. This is automatically filled by finding a free GID for the new group.


Deleting a Group

To delete an existing group, click on the Delete Group button on the group details page. This will immediately delete the group without asking. No files or directories will be deleted though.


<-   Return to module