A
A
Alexander2017-02-04 14:02:39
linux
Alexander, 2017-02-04 14:02:39

Why can't I get into the directory with these permissions?

Lord, good day.
Unexpectedly, I came across such a situation. Created a "bind" directory in "/var/log" to store logs, in fact, of the Bind9 DNS server (Debian OS). Assigned the owner to bind: bind, rights 744, tk. The Bind server is run as the bind user. The server starts, writes a log to the file "/var/log/bind/query.log' - there are no questions here (although for some reason it does not write at 644, which is strange). The question is why I am on behalf of my usual user I can't get into the '/var/log/bind' directory because there are 4 access points for "everyone else":

[email protected]:/var/log$ ls -l | grep bind
drwxr--r-- 2 bind bind   4096 Feb  4 13:35 bind
[email protected]:/var/log$ cd bind/
-bash: cd: bind/: Permission denied
[email protected]:/var/log$ ls -l bind/
ls: cannot access 'bind/query.log': Permission denied
total 0
-????????? ? ? ? ?            ? query.log
[email protected]:/var/log$

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2017-02-04
@asand3r

The execute bit is needed to access the directory. Thanks Alex Ten

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question