Solved

Files created in web application cannot be deleted by local admin

Posted on 2008-06-12
4
187 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
ID: 21772656

What are the permissions of those files?
0
 
LVL 9

Author Comment

by:ParadiseITS
ID: 21772991
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
ID: 21773449

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

Author Comment

by:ParadiseITS
ID: 21778310
Thanks!  Worked like a charm.
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

920 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

15 Experts available now in Live!

Get 1:1 Help Now