You are here: Re: Permissions « PHP Programming Language « IT news, forums, messages
Re: Permissions

Posted by Erwin Moller on 06/27/05 13:58

Shelly wrote:

<snip>

>> The OS user Apache is running as does not have permission to
>> create a directory where you want it to.
>
> Exactly!!!! How do make that possible? That is the $64K question.

1) By finding out which OS user it is that Apache runs as.
2) Making sure the directory in which you want to create files/directories
INCLUDES that user mentioned under 1).
This can be done by opening the directory to:
- everybody (chmod 777), which will surely include the user under 1).
- a group

I think the group-approach is the best.
Create a group called shellyapache, and add user shelly and user apache to
it.

Now create the directory IN WHICH you want to create new directories and
give appropriate filepermission TO THE GROUP shellyapache.

In that way you directory is safe for everybody.

One drawback is that other users on the same machine have access to the same
apache-user (under most configurations), and they could try to reach this
directory.
If this is a concern to you:
An easy (not state of the art) way to make this more difficult is naming the
directy strange, like HJKGJHFHTGDFHGJFJH76456546.
Nobody will guess that.


Hope this helps.

Regards,
Erwin Moller

PS: If you need help with groups and such, read the URL from Redhat I sent
you in a previous post.

 

Navigation:

[Reply to this 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

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