From owner-freebsd-fs Fri Jan 19 19:30:16 2001 Delivered-To: freebsd-fs@freebsd.org Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.122.47]) by hub.freebsd.org (Postfix) with ESMTP id 544D537B402 for ; Fri, 19 Jan 2001 19:29:55 -0800 (PST) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.10.1/8.10.1) with ESMTP id f0K3TlK74390; Fri, 19 Jan 2001 19:29:47 -0800 (PST) Date: Fri, 19 Jan 2001 19:29:46 -0800 (PST) From: Doug White To: Dave Walton Cc: freebsd-fs@FreeBSD.ORG Subject: Re: suiddir and samba In-Reply-To: <3A675D82.10332.1E2BCB6@localhost> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, 18 Jan 2001, Dave Walton wrote: > According to mount(8), suiddir "is designed for use on fileservers > serving PC users via ftp, SAMBA, or netatalk." And chmod(1) > says of mode 4000, "Directories with the set-user-id bit set will > force all files and sub-directories created in them to be owned by > the directory owner and not by the uid of the creating process, if > the underlying file system supports this feature." > > I've got suiddir set up on a system that will be used as a file server. > It works fine, and behaves exactly as expected from a shell, > including having the suid bit inherited in new directories. However, > if a user creates a directory via SAMBA, the suid bit is NOT > inherited. Use samba's 'inherit permissions' option instead. (or something like that, I don't have the man page handy) Doug White | FreeBSD: The Power to Serve dwhite@resnet.uoregon.edu | www.FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message