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

Chris Hill chris at monochrome.org
Thu Jul 21 02:30:06 GMT 2005


On Wed, 20 Jul 2005, Conrad J. Sabatier wrote:

> 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'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.

HTH.

--
Chris Hill               chris at monochrome.org
**                     [ Busy Expunging <|> ]


More information about the freebsd-questions mailing list