Re: Umask for office documents



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.
.



Relevant Pages

  • objFile.Copy making folder read only?
    ... I finally got this script working but now I am getting a 'Permission Denied" ... on the folder Im copying images to after I run it once. ... propted for one username after there are no more pictures. ... Dim objFile ...
    (microsoft.public.scripting.vbscript)
  • Re: Quick Launch bar can not be opened
    ... Similarly do the changes in "Shell Folders". ... >Windows XP Shell ... try to enable Quick Launch bar. ... >for Win98 where you recreate the Quick Launch folder ...
    (microsoft.public.windowsxp.customize)
  • Re: Setting up Web Folders on a Server
    ... I added the user through Administrative Tools / Computer Management / Local ... The odd thing is I just tried accessing the folder directly through IE6. ... I went back to Add Network Place, entered the same url, username, and ...
    (microsoft.public.inetserver.iis)
  • Re: How to get the file version value
    ... On the left side of the that page is a header item "Shell Objects ... The Folder item in the list probably describes the members of the original ... Filter method and is the newest one reported by TLViewer on my system. ... find that hidden files were left out and that the Explorer ...
    (microsoft.public.scripting.vbscript)
  • Re: Help with VB6 Creating Form
    ... This allows you to select a folder, ... Const BIF_RETURNONLYFSDIRS = &H1 ... Dim oShell As Shell ... I'm looking at saving the location in the Registry, which I'm reading about how to do. ...
    (microsoft.public.vb.general.discussion)