I'm running my server as a root user but despite that, when I run the command ls
I get this error:
bash: /bin/ls: Permission Denied.
I tried to change this file's permissions with chmod
but the permission is denied as well. What's the cause of this?
Best Answer
There are several potential causes for this.
noexec
.root
. While improbable, this is possible. Note thatroot
is not 100% the same as UID 0, which is a "special" ID that bypasses privilege checks. Theroot
account, however, is mapped to UID 0.More information is needed to really understand what is happening.