Is there something special about mount points in / ?
Ceri Davies
ceri at FreeBSD.org
Wed Nov 19 14:44:45 PST 2003
On Wed, Nov 19, 2003 at 03:39:33PM -0700, Dr Lyman Hazelton wrote:
> I have set vfs.usermount=1, and now I can create a local directory
> (call it "xxx") in my home dir and use it successfully to do
>
> mount -t cd9660 /dev/cd0 xxx
>
> or
>
> mount -t msdos /dev/fd0 xxx
>
> However, if I attempt to use the "standard" mount points, /cdrom or
> /floppy, to do the same thing, like
>
> mount -t cd9660 /dev/cd0 /cdrom
>
> I get the message: cd9660: /dev/cd0: Operation not permitted.
>
> I have set the permissions on /cdrom to 555 and the file is owned by
> root:operators, and my non-root user-id is a member of operators. Is
> there something special I have to do to /cdrom to make it usable to
> non-root users?
The user doing the mount needs to own the mountpoint directory.
From the manpage for mount(2):
ERRORS
The mount() function will fail when one of the following occurs:
[EPERM] The caller is neither the super-user nor the
owner of dir.
Ceri
--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20031119/5ed1a483/attachment.bin
More information about the freebsd-questions
mailing list