• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Change folder/file ownership
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Change folder/file ownership


  • Subject: Change folder/file ownership
  • From: Henrik Boes <email@hidden>
  • Date: Tue, 17 Dec 2002 10:59:32 -0700

Hello,

I have looked through the archives and found things that tangentially address this issue, but have not found something that's spot on. My apologies if I overlooked something ... and my apologies also for posting a question that I could answer myself after looking over a beefy AppleScript book. To be honest, I do not have the time to do that at the moment and need an answer asap ...

Here's the situation I'm trying to address: people are saving data to a file server (OS X Server 10.2.2) that also acts as the CD burning computer for data to be handed to vendors etc. (it's a small design shop). The data is saved with the user and group info of the network user, meaning the network admin account logging into the server has no access to the files and folders and hence cannot burn CDs.

What I'd like to do is set up an AppleScript, linked to a folder via Folder Actions, that changes the ownership of all items (folders and items included therein) added to the folder to the network admin. Group ownership should stay the same, to allow network users access to the files after the process is complete.

I simply do not know the correct syntax for this procedure. How, for example, do you make the necessary "sudo chown"-like commands and have the admin password needed to authorize the change be entered automatically?

Any help would be appreciated. Thanks for your time.

Henrik Boes _______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: Change folder/file ownership
      • From: Laine Lee <email@hidden>
  • Prev by Date: Re: Replacing a character/word
  • Next by Date: Re: Speech commands - pitch mod broken in OS X
  • Previous by thread: RE: applescript-users digest, Vol 3 #1150 - 12 msgs
  • Next by thread: Re: Change folder/file ownership
  • Index(es):
    • Date
    • Thread