System Administration Guide, Volume 2

Changing File and Group Ownerships

Frequently, file and directory ownerships change because someone edited the files as superuser. When you create home directories for new users, be sure to make the user the owner of the dot (.) file in the home directory. When users do not own "." they cannot create files in their own home directory.

Access problems can also arise when the group ownership changes or when a group of which a user is a member is deleted from the /etc/group database.

See Table 41-1 for information about how to change the permissions or ownership of a file that you are having problems accessing.

Table 41-1 Solving File Access Problems

If You Need to Change the ... 

Use the ... 

For More Details, See ... 

Permission on a file 

chmod(1) command

"How to Change Permissions in Absolute Mode"

Ownership of a file 

chown(1) command

"How to Change the Owner of a File"

Group ownership of a file 

chgrp(1) command

"How to Change Group Ownership of a File"