Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'use backslshes to post long strings' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
use backslshes to post long strings
Authored by: Hal Itosis on Oct 29, '08 09:37:53AM
No need to s_t_r_e_t_c_h any thread's window to post long ACLs (or other command).

sudo chmod +a "group:everyone deny delete" /Users/sally \
/Users/sally/Desktop /Users/sally/Documents /Users/sally/Library \
/Users/sally/Movies /Users/sally/Music /Users/sally/Pictures \
/Users/sally/Public /Users/sally/Sites /Users/sally/Downloads


sudo chmod +a user:sally\ allow\ list,search,add_file,\
delete,add_subdirectory,delete_child,readattr,writeattr,\
readextattr,writeextattr,readsecurity,writesecurity,chown,\
file_inherit,directory_inherit /Users/sally/Public/Drop\ Box

Perhaps it's not "necessary" but... explicitly stating 'user:' or 'group:' is less ambiguous.

BTW, applying the user ACL to the Drop Box should not normally call for recursion (chmod -R).
And -- if that were desirable -- it wouldn't be necessary to include file-specific entries (such as
read,execute,write,append) because -- when applied recursively -- the corresponding folder
entries (list,search,add_file,add_subdirectory) get "translated" to their file counterparts.

I also added the writesecurity,chown entries... because that's what Leopard seems to do.
I also left the "/Users/sally/Downloads" folder, even though Tiger doesn't usually have one.

-HI-

[ Reply to This | # ]