bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can a file inherit file permissions from parent directory at fil


From: Paul Jarc
Subject: Re: How can a file inherit file permissions from parent directory at file creation?
Date: Thu, 12 Jun 2003 16:28:16 -0400
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux)

"Markus Wahl" <wahl2@home.se> wrote:
> I think I need some way to get files that are created
> to automatically inherit the file permission of the
> parent directory. Is that possible?

Not that I know of.  This isn't really a bash issue;
news:comp.unix.programmer would be an appropriate place for this
topic.  But are you sure you really need this?  Unless a process is
already running in the directory, or has a descriptor referring to it,
it must pass the directory's perimssion bits before the file's
permission bits are considered.

> Using umask (which is a bash built in command, right?)

Yes; it simply calls the kernel's umask() system call.


paul




reply via email to

[Prev in Thread] Current Thread [Next in Thread]