文件上传权限 [英] File upload permissions

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

问题描述

我以为我有这个舔,但显然不是。


我有一个文件上传脚本,试图将文件上传到

目录中public_html目录 - www.domain.com/upload

目录的权限必须为777才能生效或

esle它因权限错误而中止 - 显然是一个问题。 php

脚本以用户''nobody''运行。


技术支持是通过电子邮件,第一级不是那么明亮,或者是

至少不是那么流利的英语。我试图得到确切的短语

告诉他们。是不是我需要他们将小组设置为无人或添加

没有人加入小组或???


我是否在正确的道路上?如果''没人'是该组的成员,我可以

使用775,对吗?


感谢您的帮助,

哈维

I thought I had this licked, but apparently not.

I have a file upload script that attempts to upload a file to a
directory in the public_html directory - www.domain.com/upload

The permissions for the directory have to be 777 for this to work or
esle it aborts with a permissions error - obviously a problem. The php
script runs as user ''nobody''.

Tech support is through email, and level one is not that bright, or at
least not that fluent in english. I am trying to get the exact phrase to
tell them. Is it that I need them to set the group to nobody or add
nobody to the group or???

Am I on the right path? If ''nobody'' was a member of the group, I could
use 775, right?

Thanks for the help,
Harvey

推荐答案

eclipsmeescribió:
eclipsme escribió:

我以为我有这个舔,但显然不是。


我有一个文件上传脚本,试图将文件上传到public_html目录中的

目录 - www.domain.com/upload


的权限目录必须是777才能工作或

esle它以权限错误中止 - 显然是一个问题。 php

脚本以用户''nobody''运行。


技术支持是通过电子邮件,第一级不是那么明亮,或者是

至少不是那么流利的英语。我试图得到确切的短语

告诉他们。
I thought I had this licked, but apparently not.

I have a file upload script that attempts to upload a file to a
directory in the public_html directory - www.domain.com/upload

The permissions for the directory have to be 777 for this to work or
esle it aborts with a permissions error - obviously a problem. The php
script runs as user ''nobody''.

Tech support is through email, and level one is not that bright, or at
least not that fluent in english. I am trying to get the exact phrase to
tell them.



您可以使用任何体面的FTP

客户端自行更改目录权限。如果你没有FTP访问权限,一些控制面板也有这个

功能。

You can change the directory permissions yourself with any decent FTP
client. If you don''t have FTP access, some control panels have this
feature too.


是否我需要它们来设置该团体无人或添加

没有人到该组或???
Is it that I need them to set the group to nobody or add
nobody to the group or???



是的,更改文件所有权是另一种选择。

Yes, changing the file ownership is another option.


我是否在正确的道路上?如果''没人'是该组的成员,我可以

使用775,对吗?
Am I on the right path? If ''nobody'' was a member of the group, I could
use 775, right?



甚至770.权限数字表示:用户/组/其他。请注意

用户nobody与无人组不同;会发生什么是

,当您创建新用户时,大多数发行版会创建一个与用户名称相同的组,并将该用户添加到该组作为其唯一成员。


请求应该是我需要更改

目录〜/ public_html / upload的所有权,因此它属于nobody组。我需要

它允许从我的网站上传文件。。

-

- http://alvaro.es - álvaroG。Vicario - 西班牙布尔戈斯

- Mi sitio sobre programaciónweb: http://bits.demogracia.com

- Mi web de humor al ba?oMaría: http://www.demogracia.com

-

Or even 770. Permissions digits mean: user/group/others. Just be aware
that user "nobody" is not the same as group "nobody"; what happens is
that when you create a new user, most distros create a group with the
same name as the user and add the user to the group as its only member.

The request should be something as "I need to change the ownership of
directory ~/public_html/upload so it belongs to the nobody group. I need
it to allow file uploads from my web site.".
--
-- http://alvaro.es - álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor al ba?o María: http://www.demogracia.com
--


álvaroG。Vicario写道:
álvaro G. Vicario wrote:

eclipsmeescribió :
eclipsme escribió:

>我以为我有这个舔,但显然不是。

我有一个文件上传脚本试图上传文件到public_html目录中的
目录 - www.domain.com/upload

权限目录必须是777才能工作或
esle它中止权限错误 - 显然是一个问题。 php
脚本以用户''nobody''运行。

技术支持是通过电子邮件,第一级不是那么明亮,或者至少不是那么流利的英语。我试图得到确切的短语
来告诉他们。
>I thought I had this licked, but apparently not.

I have a file upload script that attempts to upload a file to a
directory in the public_html directory - www.domain.com/upload

The permissions for the directory have to be 777 for this to work or
esle it aborts with a permissions error - obviously a problem. The php
script runs as user ''nobody''.

Tech support is through email, and level one is not that bright, or at
least not that fluent in english. I am trying to get the exact phrase
to tell them.



您可以使用任何体面的FTP

客户端自行更改目录权限。如果你没有FTP访问权限,一些控制面板也有这个

功能。


You can change the directory permissions yourself with any decent FTP
client. If you don''t have FTP access, some control panels have this
feature too.


>是否需要它们将组设置为nobody或将任何人添加到
组或???
>Is it that I need them to set the group to nobody or add nobody to the
group or???



是的,更改文件所有权是另一种选择。


Yes, changing the file ownership is another option.


>我是否在正确的道路上?如果''没人'是该组的成员,我可以使用775,对吗?
>Am I on the right path? If ''nobody'' was a member of the group, I could
use 775, right?



甚至770.权限数字表示:用户/组/其他。请注意

用户nobody与无人组不同;会发生什么是

,当您创建新用户时,大多数发行版会创建一个与用户名称相同的组,并将该用户添加到该组作为其唯一成员。


请求应该是我需要更改

目录〜/ public_html / upload的所有权,因此它属于nobody组。我需要

它允许从我的网站上传文件。。


Or even 770. Permissions digits mean: user/group/others. Just be aware
that user "nobody" is not the same as group "nobody"; what happens is
that when you create a new user, most distros create a group with the
same name as the user and add the user to the group as its only member.

The request should be something as "I need to change the ownership of
directory ~/public_html/upload so it belongs to the nobody group. I need
it to allow file uploads from my web site.".



多亏了这个!


Harvey

Thanks for this!

Harvey


eclipsme写道:
eclipsme wrote:
$ b $bálvaroG。Vicario写道:
álvaro G. Vicario wrote:

>eclipsmeescribió:
>eclipsme escribió:

>>我以为我有这个舔,但显然我没有文件上传脚本,试图将文件上传到public_html目录中的
目录 - www.domain.com/upload

目录的权限必须为777才能使其正常工作或
esle它以权限错误中止 - 显然是一个问题。
php脚本以用户''nobody''运行。

技术支持是通过电子邮件进行的,第一级不是那么明亮,或者至少不是那么流利的英语。我正试图获得确切的短语来告诉他们。
>>I thought I had this licked, but apparently not.

I have a file upload script that attempts to upload a file to a
directory in the public_html directory - www.domain.com/upload

The permissions for the directory have to be 777 for this to work or
esle it aborts with a permissions error - obviously a problem. The
php script runs as user ''nobody''.

Tech support is through email, and level one is not that bright, or
at least not that fluent in english. I am trying to get the exact
phrase to tell them.


您可以使用任何体面的FTP
客户端自行更改目录权限。如果您没有FTP访问权限,某些控制面板也具有此功能。


You can change the directory permissions yourself with any decent FTP
client. If you don''t have FTP access, some control panels have this
feature too.



对,但我面临的问题是权限需要777 -

不是最好的选择,对吧?所以我追究所有权

问题是正确的,对吗?我刚从支持部门收到一封电子邮件,说他们确实这么做了,但是当脚本尝试将文件从临时目录移动到
时,我仍然收到权限错误实际的。


哈维

Right, but the problem I am facing is that permissions need to be 777 -
not the best option, right? So I am correct to pursue the ownership
issue, right? I just got an email back from support saying they did
this, but I am still getting a permissions error when the script tries
to move the file from the temp directory to the actual.

Harvey


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

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