From owner-freebsd-security Sat Apr 10 0:19:26 1999 Delivered-To: freebsd-security@freebsd.org Received: from verdi.nethelp.no (verdi.nethelp.no [158.36.41.162]) by hub.freebsd.org (Postfix) with SMTP id AFC56150BE for ; Sat, 10 Apr 1999 00:19:22 -0700 (PDT) (envelope-from sthaug@nethelp.no) Received: (qmail 31186 invoked by uid 1001); 10 Apr 1999 07:17:08 +0000 (GMT) To: brett@lariat.org Cc: ingham@i-pi.com, security@FreeBSD.ORG Subject: Re: Interesting problem: chowning files sent via FTP From: sthaug@nethelp.no In-Reply-To: Your message of "Fri, 09 Apr 1999 22:33:33 -0600" References: <4.2.0.32.19990409223014.0451c930@localhost> X-Mailer: Mew version 1.05+ on Emacs 19.34.2 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Date: Sat, 10 Apr 1999 09:17:08 +0200 Message-ID: <31184.923728628@verdi.nethelp.no> Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Is this so? I was under the impression that the default group of a > new file was the login group of the creator, as specified in /etc/passwd. AFAIK, in all BSD versions the default group of a new file is the group of the directory it is created in. > As for the setgid-on-execution bit: there's no documentation on what it > does when set on a directory. The chmod(1) man page doesn't say anything. > Does it change the group ownership of newly created files? setgid on a directory is a SYSV-ism (or rather, close to a SVR4-ism). It means that the SYSV system in question should follow the BSD semantics for files created in this directory, instead of the default SYSV semantics (set the group of the file to the effective gid of the creating process). setgid on a directory works this way at least in Solaris 2 and HP-UX 10.x/ 11.x. Steinar Haug, Nethelp consulting, sthaug@nethelp.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message