[gentoo-user] More file system frustration

2012-11-08 Thread William Kenworthy
If I try and do:

moriah ~ # mount -t ceph 192.168.44.68:6789:/ /mnt/ceph -o users
mount error 22 = Invalid argument

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.

Something in gentoo's user access control is causing this problem I
think, so how can I get around it?

BillK






Re: [gentoo-user] More file system frustration

2012-11-08 Thread Bill Kenworthy
On Thu, 2012-11-08 at 17:59 +0800, 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
 
 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.
 
 Something in gentoo's user access control is causing this problem I
 think, so how can I get around it?
 
 BillK
 
 

I was able to chown the mount so a user can access it - not as flexible
as the normal way but its user accessible.

BillK






Re: [gentoo-user] More file system frustration

2012-11-08 Thread Kerin Millar

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/cephcephusers0 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








Re: [gentoo-user] More file system frustration

2012-11-08 Thread William Kenworthy
On Thu, 2012-11-08 at 10:58 +, 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/cephcephusers0 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