[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Files created in web application cannot be deleted by local admin

Posted on 2008-06-12
4
Medium Priority
?
209 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

Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

Question has a verified solution.

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

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month14 days, 22 hours left to enroll

649 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