Re: Umask for office documents
- From: me@xxxxxxxxxxxxxxxxx (Király)
- Date: Sat, 31 May 2008 03:37:46 GMT
andrea <kerny404@xxxxxxxxx> wrote:
I would like that whenever I save a file with whatever program in a
certain folder it saves it with permission
rw-rw-r
Using umask it works but only with shell created files, how can I set
it globally??
Setting the umask is not a reliable way to do what you want if you are
working outside the shell. Even if you do set it globally, some
applications will ignore it and set the default -rw-r--r-- permissions
anyway. Finder is one such app.
A reliable way to do it is with ACLs. You must be running 10.4 or
higher.
Start with a new empty folder. Call it something like
/Users/Shared/foo
Then log in to an admin account, launch Terminal, paste these three
lines all at once, replacing "UserName" with short name of a user or
group to be given access:
sudo chmod +a "UserName allow delete,chown,list,search,add_file,\
add_subdirectory,delete_child,file_inherit,directory_inherit" \
/Users/Shared/foo
Repeat the above if you want to add more users.
When done, you are finished. Any file that is newly created anywhere in
that folder or its subfolders will be writable by all the users you
specified.
Note that if you want to move existing files there and have them inherit
the group write privilege, you'll have to COPY them there (hold down the
command key when drag-n-dropping).
--
K.
Lang may your lum reek.
.
- Follow-Ups:
- Re: Umask for office documents
- From: andrea
- Re: Umask for office documents
- References:
- Umask for office documents
- From: andrea
- Umask for office documents
- Prev by Date: Re: Where's Apple in the UMPC field?
- Next by Date: Re: 10.5.3 is out...
- Previous by thread: Re: Umask for office documents
- Next by thread: Re: Umask for office documents
- Index(es):
Relevant Pages
|