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 > Software - Troubleshooting and Discussion > Mac OS X > Permissions Question

Permissions Question
Thread Tools
Senior User
Join Date: Sep 2000
Location: Glasgow, Scotland UK
Status: Offline
Reply With Quote
Feb 26, 2005, 07:35 AM
 
Is it possible to use a umask like command to change the default owner of files a user saves to a specific directory?

does anyone know how to alter this behaviour?
"You can't waste a life hating people, because all they do is live their life, laughing, doing more evil."

-ALPHA ROBERTSON,whose daughter was one of four girls killed in the bombing of a Birmingham, Ala., church in 1963.
     
Forum Regular
Join Date: Feb 2005
Status: Offline
Reply With Quote
Feb 26, 2005, 08:38 AM
 
File ownership is set by the effective UID of the process creating the file and cannot be inherited. Why do you need to change the owner? Why not use group permissions to control access to the file?
     
ntsc  (op)
Senior User
Join Date: Sep 2000
Location: Glasgow, Scotland UK
Status: Offline
Reply With Quote
Feb 26, 2005, 10:33 AM
 
the situation is that there are two users admin and projects, each in the same group. over samba, they manage their home dirs and login as themselves. however admin user requires access to projects's home dir (all of it). so with admin's account i umask'ed to make sure that they permit rwx permissions to the group. what i'd like to do is make sure that any files that admin writes to projects are readable by projects. but i don't want to allow projects to access any of admin's stuff so umask won't do what i want.
"You can't waste a life hating people, because all they do is live their life, laughing, doing more evil."

-ALPHA ROBERTSON,whose daughter was one of four girls killed in the bombing of a Birmingham, Ala., church in 1963.
     
   
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 09:43 PM.
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