Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Our Archives > General Archives > Servers > Permissions

 
Permissions
Thread Tools
Fresh-Faced Recruit
Join Date: May 2001
Status: Offline
Jun 22, 2001, 08:41 AM
 
Being new to the UNIX world I was hoping someone could help me with a file/directory permissions question. I have a folder that I want to give one group (Graphic Artists) full read and write permissions and another group (Copywriters) only read access. Is there a way to do this under OS X Server? I've looked up information in a couple UNIX websites last night but it made it sound like I couldn't do this. I know this is possible under NT/2000. Any help would be greatly appreciated.
     
Junior Member
Join Date: Sep 2000
Location: Milwaukee, WI
Status: Offline
Jun 25, 2001, 09:47 AM
 
I was looking for ways to do the same thing, and have *also* found nothing. Perhaps I am not being creative enough in my thought process...

Let me know if you do happen to find out something..

Nate
     
Senior User
Join Date: Mar 2001
Location: Wethersfield, CT, USA
Status: Offline
Jun 25, 2001, 10:47 AM
 
You can assign privileges in a number of ways under OS X.

The question really is how to organize the privileges. Whoever creates the folder is the owner, the owner has unlimited read/write/execute privileges, unless otherwise inhibited by the system admin. There is also a group associated with every folder or file, most often it is the top-most group to which the owner belongs, but it can be changed or left open, below that is everybody else, for which you can block access entirely or give simple read only permissions. In the case of needing to set two groups with different permissions, the easiest thing to do is create a link. You can then block everyone access for both folders, set the group for the real folder to the one which gets read/write access, then set the group on the link to the one that gets read only access, leaving the owner the same for both.

To do this:

Log on as the admin user.
Open a Terminal session.
Type % <BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>sudo -s</font>[/code]
Enter the admin password
Navigate to the directory level which contains the folder.
Type # <BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>ls -l</font>[/code]
Review the current folder privileges (owner & group)
Type # <BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>ln -s ./name_of_folder/ ./name_of_link_folder/</font>[/code]
The -s attribute creates a symbolic link as opposed to a hard link.
Now type # <BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>chgrp -R -h name_of_read only_group ./name_of_link_folder</font>[/code]
Type # <BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>exit</font>[/code]

That should be it. Now you can use the Privileges tab from the command-I window to set the permissions.

Ciao!
G4/533 DP, 768 MB RAM, 40GB HDD, 32MB GeForce2 MX, 30GB VST Firewire Drive, and an Apple Cinema Display.
     
 
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 10:06 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2