Filesharing and group permissions question.

I did a search and didn’t find an answer to my question. Sorry in advance if it’s here and I just missed it.

I’m wondering if someone has already run into this and come up with a solution before I try to reinvent the wheel.

I have a few labs that are both Mac and PC areas. They want to share files locally between their workstations as they move from one area of the lab to the next. The files need to be on a shared folder on an OSX (10.3) machine, and I want to have it set up so that users have to login in order to access any files on the machine.

What I need is some Folder Action or attached Apple Script that will change the default permissions on files, folders and enclosed items in those folders when they’re put into this shared folder. As is, items created with an administrator account can’t be changed by the lab account, and vice versa. Permissions can be manually changed, but that’s not much of a solution since you’d have to apply the change every time a file was added.

Any ideas? I played around with the folder actions options, but couldn’t get it to record a script that actually did this, although I’m new to that game, and might just be missing the obvious.

Thanks in advance. I’ve been all over the net and no one seems to have a nicely packaged solution to this that I can find yet. Some were close, but they didn’t handle the files contained withing folders added to the shared folder, which is important.

THis is just a concept but the only problem is undoing what it did if you run it
so Dont run this unless you know what its doing.

set theFolder to "/Examples"
do shell script "echo '
[SHareFolder]
   path =" & theFolder & "
  public = yes
   guest ok  = yes
  security = share
   writable = yes' >> /etc/smb.conf" password "####" with administrator privileges
do shell script "chmod 555 " & theFolder & "/*" password "####" with administrator privileges


tell application "System Preferences" to activate


tell application "System Events"
	tell process "system preferences"
		set frontmost to true
		click menu item "Sharing" of menu "View" of menu bar 1
		
		tell window "Sharing"
			tell tab group 1
				click radio button 1
				
				select row 2 of table 1 of scroll area 1
				--set value of checkbox 1 of row 2 of table 1 of scroll area 1 to 1
				try
					click button "Start"
				end try
			end tell
		end tell
		
		
	end tell
end tell