Date: Mon, 25 Nov 2019 13:50:08 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 241684] autofs: no way to have permissions other than 755 for automounted media Message-ID: <bug-241684-227-VvthbMy0To@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-241684-227@https.bugs.freebsd.org/bugzilla/> References: <bug-241684-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241684 Edward Tomasz Napierala <trasz@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|bugs@FreeBSD.org |trasz@FreeBSD.org --- Comment #1 from Edward Tomasz Napierala <trasz@FreeBSD.org> --- When you mount a filesystem, permissions on a mountpoint are taken from permissions from the mounted filesystem root directory. Basically: % ll total 6 drwxr-xr-x 3 root wheel 512 Nov 25 13:04 . drwxr-xr-x 23 root wheel 1024 Nov 25 13:04 .. drwxr-xr-x 3 root wheel 512 Nov 25 13:44 md0 trasz@v2:/media % ll total 6 drwxr-xr-x 3 root wheel 512 Nov 25 13:04 . drwxr-xr-x 23 root wheel 1024 Nov 25 13:04 .. drwxr-xr-x 3 root wheel 512 Nov 25 13:44 md0 trasz@v2:/media % cd md0=20 trasz@v2:/media/md0 % ls -al total 9 drwxrwxrwx 3 root wheel 512 Nov 25 13:47 . drwxr-xr-x 3 root wheel 512 Nov 25 13:04 .. drwxrwxr-x 2 root operator 512 Nov 25 13:46 .snap trasz@v2:/media/md0 % cd .. trasz@v2:/media % ls -al total 9 drwxr-xr-x 3 root wheel 512 Nov 25 13:04 . drwxr-xr-x 23 root wheel 1024 Nov 25 13:04 .. drwxrwxrwx 3 root wheel 512 Nov 25 13:47 md0 In this case, "ls -al" triggered mounting an UFS-formatted md0, which, befo= re the experiment, had "chmod 0777 ." done to its root inode. What I'm getting at - the permissions on autofs nodes shouldn't matter at a= ll; it's the mounted filesystem's permissions that's being used for the access checks. Could you tell me some more about your scenario? --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-241684-227-VvthbMy0To>