[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Wrapping a program in scripts (was: Re: default permissions)
- To: linux ILUG <linux-il(at-nospam)linux.org.il>
- Subject: Wrapping a program in scripts (was: Re: default permissions)
- From: Omer Zak <omerz(at-nospam)actcom.co.il>
- Date: Sun, 3 Dec 2000 13:14:09 +0200 (EET)
- Delivered-To: linux.org.il-linux-il@linux.org.il
- In-Reply-To: <03db01c05d14$263524c0$0201a8c0@aviram>
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
On Sun, 3 Dec 2000, Aviram Jenik wrote:
> 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...
1. MODIFY THE APPLICATION (if you have access to its source code)!
Make it read the desired umask from a configuration file, environment
or argument list.
2. If you have no access to its source code, then wrapping it with scripts
and/or aliasing it - is a time-honored Unix way.
--- Omer
There is no IGLU Cabal. They stopped arguing how many angels can dance on
a pinhead because the question of trying to work around a program which
does not control umask - was better in pointlessness, and thus the former
Cabal dissolved.
WARNING TO SPAMMERS: at http://www.zak.co.il/spamwarning.html
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il