RHEL 5 - chmod 777

James Bourne jbourne at hardrock.org
Thu Apr 23 22:31:23 UTC 2009


On Thu, 23 Apr 2009, Lopez, Denise wrote:

> Hi all,
>
> I have a quick question.  One of my programmers is trying to get his
> program working by chmod 777 directories.  On my RHEL 4 server the
> program is working but on the RHEL 5 server when I do a ls -alh of the
> directory, it is highlighted and the permissions are 777.
>
> Does anyone know what the highlighting means?

Are you using virtual hosts with SuexecUserGroup?

If you can and the program is cgi (perl/shell/binary) it will run as the
User/Group of the virtual host.

If the program php you can use php.cgi as a wrapper (instead of using the
module handler) and your .php scripts will run as the virtual host
user/group.


>
> P.S. I know about the security risk of chmod 777.  Does anyone know of a
> way to allow a group of users and apache to write to a directory and all
> directories underneath it.
>
> I have umask of 002 permission on directory are 2775 and user is apache
> with group www.
> Thanks in advance.
>
> Denise Lopez
> UCLA - Center for Digital Humanities
> Network Services
> Linux Systems Engineer
> 337 Charles E. Young Drive East
> PPB 1020
> Los Angeles, CA 90095-1499
> 310/206-8216
> <<Picture (Device Independent Bitmap)>>
>
>
>

-- 
James Bourne                  | Email:            jbourne at hardrock.org
UNIX Systems Administration   | WWW:           http://www.hardrock.org
Custom UNIX Programming       | Linux:  The choice of a GNU generation
----------------------------------------------------------------------
"All you need's  an occasional kick in  the philosophy." Frank Herbert
Need an inexpensive domain alternative?  http://fastforwarddomains.com




More information about the redhat-sysadmin-list mailing list