* [gentoo-user] More file system frustration
@ 2012-11-08 9:59 William Kenworthy
2012-11-08 10:37 ` Bill Kenworthy
2012-11-08 10:58 ` Kerin Millar
0 siblings, 2 replies; 4+ messages in thread
From: William Kenworthy @ 2012-11-08 9:59 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] More file system frustration
2012-11-08 9:59 [gentoo-user] More file system frustration William Kenworthy
@ 2012-11-08 10:37 ` Bill Kenworthy
2012-11-08 10:58 ` Kerin Millar
1 sibling, 0 replies; 4+ messages in thread
From: Bill Kenworthy @ 2012-11-08 10:37 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] More file system frustration
2012-11-08 9:59 [gentoo-user] More file system frustration William Kenworthy
2012-11-08 10:37 ` Bill Kenworthy
@ 2012-11-08 10:58 ` Kerin Millar
2012-11-08 12:39 ` William Kenworthy
1 sibling, 1 reply; 4+ messages in thread
From: Kerin Millar @ 2012-11-08 10:58 UTC (permalink / raw
To: gentoo-user
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
>
>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] More file system frustration
2012-11-08 10:58 ` Kerin Millar
@ 2012-11-08 12:39 ` William Kenworthy
0 siblings, 0 replies; 4+ messages in thread
From: William Kenworthy @ 2012-11-08 12:39 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-11-08 12:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-08 9:59 [gentoo-user] More file system frustration William Kenworthy
2012-11-08 10:37 ` Bill Kenworthy
2012-11-08 10:58 ` Kerin Millar
2012-11-08 12:39 ` William Kenworthy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox