Solved

Files created in web application cannot be deleted by local admin

Posted on 2008-06-12
4
185 Views
Last Modified: 2010-04-20
We are about to deploy a new web server.  It is running CentOS 5.1, Apache 2, PHP 5.  Everything looks good and is running much faster then on our old NetWare/Apache box.

The only issue we are having is that when a user of our WebApp creates a folder or files our webmaster is not able to delete them, only the person who created them is.  

Here is what he is trying to do.

He FTPs in to the box to transfer files back and forth fairly regularly.  He would like to be able to clean up orphaned files in users directories in the web directory when he is in.  But, when logged in with his account (that is a member of root and has specific RWX rights in the directories) he is told he does not have permissions.


Any thoughts?
0
Comment
Question by:ParadiseITS
  • 2
  • 2
4 Comments
 
LVL 29

Expert Comment

by:MikeOM_DBA
Comment Utility

What are the permissions of those files?
0
 
LVL 9

Author Comment

by:ParadiseITS
Comment Utility
In the OS the webmaster acct has full read/write/modify permissions.  But the owner is apache, and I think that is where the issue is...
0
 
LVL 29

Accepted Solution

by:
MikeOM_DBA earned 500 total points
Comment Utility

Make webmaster owner of the folder with rw permissions to the Apache group id.
0
 
LVL 9

Author Comment

by:ParadiseITS
Comment Utility
Thanks!  Worked like a charm.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now