Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #231534

sshfs has fubared mount

From Gene Heskett <gheskett@shentel.net>
Newsgroups linux.debian.user
Subject sshfs has fubared mount
Date 2021-02-09 06:10 +0100
Message-ID <BGtrH-5iH-3@gated-at.bofh.it> (permalink)
Organization none,nada,zip

Show all headers | View raw


Greetings all;

I have sshfs setup so I can move files around between this box and 4 
others, 3 of which are now running buster.  Works only for the user, me.

Same install medium, a usb key, has installed buster to a 5th machine, 
which is identical to two of the other 4.

But the mount permissions are inverted, only root can mount this 5th 
machine.  ssh -Y aliasname works normally, and I am logged into this 5th 
machine fron a konsole as me, user 1000.

Only I can execute these 4 lines of a script in my bin directory
#!/bin/bash
sshfs gene@sixty40.coyote.den:/ /sshnet/sixty40
sshfs gene@lathe:/              /sshnet/lathe
sshfs gene@GO704:/              /sshnet/GO704
sshfs pi@rpi4:/			/sshnet/rpi4

but only root can execute this last line

sshfs gene@Hardinge1:/		/sshnet/Hardinge1

generating this error when I run this script as me.
gene@coyote:~$ bin/mount-machines
fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option
fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option
fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option
fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option

The above mounts have already been done, and the onwership and perms 
of /sshnet/Hardinge1 are identical to the other 4 above

fusermount: user has no write access to mountpoint /sshnet/Hardinge1
which is
ls -la /sshnet/ (on this machine)
total 84
drwxr-xr-x  9 gene gene  4096 Feb  8 10:10 .
drwxr-xr-x 28 root root  4096 Dec 12 03:44 ..
drwxr-xr-x  1 root root  4096 Feb  4 15:59 GO704
drwxr-xr-x  2 root root  4096 Feb  8 10:10 Hardinge1
drwxr-xr-x  1 root root  4096 Feb  3 14:16 lathe
drwxr-xr-x  2 root root  4096 Apr 25  2019 redpitaya
drwxr-xr-x  1 root root  4096 Feb  1 04:46 rpi4
drwxr-xr-x  1 root root  4096 Feb  4 15:43 sixty40
drwxr-xr-x  2 root root  4096 May  2  2019 vna

How do I fix this? I do not want a root perms holder to have access.
Anything I need to do to any of thse machines that needs root, can be 
done with sudo from a normal login as the first user.

Thanks all.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>

Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

sshfs has fubared mount Gene Heskett <gheskett@shentel.net> - 2021-02-09 06:10 +0100
  Re: sshfs has fubared mount David Christensen <dpchrist@holgerdanske.com> - 2021-02-09 08:30 +0100
    Re: sshfs has fubared mount Gene Heskett <gheskett@shentel.net> - 2021-02-09 14:20 +0100
      Re: sshfs has fubared mount David Christensen <dpchrist@holgerdanske.com> - 2021-02-09 22:10 +0100
        Re: sshfs has fubared mount Gene Heskett <gheskett@shentel.net> - 2021-02-09 23:20 +0100
        Re: sshfs has fubared mount Andrei POPESCU <andreimpopescu@gmail.com> - 2021-02-10 10:10 +0100
          Re: sshfs has fubared mount Gene Heskett <gheskett@shentel.net> - 2021-02-10 13:40 +0100
            Re: sshfs has fubared mount Andrei POPESCU <andreimpopescu@gmail.com> - 2021-02-10 15:50 +0100
  Re: sshfs has fubared mount <tomas@tuxteam.de> - 2021-02-09 10:20 +0100
    Re: sshfs has fubared mount Gene Heskett <gheskett@shentel.net> - 2021-02-09 14:40 +0100
      Re: sshfs has fubared mount <tomas@tuxteam.de> - 2021-02-09 15:10 +0100
  Re: sshfs has fubared mount David Wright <deblis@lionunicorn.co.uk> - 2021-02-09 16:10 +0100
    Re: sshfs has fubared mount Gene Heskett <gheskett@shentel.net> - 2021-02-09 16:50 +0100
  Re: sshfs has fubared mount Anssi Saari <as@sci.fi> - 2021-02-09 17:00 +0100
    Re: sshfs has fubared mount Gene Heskett <gheskett@shentel.net> - 2021-02-09 17:30 +0100
      Re: sshfs has fubared mount Anssi Saari <as@sci.fi> - 2021-02-10 13:00 +0100
        Re: sshfs has fubared mount Gene Heskett <gheskett@shentel.net> - 2021-02-10 14:10 +0100
          Re: sshfs has fubared mount ellanios82 <ellanios82@gmail.com> - 2021-02-10 20:40 +0100

csiph-web