01.03.2018 17:49, Roger Oberholtzer пишет:
On Thu, Mar 1, 2018 at 3:24 PM, Andrei Borzenkov <arvidjaar@gmail.com> wrote:
On Thu, Mar 1, 2018 at 5:16 PM, Roger Oberholtzer <roger.oberholtzer@gmail.com> wrote:
If the directory before the mount has 0777 (all rwx), after the mount those will be the permissions for the root of the mounted volume.
localhost:~ # ls -ld /mnt drwxrwxrwx 1 root root 0 Dec 6 03:16 /mnt localhost:~ # mount /dev/sdb1 /mnt localhost:~ # ls -ld /mnt drwx------ 1 test root 8 Feb 28 10:08 /mnt
# ls -ld /backup/ drwxrwxrwx 2 root root 4096 Mar 1 15:37 /backup/ # mount /dev/sdb1 /backup/ # ls -ld /backup/ drwxrwxrwx 2 root root 4096 Mar 1 15:37 /backup/
And is /dev/sdb1 (still) mounted on /backup at this point? grep -E 'backup|sdb1' /proc/self/mountinfo stat /backup before and after your commands?
This is a newly formatted ext4 volume.
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org