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


-- 

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to