• 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
Re: File Properties Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File Properties Question


  • Subject: Re: File Properties Question
  • From: Axel Luttgens <email@hidden>
  • Date: Wed, 25 Apr 2007 17:42:42 +0200

On 25/04/07 16:38, Oakley Masten wrote:

Hi to All

[...]

--How do you set "read & write" to privileges?
--How do you assign defferent "Owner' ?



By default, Mac OS X just complies to the standard unix file security model.
This means that:
1. a regular user may not change the owner of any file
2. a regular user may change the group of a file he owns, provided he belongs to the new group
3. user root may change the owner and group of any file
4. only the owner of a file or user root may change a file's permission
("file" meaning any filesystem object)


Just do some trials thru the Finder's "Info for..." window: as soon as you try to override the above rules, you'll be asked for an administrator's name/password.
Of course, these rules apply as well to an AppleScript script run by you (ie from your user account).


So, you need to obtain sufficent privileges.
From AppleScript, there is the
do shell script "..." with administrator privileges
command from the Standard Additions, which allows you to run shell commands as user root.


The shell script itself (the one within the double quotes) would very likely involve "chown" and "chmod".

Unless you somewhat perversely call osascript to tell the Finder to set group privileges of ... ;-)

HTH,
Axel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >File Properties Question (From: Oakley Masten <email@hidden>)

  • Prev by Date: Re: Simple Date-Time Format Question...
  • Next by Date: Re: Simple Date-Time Format Question...
  • Previous by thread: File Properties Question
  • Next by thread: How to convert my text to PC encoding when using "write"
  • Index(es):
    • Date
    • Thread