Re: Change file rights
Re: Change file rights
- Subject: Re: Change file rights
- From: Gnarlodious <email@hidden>
- Date: Sat, 12 Jun 2004 18:00:05 -0600
Entity Graff spoke thus:
>
> Just curious, under OS X, aren't the who symbols u = user, g = group,
>
> o =
>
> other instead of o = owner, g = group, w = world? Doesn't the above do
>
> shell
>
> script then give everyone write permissions to
>
> /private/etc/httpd/somefile.txt?
>
>
Yes. Here's the relevant portion of the chmod manfile:
>
>
u The user permission bits in the original mode of the file.
>
g The group permission bits in the original mode of the file.
>
o The other permission bits in the original mode of the file.
Hey, sorry I gave the wrong info. I was trying to make it easier but
instead made it wrong.
I actually use the positional numbering scheme which is a lot easier:
Read=4
Write=2
Index=1
So saying:
do shell script "sudo chmod 754 somefile"
means:
Owner can read, write and index
Group can read and index
Others can read
Now you see why I use this scheme, because 'o' for owner is too easily
confused with 'o' for others. The Mac infowindow only adds to the
ambiguouity in this area. Add to that SQL calling "usage" the the equivalent
of "others" and it's a big old mess.
-- Gnarlie
The Naked Cube:
http://www.Gnarlodious.com/Entities/Computer/Cube/Cube.html
_______________________________________________
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.