?
Solved

Files created in web application cannot be deleted by local admin

Posted on 2008-06-12
4
Medium Priority
?
204 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month10 days, 11 hours left to enroll

764 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