Mount point's drwxrwxrwt permissions change when device is mounted (5.4-STABLE, amd64)

Conrad Sabatier conrads at cox.net
Sat Jul 23 02:08:19 GMT 2005


On Wed, Jul 20, 2005 at 10:31:22PM -0400, Chris Hill wrote:
> On Wed, 20 Jul 2005, Conrad J. Sabatier wrote:
> 
> >The mount 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'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.
> 
> This sounds like something to do with devfs, since the device files get 
> created and destroyed as the devices themselves come and go. Look into 
> man devfs, also the files devfs.conf and devfs.rules.

Thanks, I'll look into your suggestions.

-- 
Conrad J. Sabatier <conrads at cox.net> -- "In Unix veritas"


More information about the freebsd-questions mailing list