FTP权限755和777 [英] FTP Rights 755 vs 777

查看:170
本文介绍了FTP权限755和777的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道777提供了更多的写权限,但是当777代替755时,访问您网站的人可以更改您的文件吗?

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?

有时足够了当我的文件拥有755的权利,但有时却是777的时候,那不好吗?

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

人们不推荐它,但是为什么呢?人们可以在777上访问它吗?还是还有我不知道的事情?

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?

推荐答案

目录的777权限意味着所有人都可以访问读/写/执行(在目录上执行意味着您可以在目录中执行ls。)

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意味着对所有人的读取和执行访问权限,并对文件所有者的写入权限。当您执行chmod 755 filename命令时,允许所有人读取和执行文件,所有者也可以写入文件。

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.

这篇关于FTP权限755和777的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆