On 12/04/2019 22.02, Carlos E. R. wrote:
In a nutshell:
cer-g@Isengard:/data/My_Book/Fusion/Videos> l Conviction/ ls: cannot open directory 'Conviction/': Permission denied cer-g@Isengard:/data/My_Book/Fusion/Videos> l | grep Conviction/ drwxrwxr-T+ 3 cer cer 33 Jun 21 2017 Conviction/ cer-g@Isengard:/data/My_Book/Fusion/Videos> pwd /data/My_Book/Fusion/Videos cer-g@Isengard:/data/My_Book/Fusion/Videos> whoami cer-g cer-g@Isengard:/data/My_Book/Fusion/Videos> groups users cer cer-g@Isengard:/data/My_Book/Fusion/Videos>
cer-g@Isengard:/data/My_Book/Fusion> l total 12 drwxr-xr-x 3 cer cer 28 Jul 20 2018 ./ drwxr-xr-x 4 root root 34 Nov 3 18:29 ../ drwxrwxr-T+ 52 cer cer 8192 Apr 12 03:43 Videos/ cer-g@Isengard:/data/My_Book/Fusion>
cer-g@Isengard:/data/My_Book/Fusion/Videos> mount | grep My /dev/mapper/cr_my_book on /data/My_Book type xfs (rw,nosuid,nodev,relatime,lazytime,attr2,inode64,noquota,user) cer-g@Isengard:/data/My_Book/Fusion/Videos>
User "cer-g" is member of groups "users" and "cer"
Directory has group permission "rwx" and is owned by "cer:cer" Same for parent directory.
The user "cer-g" is denied access to the directory "Conviction/" and others.
Why?
I tried ltrace on "cat Conviction". I know I can't cat a directory, but a trace on cd doesn't work because it is an internal bash command. However, instead of getting: cer-g@Isengard:/data/My_Book/Fusion/Videos> md p cer-g@Isengard:/data/My_Book/Fusion/Videos> cat p cat: p: Is a directory cer-g@Isengard:/data/My_Book/Fusion/Videos> but I get permission denied: cer-g@Isengard:/data/My_Book/Fusion/Videos> strace -o cat.strace cat Conviction/ cat: Conviction/: Permission denied cer-g@Isengard:/data/My_Book/Fusion/Videos> less cat.strace This is it, but doesn't tell anything new: open("/usr/lib/locale/en_US.utf8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=330604, ...}) = 0 mmap(NULL, 330604, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fc6e1b63000 close(3) = 0 fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 31), ...}) = 0 openat(AT_FDCWD, "Conviction/", O_RDONLY) = -1 EACCES (Permission denied) write(2, "cat: ", 5) = 5 write(2, "Conviction/", 11) = 11 open("/usr/share/locale-langpack/en_US.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) I also tried ltrace: getpagesize() = 4096 strrchr("cat", '/') = nil setlocale(LC_ALL, "") = "en_US.UTF-8" bindtextdomain("coreutils", "/usr/share/locale") = "/usr/share/locale" textdomain("coreutils") = "coreutils" __cxa_atexit(0x557774d18d40, 0, 0x557774f1e1e8, 0x736c6974756572) = 0 getopt_long(2, 0x7fffb8768458, "benstuvAET", 0x557774f1dc40, nil) = -1 __fxstat(1, 1, 0x7fffb87682a0) = 0 open("Conviction/", 0, 037777402000) = -1 __errno_location() = 0x7fea58c8a480 __ctype_get_mb_cur_max() = 6 __errno_location() = 0x7fea58c8a480 error(0, 13, 0x557774d1c324, 0x557774f1e300) = 0 __fpending(0x7fea58a8e720, 1, 0x557774d18d40, 0x7fea58a8ed70) = 0 fileno(0x7fea58a8e720) = 1 __freading(0x7fea58a8e720, 1, 0x557774d18d40, 0x7fea58a8ed70) = 0 __freading(0x7fea58a8e720, 1, 4, 0x7fea58a8ed70) = 0 fflush(0x7fea58a8e720) = 0 fclose(0x7fea58a8e720) = 0 __fpending(0x7fea58a8e640, 0, 0x7fea58a898e0, 2880) = 0 fileno(0x7fea58a8e640) = 2 __freading(0x7fea58a8e640, 0, 0x7fea58a898e0, 2880) = 0 __freading(0x7fea58a8e640, 0, 2052, 2880) = 0 fflush(0x7fea58a8e640) = 0 fclose(0x7fea58a8e640) = 0 +++ exited (status 1) +++ I don't know if this tells somebody what is going on. -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)