![]() |
| |||||||
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
A user is someone who is recognized by the system by having a name, usually a password, and a numeric User Identification or UID. OS X has two types of user: those you create from the Users preference pane in System Preferences, and shadowy users created by the system that hide in the background. You will not see those users in the login window, and need not be concerned with them. A user you create yourself can be either an unprivileged user, or an administrative user. Each user belongs to one or more groups. Groups act as a tool to facilitate finer control of file system permissions. One can assign file permissions to a group, which are then inherited by all users belonging to that group. When a new user is created the user is automatically placed in a group called staff. This is their primary group. A user is made an administrator by adding them to the admin (and pre OS X 10.2, wheel) groups. This is what happens when you check the 'Allow user to administer this computer' box in the Users preference pane. Like users, groups have a name and a numeric Group Identification or GID. A Group does not have a password as one cannot login as a group. Permissions state which files and directories one may view, write to, and execute. Users, groups, and permissions work together to present each user's own view of the file system. Each file, directory, and executable is owned by a particular user - termed the user owner. Each also has a secondary owner, which is always a group - termed the group owner. Three sets of read/write/execute permissions are defined, one for each of the user owner, the group owner, and then all others. In each case a particular permission can be granted or not granted. Your permissions for a given file are determined as follows:
The user 'root' has automatic read, write, and execute permission to all files. Without the concept of a group owner and group permissions, no mechanism would exist by which a file can be shared between selected users. By setting group permissions, one can share a file with all users who are a member of the owning group, whilst excluding all other users. |
Tell Me More...
|
|
Shadowy Users The shadowy users are: Other Groups Other groups include:
and many more. www User The Apache web server starts as user root and switches to run as user www as a security measure. If someone hacks into your system through Apache, they will hopefully be restricted to the permissions of www instead of those of root. A Spare User This is a handy tip. Create a second administrative user. If you run into problems such that your regular administrative user becomes unusable, you can log into the spare one to diagnose and hopefully correct the problem from there. Additionally, if an Application is misbehaving the problem may well lie in a corrupted preference file. Logging into the spare user and running the offending application with effectively virgin preferences can confirm this possibility. |
Next Page
This page has covered the theory behind users, groups, and permissions. I have gone into some depth because it is a concept that is alien to a lot of Mac users making the move from OS 9, but non-the-less a concept that must be understood.
Page two will present Unix commands that allow one to view and change permissions.
|
|
Part 4 - Managing Permissions (page 1 of 2) |
|
| Copyright © 2000-2010 Inside Mac Media, Inc. All rights reserved. | ||
| Apple assumes no responsibility with regard to the selection, performance, or use of the products or services. All understandings, agreements, or warranties, if any, take place directly between the vendors and prospective users. | ||
| Apple, the Apple logo, Mac, PowerMac G4, PowerMac G5, Xserve, Xserve RAID, PowerBook, iBook, Airport, AirPort Extreme, iMac, eMac, iLife, iMovie, iCal, iPhoto, iTunes, QuickTime, FireWire, iPod, iSight, AppleWorks, Macintosh, Jaguar, Panther, Mac OS, Mac OS X and Mac OS X Server are trademarks of Apple Computer, Inc. |