On Thu, 2012-11-08 at 10:58 +0000, Kerin Millar wrote:
> William Kenworthy wrote:
> > If I try and do:
> >
> > moriah ~ # mount -t ceph 192.168.44.68:6789:/ /mnt/ceph -o users
> > mount error 22 = Invalid argument
> >
> 
> Specifying "users" in that context doesn't make sense. Try creating an 
> entry in /etc/fstab. For example:
> 
> 192.168.44.68:6789:/    /mnt/ceph    ceph    users    0 0
> 
> Then see if you can mount by its mountpoint:
> 
> $ mount /mnt/ceph
> 
> > It turns out the driver doesnt recognise the user or users mount option
> > and gentoo wont let a user mount or access a root mount, or even let a
> > user mount.  Tried adding the user to the disk group without any effect.
> >
> 
> It's not a driver option. /bin/mount is suid root and refers to fstab to 
> decide whether a non-root user should be allowed to mount.
> 
> Generally speaking, regular user accounts should not be added to the 
> disk group. That provides raw read/write access to block device nodes 
> such as dev/sda, which is a potential risk both in terms of safety and 
> security.
> 
> > Something in gentoo's user access control is causing this problem I
> > think, so how can I get around it?
> >
> > BillK
> >
> >

Thanks Kerin, but that has the same problem - but it did allow me to
chown the mount point so its usable/testable by users.

BillK



Reply via email to