Reply to Re: Permissions

Your name:

Reply:


Posted by BearItAll on 10/28/56 11:19

On Tue, 21 Jun 2005 23:39:09 -0400, Shelly wrote:

> 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

Without root access you don't have permission to create users, which you
already know because your in Unix. I don't know Sheildhost but would I be
right in thinking (from your post) that you are expecting it to have some
means to create 'sub-users' for hosting purposes?

This could only really be a controlled access system rather than a real
owner:group at system level. More of a login system to your users. But in
the end the files will still be owned by yourself.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация