X
X
xuxubla2016-07-22 20:36:41
linux
xuxubla, 2016-07-22 20:36:41

Why can't I see my files via FTP/shell?

There is a VPS on Ubuntu. There is a folder /var/www/domain.ru.
I have the owner of the folder: user:user.
If I set permissions to 664 on folders, I don't see them. Only under root. Or set 775. Where am I wrong? Perhaps he messed up something with the group?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
mureevms, 2016-07-22
@mureevms

Well, that's right. To see the contents of the directory, he must have rights 775.
You are mistaken in the rights to the directory. To be able to open it, it must have execute permissions, i.e. opening the directory itself.

D
Dmitry, 2016-07-23
@zmitrok62

To see the contents of a directory on Linux, you need to "execute" ls in it. Accordingly, the "x" bit must be set for the directory.

Y
Yuri Chudnovsky, 2016-07-23
@Frankenstine

chmod +x to the directory, and it will become possible to enter it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question