Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Jun 2021 10:34:22 -0400
From:      David Schlachter <david@schlachter.ca>
To:        freebsd-jail@freebsd.org
Subject:   Re: Only root can access a fusefs mount in a jail?
Message-ID:  <CAF104kOiEGD8BGqXERHPsAPJ7z3esPVijXm7wSc1tpB0Q=mGMw@mail.gmail.com>
In-Reply-To: <CAF104kMwLVkeHVh2A86X=g8MA-oNua8SoyBgZCBR6pSshw9-%2Bw@mail.gmail.com>
References:  <CAF104kOX_E3tmBoFgZgqh6AQfnm7UdGwQfHOYWf_r==HfzVQTQ@mail.gmail.com> <5277b3d5-dd8a-bb45-5dbd-aa9c66d9ce72@rlwinm.de> <CAF104kMwLVkeHVh2A86X=g8MA-oNua8SoyBgZCBR6pSshw9-%2Bw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000058cc7105c56fcf5e
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Found the solution =E2=80=94 it wasn't a jail-specific issue. Fusefs mounts=
 are
restricted to the user who mounted them, unless the 'allow_other' flag is
set on the mount. So, for another user to access root's fusefs mount, it
can be mounted as follows:

# sshfs -o uid=3D1001,gid=3D1001,allow_other user@server.tld: /mnt

David


Le ven. 18 juin 2021, =C3=A0 09 h 00, David Schlachter <david@schlachter.ca=
> a
=C3=A9crit :

> Thanks for your reply! In my jail, root is able to mount a fuse device. I=
f
> the permissions on the mounted device (and its contents) are 0777, I expe=
ct
> that all other users in the jail should be able to view the contents of t=
he
> mount (e.g. cd in to the mount, ls the files, etc). However, even though
> the device is mounted and the permissions should allow all other users to
> access the mount, only root can actually access it. I want root to be abl=
e
> to mount the device, and all other users to access it.
>

--00000000000058cc7105c56fcf5e--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAF104kOiEGD8BGqXERHPsAPJ7z3esPVijXm7wSc1tpB0Q=mGMw>