On Jun 21, 2011, at 8:51 AM, Todd Cary wrote: > > > On 6/21/2011 8:30 AM, m.roth@xxxxxxxxx wrote: >> John Hodrien wrote: >>> On Tue, 21 Jun 2011, Todd Cary wrote: >> <snip> >>>> My /var/www/html files have been manually set by me to >>>> apache/apache 774. This allows my PHP applications to access the >>>> files, and I assume this is a "good" setting. >>>> >>>> Now, my server is connected via Samba to my desktop. If I create >>>> a file, it is todd/todd 744, so Apache cannot access them. >>>> >>>> If PHP (Apache) creates or modifies a file, it is apache/apache >>>> 755, so I cannot access them (Write/Delete). >> <snip> >>> Either have a group that you're both a member of and have a SGID bit set >>> on the relevent directories using that gruop, or look at ACLs. >> To expand on John's cmts. I'd make you a member of the apache group - >> that's usermod -G apache todd, making it a secondary group, *not* your >> personal primary group. >> >> mark >> >> >> > At this time, todd is a member of the apache group, however > apache is setting permissions to 755, so todd cannot write to the > files once apache has modified them or created them...or am I > missing some salient point? ---- yes - make them group writable... chmod g+w some_file chmod g+w some_subdirectory chmod g+w some_directory -R # subdirectory and all files below Craig _______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos