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


Groups > linux.debian.user > #231588

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 15:50 +0100
Message-ID <BGYYy-7Si-3@gated-at.bofh.it> (permalink)
References <BGtrH-5iH-3@gated-at.bofh.it> <BGIqK-6hj-1@gated-at.bofh.it> <BGTFv-4P0-5@gated-at.bofh.it> <BGWWL-6Ge-15@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 Mi, 10 feb 21, 07:31:51, Gene Heskett wrote:
> 
> But where I was now forced to use root to make this newer subdir, because 
> the re-organization of all this crap that hides root only commands from 
> the user, now forced me to use root to make that new subdir even though 
> I owned the parent directory. So I was by some, to me missquided 
> thinking about security, forced to use root AND as root change the 
> ownership to me before it would work as intended.

[unreproducible]

amp@acr13:~$ export LANG=C.UTF-8
amp@acr13:~$ ls -ld /
drwxr-xr-x 18 root root 4.0K 10 Feb 16:37 /

[/ is owned by root, naturally]

amp@acr13:~$ mkdir /testdir
mkdir: cannot create directory ‘/testdir’: Permission denied

[no surprise here]

amp@acr13:~$ sudo mkdir /testdir
amp@acr13:~$ mkdir /testdir/subdir
mkdir: cannot create directory ‘/testdir/subdir’: Permission denied

[no surprise here either, /testdir is owned by root]

amp@acr13:~$ sudo chown amp:amp /testdir
amp@acr13:~$ mkdir /testdir/subdir
amp@acr13:~$ ls -l /testdir
total 4.0K
drwxr-xr-x 2 amp amp 4.0K 10 Feb 16:38 subdir

[after changing permissions the 'mkdir' succeeds (as expected) and the 
new directory is owned by 'amp' (as expected)]

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