[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: default permissions
- To: Schlomo Schapiro <schlomo(at-nospam)schapiro.org>
- Subject: Re: default permissions
- From: Moshe Zadka <moshez(at-nospam)math.huji.ac.il>
- Date: Mon, 4 Dec 2000 09:12:44 +0200 (IST)
- cc: Linux-Il Mailing List <linux-il(at-nospam)cs.huji.ac.il>
- In-Reply-To: <Pine.LNX.4.21_heb2.08.0012040707260.1710-100000@nessy.home>
- Reply-To: Moshe Zadka <moshez(at-nospam)zadka.site.co.il>
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
On Mon, 4 Dec 2000, Schlomo Schapiro wrote:
> 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.
I think that in that case permissions on the directories should take
care of the privacy problem (e.g., if only www has any permissions to the
/var/www directory, who cares about the permissions of the files inside?).
The gid can be solved by setting the setgid bit on the directories
in question.
--
Moshe Zadka <moshez@zadka.site.co.il> -- 95855124
http://moshez.org
=================================================================
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