Hi,

I actually also need such a feature, but for a different reason: 

On the network server I am putting files into all kind of directories, but
in each dir the files should have a different umask/gid, because some dirs
are public and others are not and yet others are for the web server etc.

Just now I put the files and chmod/chown them all the time. If I could set
up a dir to create files with a certain umask/gid then I could work as
user and the permissions and ownerships would come automatically.

Schlomo


Sincerely,

Schlomo Schapiro

 ---
email: [EMAIL PROTECTED]
WWW:   http://www.schapiro.org

On Sun, 3 Dec 2000, Aviram Jenik wrote:

> Hi.
> 
> >
> > When a file gets created on a UNIX system, the permissions are determined
> > by two things: umask, and requested permissions. Various solutions can
> > be devised based on changing one of these parameters -- if you tell
> > us why you need this, maybe we could be of more help.
> 
> I'm using an internal program that creates local files on the system in a
> predefined directory (for example, log files, etc). This application writes
> files using the default umask (as you both explained), but I want it to have
> a different umask then the default (for example, give o+r when the default
> umask is different). I don't care much about ownership, so that's not an
> issue.
> 
> I'd rather not modify the application itself, and not wrap it with scripts.
> The best solution would be to somehow change the umask of the *directory*
> without affecting the global umask.
> I was hoping there would be a simple and straightforward way to do it under
> UNIX...
> 
> Any ideas?
> 
> - Aviram
> 
> 
> 
> =================================================================
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]
> 


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to