权限 [英] Permissions

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

问题描述

我有一台新服务器,我在那里有我的文件。文件在

/ var / www / html /中。在这个目录中,我有另一个我创建的目录

称为users。我无法弄清楚如何在这个

目录上设置权限,以及这些权限应该是什么。我正在使用ShieldHost。


当有新用户时,他输入了他想要的名字和密码,因为

我要创建的过程的一部分用户下的小目录树

,用户名为顶级。我知道我没有权限

使用代码中的mkdir执行此操作。代码行是:


mkdir($ _ SESSION [''UserRoot'']。$ ss_username,0755);


其中session变量的目录路径以/结尾。


有什么想法吗?


Shelly

I have a new server and I have my files up there. The files are in
/var/www/html/. In this directory I have another directory that I created
called "users". I am unable to figure out how to set permissions on this
directory, and what those permissions should be. I am using ShieldHost.

When there is a new user, and he enters his desired name and password, as
part of the process I want to create a small directory tree under "users"
with the username as the top level. I get that I don''t have permission to
do that with the mkdir in the code. The line of code is:

mkdir($_SESSION[''UserRoot''] . $ss_username, 0755);

where the session variable has the directory path ending in "/".

Any ideas?

Shelly

推荐答案

_SESSION [''UserRoot'']。
_SESSION[''UserRoot''] .


ss_username,0755);


其中会话变量的目录路径以/结尾。


有什么想法吗?


Shelly
ss_username, 0755);

where the session variable has the directory path ending in "/".

Any ideas?

Shelly


Shelly写道:
Shelly wrote:
我有一台新服务器,我有我的文件。文件位于
/ var / www / html /。在这个目录中,我有另一个我创建的目录,名为users。我无法弄清楚如何在这个
目录上设置权限,以及这些权限应该是什么。我正在使用ShieldHost。

当有新用户,并输入他想要的名称和密码时,作为流程的一部分,我想在用户下创建一个小目录树;
用户名为顶级。我知道我没有权限使用代码中的mkdir来做这件事。代码行是:

mkdir(
I have a new server and I have my files up there. The files are in
/var/www/html/. In this directory I have another directory that I created
called "users". I am unable to figure out how to set permissions on this
directory, and what those permissions should be. I am using ShieldHost.

When there is a new user, and he enters his desired name and password, as
part of the process I want to create a small directory tree under "users"
with the username as the top level. I get that I don''t have permission to
do that with the mkdir in the code. The line of code is:

mkdir(


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

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