<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>RHEL 5 - chmod 777</title>
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Also, you might consider setting "set group id (setgid)"
on the directories.  That means any file placed there becomes owned by the
group.   This is useful when the UID's placing the files in the
directory tree don't have the same primary group.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Stan<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
redhat-sysadmin-list-bounces@redhat.com [mailto:redhat-sysadmin-list-bounces@redhat.com]
<b>On Behalf Of </b>Florez, Nestor<br>
<b>Sent:</b> Thursday, April 23, 2009 6:44 PM<br>
<b>To:</b> redhat-sysadmin-list@redhat.com<br>
<b>Subject:</b> RE: RHEL 5 - chmod 777<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p> </o:p></p>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'>Answer to your P.S.:</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'>1) Create a group</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'> 2) make the directory and subdirectories part of the
group </span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'>3) add the different users to that group.</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal> <o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'>:-)</span><o:p></o:p></p>

</div>

<blockquote style='margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'>

<p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'>-----Original Message-----<br>
<b>From:</b> redhat-sysadmin-list-bounces@redhat.com [mailto:redhat-sysadmin-list-bounces@redhat.com]<b>On
Behalf Of </b>Lopez, Denise<br>
<b>Sent:</b> Thursday, April 23, 2009 3:05 PM<br>
<b>To:</b> redhat-sysadmin-list@redhat.com<br>
<b>Subject:</b> RHEL 5 - chmod 777</span><o:p></o:p></p>

<p><span style='font-family:"Calibri","sans-serif"'>Hi all,</span><o:p></o:p></p>

<p><span style='font-family:"Calibri","sans-serif"'>I have a quick</span> <span
style='font-family:"Calibri","sans-serif"'>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.</span><o:p></o:p></p>

<p><span style='font-family:"Calibri","sans-serif"'>Does anyone know what the
highlighting means?</span><o:p></o:p></p>

<p><span style='font-family:"Calibri","sans-serif"'>P.S. I know about the
security risk of chmod 777.  Does anyone know of a way to allow a group of
users</span> <span style='font-family:"Calibri","sans-serif"'>and apache to
write to a directory and all directories underneath it.</span><o:p></o:p></p>

<p><span style='font-family:"Calibri","sans-serif"'>I have umask of 002
permission on directory are 2775 and user</span> <span style='font-family:"Calibri","sans-serif"'>is
apache with group www.  </span><o:p></o:p></p>

<p><span style='font-family:"Calibri","sans-serif"'>Thanks in advance.</span><o:p></o:p></p>

<p><span style='font-family:"Calibri","sans-serif"'>Denise Lopez</span><o:p></o:p></p>

<p><span style='font-family:"Calibri","sans-serif"'>UCLA - Center for Digital
Humanities</span><o:p></o:p></p>

<p><span style='font-family:"Calibri","sans-serif"'>Network Services</span><o:p></o:p></p>

<p><span style='font-family:"Calibri","sans-serif"'>Linux Systems Engineer</span><o:p></o:p></p>

<p><span style='font-family:"Calibri","sans-serif"'>337 Charles E. Young Drive
East</span><o:p></o:p></p>

<p><span style='font-family:"Calibri","sans-serif"'>PPB 1020</span><o:p></o:p></p>

<p><span style='font-family:"Calibri","sans-serif"'>Los Angeles, CA 90095-1499</span><o:p></o:p></p>

<p><span style='font-family:"Calibri","sans-serif"'>310/206-8216</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black;
border:solid windowtext 1.0pt;padding:0in'><img width=100 height=100
id="_x0000_i1025" src="cid:~WRD000.jpg"
alt="Image removed by sender. Picture (Device Independent Bitmap)"></span><o:p></o:p></p>

</blockquote>

</div>

</body>

</html>