1 |
On Thu, 2012-11-08 at 10:58 +0000, Kerin Millar wrote: |
2 |
> William Kenworthy wrote: |
3 |
> > If I try and do: |
4 |
> > |
5 |
> > moriah ~ # mount -t ceph 192.168.44.68:6789:/ /mnt/ceph -o users |
6 |
> > mount error 22 = Invalid argument |
7 |
> > |
8 |
> |
9 |
> Specifying "users" in that context doesn't make sense. Try creating an |
10 |
> entry in /etc/fstab. For example: |
11 |
> |
12 |
> 192.168.44.68:6789:/ /mnt/ceph ceph users 0 0 |
13 |
> |
14 |
> Then see if you can mount by its mountpoint: |
15 |
> |
16 |
> $ mount /mnt/ceph |
17 |
> |
18 |
> > It turns out the driver doesnt recognise the user or users mount option |
19 |
> > and gentoo wont let a user mount or access a root mount, or even let a |
20 |
> > user mount. Tried adding the user to the disk group without any effect. |
21 |
> > |
22 |
> |
23 |
> It's not a driver option. /bin/mount is suid root and refers to fstab to |
24 |
> decide whether a non-root user should be allowed to mount. |
25 |
> |
26 |
> Generally speaking, regular user accounts should not be added to the |
27 |
> disk group. That provides raw read/write access to block device nodes |
28 |
> such as dev/sda, which is a potential risk both in terms of safety and |
29 |
> security. |
30 |
> |
31 |
> > Something in gentoo's user access control is causing this problem I |
32 |
> > think, so how can I get around it? |
33 |
> > |
34 |
> > BillK |
35 |
> > |
36 |
> > |
37 |
|
38 |
Thanks Kerin, but that has the same problem - but it did allow me to |
39 |
chown the mount point so its usable/testable by users. |
40 |
|
41 |
BillK |