From owner-freebsd-questions@FreeBSD.ORG Thu Jul 21 00:02:52 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D827916A41F for ; Thu, 21 Jul 2005 00:02:52 +0000 (GMT) (envelope-from conrads@cox.net) Received: from lakermmtao10.cox.net (eastrmmtai01.cox.net [68.230.240.29]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1068943D60 for ; Thu, 21 Jul 2005 00:02:22 +0000 (GMT) (envelope-from conrads@cox.net) Received: from serene.no-ip.org ([68.11.71.10]) by lakermmtao10.cox.net (InterMail vM.6.01.04.00 201-2131-118-20041027) with ESMTP id <20050721000218.MPIO14388.lakermmtao10.cox.net@serene.no-ip.org> for ; Wed, 20 Jul 2005 20:02:18 -0400 Received: from serene.no-ip.org (localhost [127.0.0.1]) by serene.no-ip.org (8.13.3/8.13.3) with ESMTP id j6L02IKa062975 for ; Wed, 20 Jul 2005 19:02:18 -0500 (CDT) (envelope-from conrads@serene.no-ip.org) Received: (from conrads@localhost) by serene.no-ip.org (8.13.3/8.13.3/Submit) id j6L02DKY062974 for freebsd-questions@freebsd.org; Wed, 20 Jul 2005 19:02:13 -0500 (CDT) (envelope-from conrads) Message-ID: X-Mailer: XFMail 1.5.5 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Wed, 20 Jul 2005 19:02:13 -0500 (CDT) Organization: A Rag-Tag Band of Drug-Crazed Hippies From: "Conrad J. Sabatier" To: freebsd-questions@freebsd.org Subject: Mount point's drwxrwxrwt permissions change when device is mounted (5.4-STABLE, amd64) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: conrads@cox.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jul 2005 00:02:53 -0000 I've been trying in vain today to get the permissions on the mount point for a USB drive (da0s1a) set to work the the same way as /tmp, i.e, with the "sticky" bit set (permissions drwxrwxrwt), but for some reason, as soon as I mount the drive, the permissions get changed to drwxr-xr-x instead. The ount point, branching off of the root (/) directory and owned by root:wheel, is setup with the correct permissions (chmod 01777) prior to mounting the device, but immediately changes once the device is mounted. I'm totally baffled. I've scoured the man pages for mount, chmod, sticky, etc., but haven't found anything that might explain why this is happening. I've even tried a kernel with "options SUIDDIR", added "suiddir" to the mount point's options in /etc/fstab, and enabled the suid and guid bits in the directory's permissions, but to no avail. It *still* gets reset to drwxr-x-r-x. I seem to recall that, once upon a time, it was possible to specify a mount point's owner and group in /etc/fstab (or was that only for MS-DOS filesystems?). If that's still possible, I'd surely like to know how, as that would be the ideal solution for me, really. In fact, my initial goal was to setup the mount point to be owned by my uid/group, to avoid having to run the process that will be writing to this directory (a networking daemon) with heightened privileges, but that doesn't seem to be at all possible anymore (if it ever *was* possible, that is). Can anyone shed some light on this for me? This is really most mystifying! Thanks! -- Conrad J. Sabatier -- "In Unix veritas"