*BSD News Article 54447


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!chi-news.cic.net!newsfeed.internetmci.com!EU.net!Germany.EU.net!zib-berlin.de!news.tu-chemnitz.de!irz401!uriah.heep!not-for-mail
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc,comp.unix.admin
Subject: Re: Default permissions within dir.
Date: 12 Nov 1995 16:07:50 +0100
Organization: Private FreeBSD site, Dresden.
Lines: 18
Message-ID: <4852k6$k81@uriah.heep.sax.de>
References: <47thk2$b4o@news1.channel1.com>
NNTP-Posting-Host: uriah.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Keywords: Chmod, SGID, SUID
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:8531 comp.unix.admin:34731

Kevin J. Rocque <kevin@user1.channel1.com> wrote:
>I am trying to set up a directory so that the permission is
>the same for every new file, regardless of the user's umask
>setting.

This is impossible (short of tweaking the kernel).

>  This situation is analogous to chmod g+s /path/dir
>where dir is a directory.

This is a no-op on BSD, since it's the default behaviour.  On some
other systems, this causes the system to assume BSD semantics for this
directory hierarchy.
-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)