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


Groups > linux.debian.user > #231577

Re: sshfs has fubared mount

From Andrei POPESCU <andreimpopescu@gmail.com>
Newsgroups linux.debian.user
Subject Re: sshfs has fubared mount
Date 2021-02-10 10:10 +0100
Message-ID <BGTFv-4P0-5@gated-at.bofh.it> (permalink)
References <BGtrH-5iH-3@gated-at.bofh.it> <BGvDb-6y5-3@gated-at.bofh.it> <BGB5U-1F0-23@gated-at.bofh.it> <BGIqK-6hj-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Ma, 09 feb 21, 13:00:23, David Christensen wrote:
> 
> We were all confused by a feature of mount(1) -- mounting a remote
> filesystem changes the owner and group of the mount point on the local
> machine while the remote filesystem is mounted:

Maybe it's easier to understand that a file system is mounted "on top" 
of a mount point (which is typically, but not necessarily, an empty 
directory).

There is no change of permissions involved, one is just looking at two 
different directories, that just happen to be attached at the same point 
in the file system hierarchy.

> 2021-02-09 12:13:43 dpchrist@tinkywinky ~
> $ mount | grep '/po'
> 
> 2021-02-09 12:23:26 dpchrist@tinkywinky ~
> $ ls -ld /po
> drwxr-xr-x 2 dpchrist dpchrist 4096 Jan 21 13:32 /po
> 
> 2021-02-09 12:23:29 dpchrist@tinkywinky ~
> $ mount /po
> 
> 2021-02-09 12:24:14 dpchrist@tinkywinky ~
> $ mount | grep '/po'
> po:/ on /po type fuse.sshfs
> (ro,nosuid,nodev,noexec,relatime,user_id=13250,group_id=13250,user=dpchrist)
> 
> 2021-02-09 12:24:17 dpchrist@tinkywinky ~
> $ ls -ld /po
> drwxr-xr-x 1 root root 4096 Aug 30 18:09 /po
 
These are the permissions of the root directory of the mounted file 
system.
 
> The owner and group are restored when the filesystem is unmounted:
> 
> 2021-02-09 12:24:21 dpchrist@tinkywinky ~
> $ fusermount -u /po
> 
> 2021-02-09 12:25:45 dpchrist@tinkywinky ~
> $ ls -ld /po
> drwxr-xr-x 2 dpchrist dpchrist 4096 Jan 21 13:32 /po

Here you are looking again at the mount point.

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser

Back to linux.debian.user | Previous | Next — Previous in thread | 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