The question is: Can this be generalized? Can I use the FUSE idea to
do a non-sshfs type mount? What I have in mind is something like:
From the manpage:
fusermount3 is a program to mount and unmount FUSE
filesystems. It should be called directly only for unmounting
FUSE file systems. To allow mounting and unmounting by
unprivileged users, fusermount3 needs to be installed set-uid
root.
Use fusermount instead if mount and set the setuid.
The question is: Can this be generalized? Can I use the FUSE idea to
do a non-sshfs type mount? What I have in mind is something like:
In article <HH3iL.2758$[email protected]>,
Scott Lurndal <[email protected]> wrote:
[email protected] (Kenny McCormack) writes:
I know that with sshfs, I can mount things as an ordinary user. This uses >>>the "FUSE" system, which involves some setuid programs to achieve the >>>magic. Note, incidentally, that /usr/bin/sshfs is *not* setuid, but >>>/bin/fusermount is.
The question is: Can this be generalized? Can I use the FUSE idea to do a >>>non-sshfs type mount? What I have in mind is something like:
$ mke2fs file 10m
$ mkdir /tmp/goofy
$ mount file /tmp/goofy
$ mount -o loop,rw file /tmp/goofy
$ mount -o loop,rw file /tmp/goofy
mount: only root can use "--options" option
$ mount file /tmp/goofy
mount: only root can do that
$
Do you think that maybe, just maybe, I had tried all that before starting >this thread?
[email protected] (Kenny McCormack) writes:
I know that with sshfs, I can mount things as an ordinary user. This uses >>the "FUSE" system, which involves some setuid programs to achieve the >>magic. Note, incidentally, that /usr/bin/sshfs is *not* setuid, but >>/bin/fusermount is.
The question is: Can this be generalized? Can I use the FUSE idea to do a >>non-sshfs type mount? What I have in mind is something like:
$ mke2fs file 10m
$ mkdir /tmp/goofy
$ mount file /tmp/goofy
$ mount -o loop,rw file /tmp/goofy
I know that with sshfs, I can mount things as an ordinary user. This uses >the "FUSE" system, which involves some setuid programs to achieve the
magic. Note, incidentally, that /usr/bin/sshfs is *not* setuid, but >/bin/fusermount is.
The question is: Can this be generalized? Can I use the FUSE idea to do a >non-sshfs type mount? What I have in mind is something like:
$ mke2fs file 10m
$ mkdir /tmp/goofy
$ mount file /tmp/goofy
[email protected] (Kenny McCormack) writes:
In article <HH3iL.2758$[email protected]>,
Scott Lurndal <[email protected]> wrote:
[email protected] (Kenny McCormack) writes:
I know that with sshfs, I can mount things as an ordinary user. This uses >>>>the "FUSE" system, which involves some setuid programs to achieve the >>>>magic. Note, incidentally, that /usr/bin/sshfs is *not* setuid, but >>>>/bin/fusermount is.
The question is: Can this be generalized? Can I use the FUSE idea to do a >>>>non-sshfs type mount? What I have in mind is something like:
$ mke2fs file 10m
$ mkdir /tmp/goofy
$ mount file /tmp/goofy
$ mount -o loop,rw file /tmp/goofy
$ mount -o loop,rw file /tmp/goofy
mount: only root can use "--options" option
$ mount file /tmp/goofy
mount: only root can do that
$
Do you think that maybe, just maybe, I had tried all that before starting >>this thread?
The idea is to make a small suid-root utility that does the
above loopback mount. Much like fusermount.
The idea is to make a small suid-root utility that does the
above loopback mount. Much like fusermount.
Sounds good. Can you give me the root password for the machine on
which I need to do this? Thanks.
'Cause I'll need that in order to create that suid-root utility...
Can you give me the root password for the machine
I know that with sshfs, I can mount things as an ordinary user. This uses the "FUSE" system, which involves some setuid programs to achieve the
magic. Note, incidentally, that /usr/bin/sshfs is *not* setuid, but /bin/fusermount is.
... Can I use the FUSE idea to do a
non-sshfs type mount? What I have in mind is something like:
$ mke2fs file 10m
$ mkdir /tmp/goofy
$ mount file /tmp/goofy
The question is: Can this be generalized? Can I use the FUSE idea to do a non-sshfs type mount? What I have in mind is something like:
$ mke2fs file 10m
$ mkdir /tmp/goofy
$ mount file /tmp/goofy
On Thu, 1 Dec 2022 09:12:17 -0000 (UTC), Kenny McCormack
<[email protected]> wrote:
The question is: Can this be generalized? Can I use the FUSE idea to do a >> non-sshfs type mount? What I have in mind is something like:
$ mke2fs file 10m
$ mkdir /tmp/goofy
$ mount file /tmp/goofy
You'll want fuse2fs for this in particular, as the format will have to
be supported byc the fuse client. There are fuse clients for some other >formats as well (eg. fuseiso).
There used to be a mountlo project which ran an entire User Mode Linux >instance to mount the image and then expose it to the host kernel
through FUSE, giving you the ability to FUSE mount any Linux-supported
image, but seems at a glance that the project's not very alive these
days. Was an amusing kludge though.
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 714 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 136:23:45 |
| Calls: | 12,087 |
| Files: | 14,997 |
| Messages: | 6,517,376 |