image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
LinkBack Thread Tools
  #1  
Old October 19th, 2004, 03:08 PM
Registered User
 
Join Date: Apr 2002
Location: New York
Posts: 300
Thanks: 2
Thanked 0 Times in 0 Posts
djbeta is on a distinguished road
Crazy question about read/write privileges..

I have a folder that is shared by about 10 employees in my company.

I would LOVE it if there was a way so that they could

1. be able to create folders and upload files

2. not be able to rename or delete those files that they have already uploaded

A Dropbox is not an option because I need them to be able to access the files after they upload them.

Is this possible ???? it would help me out soo much if I could get something like this set up.

thanks in advance..
Reply With Quote
  #2  
Old October 19th, 2004, 05:05 PM
Registered User
 
Join Date: Jan 2004
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
gdekadt is on a distinguished road
Permissions that allow a user to write to a directory allow them to add, rename and delete.

You could look at setting up a cron task that would recursively change the ownership/permission on everything within that folder. As far as I know the minimum period for cron is one minute... the code would be a simple one liner like "sudo chmod -r -w /path\ to\ the\ folder/That_is_Shared/*". But don't quote me on that...

I've heard CroniX is good to simplify crontab changes.

Gabs

Last edited by gdekadt; October 19th, 2004 at 05:50 PM. Reason: better script example
Reply With Quote
  #3  
Old October 19th, 2004, 05:06 PM
Cat's Avatar
Cat Cat is offline
Registered User
 
Join Date: Jan 2003
Location: @ my Mac
Posts: 1,972
Thanks: 0
Thanked 0 Times in 0 Posts
Cat is on a distinguished road
You could set the permissione of the folder that they need to access to Read/Write, but set the individual files in the folder to Read Only. You could probably set this up with an AppleScript and a FolderAction, so that the permissions are automatically converted. People would all be able to upload and download the files they need, but would be prevented from deleting/changing things. You'd have to check exactly which groups the employees all belong to and what privileges they have, but I think this should work more or less.
__________________
This is not a signature (but I could be wrong).
15" MacBook Pro C2D@2.4 GHz | 2 GB RAM | Mac OS 10.5.4 |
Website | LinkedIn | Publications
GP/O d-(+)@ s: a->? C++(+++) U* P+ L+>++ !E---- W+++ N o? K? w--- O? M++ V? PS+++ PE-- Y+ PGP t 5? X- R !tv b++++ DI+(++)@ D+(++) G++(+++) e+++$>++++$$ h--->---- r+++ y++++@
Reply With Quote
  #4  
Old October 19th, 2004, 05:46 PM
ElDiabloConCaca's Avatar
Registered User
 
Join Date: Aug 2001
Location: San Antonio, Texas
Posts: 12,672
Thanks: 7
Thanked 388 Times in 370 Posts
ElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of light
In short, simply setting a certain priviledge to a folder will not accomplish what you want. You'll need a script or combination of scripts to accomplish what you want.

Being able to create a folder, then immediately not being able to rename the folder goes agains user priviledges and the UNIX multi-user style of doing things.
__________________
Mac mini 2.0GHz 10.6.2 • 4GB • 320GB • Superdrive • 4 x 1TB USB 2.0 • LED Cinema Display
MacBook 2.0GHz Core 2 Duo - White 10.6.2 • 4GB • 250GB • CD-RW/DVD-ROM
iPhone 3G 8GB • iPod Touch 8GB • iPod Photo 60GB • iPod nano 1GB • AT&T U-Verse 18Mb/2Mb
http://www.jeffhoppe.com
Reply With Quote
  #5  
Old October 19th, 2004, 09:56 PM
Registered User
 
Join Date: Apr 2002
Location: New York
Posts: 300
Thanks: 2
Thanked 0 Times in 0 Posts
djbeta is on a distinguished road
I think I understand... so far I think my best option is to configure folder actions on the folder in question to run some Applescript when a file/folder is added.
I'm very curious to find out if such a script is possible/difficult to write.

The reason I want to do this is because my users are uploading files to a shared folder and then uploading them to a filemaker database system that will rely on the paths to the files not changing.. If the path changes or a folder is renamed, the system's access to the file will be broken.

Thanks for the responses.. if anyone has any other suggestions, please share!
Reply With Quote
  #6  
Old October 20th, 2004, 12:29 AM
scruffy's Avatar
Notorious Olive Counter
 
Join Date: Dec 2000
Location: Soviet Canuckistan
Posts: 1,726
Thanks: 0
Thanked 0 Times in 0 Posts
scruffy is on a distinguished road
You can do it - set the 'sticky' permission bit on the directory. This allows users to create files in a directory, but only delete or rename those files that belong to them.

See the man pages for sticky and chmod for details.
__________________

What is the robbing of a bank compared to the founding of a bank?
-- Bertold Brecht
Reply With Quote
  #7  
Old October 20th, 2004, 10:38 AM
ElDiabloConCaca's Avatar
Registered User
 
Join Date: Aug 2001
Location: San Antonio, Texas
Posts: 12,672
Thanks: 7
Thanked 388 Times in 370 Posts
ElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of light
Hmm... but wouldn't that be like normal permissions? Every user has the ability to rename files and folders that belong to them, and if they copy the files and folders to a share, then unless that share has a "change permissions" script running on it, they would own those copied files and folders, thus be able to rename and delete them... no?
__________________
Mac mini 2.0GHz 10.6.2 • 4GB • 320GB • Superdrive • 4 x 1TB USB 2.0 • LED Cinema Display
MacBook 2.0GHz Core 2 Duo - White 10.6.2 • 4GB • 250GB • CD-RW/DVD-ROM
iPhone 3G 8GB • iPod Touch 8GB • iPod Photo 60GB • iPod nano 1GB • AT&T U-Verse 18Mb/2Mb
http://www.jeffhoppe.com
Reply With Quote
  #8  
Old October 20th, 2004, 03:15 PM
Natobasso's Avatar
Tech-Bot 5000
 
Join Date: Jul 2002
Location: Auckland, New Zealand
Posts: 3,270
Thanks: 1
Thanked 16 Times in 16 Posts
Natobasso is on a distinguished road
As long as the folder is set to Read Only you should be able to copy files but not rename or delete files. We have a problem with permissions on our server here at my contract job right now!

A great tool to get is "Tinker Tool". If you have Mac OS X 10.3 or 10.1 (doesn't do permissions in 10.2 for some reason) you can set your permissions very specifically for your computer with relation to the server.
__________________
http://thesalon.blogspot.com
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting 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 Off
Pingbacks are Off
Refbacks are Off

Forum Jump


All times are GMT -5. The time now is 04:17 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC1
Copyright 2000-2010 DigitalCrowd, Inc.