I have encountered an interesting situation. I have a USB disk drive auto-mounted (i.e, mounted by the automounter - I didn't explicitly mount it) and it is mounted with "nosuid" (which is normal). But I would like it to
be mounted with suid working. It seems I should be able to do something like:
# mount -o remount,suid /dev/sdb1
but that generates err msg "invalid option or not mounted" (*) (as does
every variation of the above that I've tried).
I also tried "nonosuid",
but that doesn't work either.
(*) "mount" is notorious for giving "Ken Thompson style" error messages (i.e., the only error message you'll ever need is "No").
On Fri, 19 Apr 2024 17:42:31 +0000, Kenny McCormack wrote:
I have encountered an interesting situation. I have a USB disk drive
auto-mounted (i.e, mounted by the automounter - I didn't explicitly mount it)
and it is mounted with "nosuid" (which is normal). But I would like it to >> be mounted with suid working. It seems I should be able to do something
like:
# mount -o remount,suid /dev/sdb1
but that generates err msg "invalid option or not mounted" (*) (as does
every variation of the above that I've tried).
That's strange. mount(8) explicitly names "suid" as an option, with the >explanation:
suid Allow set-user-identifier or set-group-identifier bits to take
effect.
In article <uvud53$30gsv$1@dont-email.me>,
Lew Pitcher <lew.pitcher@digitalfreehold.ca> wrote:
On Fri, 19 Apr 2024 17:42:31 +0000, Kenny McCormack wrote:
I have encountered an interesting situation. I have a USB disk drive
auto-mounted (i.e, mounted by the automounter - I didn't explicitly mount it)
and it is mounted with "nosuid" (which is normal). But I would like it to >>> be mounted with suid working. It seems I should be able to do something >>> like:
# mount -o remount,suid /dev/sdb1
but that generates err msg "invalid option or not mounted" (*) (as does
every variation of the above that I've tried).
That's strange. mount(8) explicitly names "suid" as an option, with the >>explanation:
suid Allow set-user-identifier or set-group-identifier bits to take
effect.
OK - that's my reason for posting. To find out that it "should" work.
That there is an option for it.
Turns out that it works if I use the mount point rather than the device. I.e.,:
# mount -o remount,suid /path/to/wherever/it/was/mounted
works as expected. Strange, because for as long as I've been using
"mount", it has always been OK to use either the device name or the mount point (for a mounted device - i.e., once it has been mounted); they are basically synonymous. But this seems to be an exception.
Kenny McCormack <gazelle@shell.xmission.com> wrote at 20:39 this Friday (GMT):
In article <uvud53$30gsv$1@dont-email.me>,
Lew Pitcher <lew.pitcher@digitalfreehold.ca> wrote:
On Fri, 19 Apr 2024 17:42:31 +0000, Kenny McCormack wrote:
I have encountered an interesting situation. I have a USB disk drive
auto-mounted (i.e, mounted by the automounter - I didn't explicitly mount it)
and it is mounted with "nosuid" (which is normal). But I would like it to >>>> be mounted with suid working. It seems I should be able to do something >>>> like:
# mount -o remount,suid /dev/sdb1
but that generates err msg "invalid option or not mounted" (*) (as does >>>> every variation of the above that I've tried).
That's strange. mount(8) explicitly names "suid" as an option, with the >>>explanation:
suid Allow set-user-identifier or set-group-identifier bits to take
effect.
OK - that's my reason for posting. To find out that it "should" work.
That there is an option for it.
Turns out that it works if I use the mount point rather than the device.
I.e.,:
# mount -o remount,suid /path/to/wherever/it/was/mounted
works as expected. Strange, because for as long as I've been using
"mount", it has always been OK to use either the device name or the mount
point (for a mounted device - i.e., once it has been mounted); they are
basically synonymous. But this seems to be an exception.
Strange, I thought remount worked with the block device..
Turns out that it works if I use the mount point rather than the device.
I.e.,:
# mount -o remount,suid /path/to/wherever/it/was/mounted
works as expected. Strange, because for as long as I've been using
"mount", it has always been OK to use either the device name or the mount
point (for a mounted device - i.e., once it has been mounted); they are
basically synonymous. But this seems to be an exception.
Strange, I thought remount worked with the block device..
candycanearter07 <candycanearter07@candycanearter07.nomail.afraid>
writes:
Kenny McCormack <gazelle@shell.xmission.com> wrote at 20:39 this Friday (GMT):
In article <uvud53$30gsv$1@dont-email.me>,
Lew Pitcher <lew.pitcher@digitalfreehold.ca> wrote:
On Fri, 19 Apr 2024 17:42:31 +0000, Kenny McCormack wrote:
I have encountered an interesting situation. I have a USB disk drive >>>>> auto-mounted (i.e, mounted by the automounter - I didn't explicitly mount it)
and it is mounted with "nosuid" (which is normal). But I would like it to
be mounted with suid working. It seems I should be able to do something >>>>> like:
# mount -o remount,suid /dev/sdb1
but that generates err msg "invalid option or not mounted" (*) (as does >>>>> every variation of the above that I've tried).
That's strange. mount(8) explicitly names "suid" as an option, with the >>>>explanation:
suid Allow set-user-identifier or set-group-identifier bits to take
effect.
OK - that's my reason for posting. To find out that it "should" work.
That there is an option for it.
Turns out that it works if I use the mount point rather than the device. >>> I.e.,:
# mount -o remount,suid /path/to/wherever/it/was/mounted
works as expected. Strange, because for as long as I've been using
"mount", it has always been OK to use either the device name or the mount >>> point (for a mounted device - i.e., once it has been mounted); they are
basically synonymous. But this seems to be an exception.
Strange, I thought remount worked with the block device..
I haven't used remount much but I'll make one observation... A block
device can be mounted in more than one place, so it would make sense for remount to need the mount point rather than the device to be sure of
what needs to be remounted.
I don't think I've seen multiple mount points before
On Sun, 21 Apr 2024 13:40:02 -0000 (UTC), candycanearter07 wrote:
I don't think I've seen multiple mount points before
Linux calls them “bind mounts”. Very handy, for example with containers, to give the guest userland visibility into selected parts of the host filesystem.
Lawrence D'Oliveiro <ldo@nz.invalid> wrote at 00:11 this Monday (GMT):
On Sun, 21 Apr 2024 13:40:02 -0000 (UTC), candycanearter07 wrote:
I don't think I've seen multiple mount points before
Linux calls them “bind mounts”. Very handy, for example with
containers,
to give the guest userland visibility into selected parts of the host
filesystem.
Makes sense, since you can't hard link directories.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 299 |
Nodes: | 16 (2 / 14) |
Uptime: | 76:13:10 |
Calls: | 6,695 |
Calls today: | 5 |
Files: | 12,228 |
Messages: | 5,347,217 |
Posted today: | 2 |