[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: default permissions
- To: Linux-Il Mailing List <linux-il(at-nospam)cs.huji.ac.il>
- Subject: Re: default permissions
- From: Schlomo Schapiro <schlomo(at-nospam)schapiro.org>
- Date: Mon, 4 Dec 2000 07:09:56 +0200 (IST)
- In-Reply-To: <03db01c05d14$263524c0$0201a8c0@aviram>
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
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: schlomo@schapiro.org
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 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
>
=================================================================
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