I'm using Amazon Linux. I have set global read permissions on a file, but I can't seem to access it as a normal user:
[myuser@mymachine ~]$ ls -al /usr/java/jboss/standalone/deployments/myproject.war/css/reset.css
ls: cannot access /usr/java/jboss/standalone/deployments/myproject.war/css/reset.css: Permission denied
[myuser@mymachine ~]$ sudo ls -al /usr/java/jboss/standalone/deployments/myproject.war/css/reset.css
-rwxrwxr-x 1 jboss jboss 771 Oct 29 18:51 /usr/java/jboss/standalone/deployments/myproject.war/css/reset.css
[myuser@mymachine ~]$ whoami
myuser
Notice that when I run "sudo" I am able to access it. I would like to keep the file owned by the jboss user. How can I get the file accessible to my (or anyone else's user) in read mode?
ls -al /usrthenls -al /usr/javaand so on, to find where you have problems. You can have "extended ACLs" on some component of the path (see commandlsattr) and even some specific to the filesystem you use, but this is far less likely than a pure base problem of read/execute rights missing. So first try component by component to pinpoint the problem. – Patrick Mevzek Dec 07 '17 at 16:02lsandls -l, see https://unix.stackexchange.com/a/150456/211833 – Patrick Mevzek Dec 07 '17 at 16:05ls -l, yes. – Patrick Mevzek Dec 07 '17 at 16:21