FTP Rights 755 vs 777 [closed]
Asked Answered
T

2

11

I know that 777 gives more write - rights, but can people who visit your site change your file when is has the 777 instead of 755?

Sometimes it's enough when my file has the rights of 755, but I do sometimes 777, is that bad?

People don't recommend it, but why? Can people access it when it is on 777? Or are there more things that I don't know?

Trifolium answered 21/9, 2013 at 12:21 Comment(0)
S
18

A 777 permission on the directory means that everyone has access to read/write/execute (execute on a directory means that you can do a ls of the directory).

755 means read and execute access for everyone and also write access for the owner of the file. When you perform chmod 755 filename command you allow everyone to read and execute the file, owner is allowed to write to the file as well.

Seedbed answered 23/10, 2013 at 16:33 Comment(0)
C
0

Except the last dotpoint (black = WRITE+WRITE+EXECUTE) should be READ+WRITE+EXECUTE.

Communard answered 28/1, 2021 at 4:9 Comment(1)
Could you be a bit more clear in your answer so that the questioner can understand what's going on, especially regarding the security implications?Weigand

© 2022 - 2024 — McMap. All rights reserved.