Changing Home Folder Ownership


If you have to change the UID and GID of a user, you will have to update the ownership of their previously created Home folder (Users > username). If this information is not updated, the user will not have access to his or her own Home folder. This modification is done in the Terminal.

1.

Run the Terminal application (Applications > Utilities > Terminal).

2.

Change the directory to the Users directory:

$ cd /Users $ ls -l 


This will give a detailed list of the folders as well as user and group information.

Notice that Albert's UID says 502 instead of his proper name. This is because Albert has been changed to UID 511 in NetInfo Manager. The user with ID 502 now has ownership of /Users/ albert, and not Albert himself. Let's fix that:

3.

Type the following:

Enter an admin password, and the folder and its contents will be modified. The chown command changes ownership of files or folders. The -R option changes the ownership of the file hierarchies as well. You can do a ls -l to verify that Albert now is the owner of his folder.



Apple Pro Training Series. Xsan Quick-Reference Guide
Apple Pro Training Series: Xsan Quick-Reference Guide (2nd Edition)
ISBN: 0321432320
EAN: 2147483647
Year: 2004
Pages: 120

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net