Welcome Guest ( Log In | Register )




                Web Hosting Guide

I Do Not Own This Folder, Please Delete, Permissions/ownership error
evought
post Oct 11 2005, 05:21 AM
Post #1


Premium Member
Group Icon

Group: Members
Posts: 209
Joined: 3-October 05
From: Missouri
Member No.: 8,888
myCENTs:81.63


I have a folder ~/public_html/templates/warmish_community.bak which I do not own and do not have permissions to delete. I have copied and renamed the folder contents so that I own and can manipulate the files but cannot delete the original.

Please delete this folder for me when you get a chance. This is not time critical.

The error was probably caused by a faulty mambo install script. You may want to look into this because it might represent a security hole.
Go to the top of the page
 
+Quote Post
 
New Topic
Replies (1 - 4)
vujsa
post Oct 11 2005, 08:27 AM
Post #2


Absolute Newbie
Group Icon

Group: Admin
Posts: 888
Joined: 20-February 05
From: Indianapolis, Indiana, USA (Midwest)
Member No.: 2,714
myCENTs:35.43


This was a backup created by mambo. As a result, the folder is owned by the sysem and it is very difficult to get rid of.

You'll need a script to change the permissions of the file.
This cleanup program will do the trick.


Just upload the php file inside the compressed file and then access the script with your browser.

ie:
If you upload to /username/html_public/cleanup.php
Then in your web browser type http://your.sub.domain.com/cleanup.php

It will prompt you for the path to the folder that you want access to.

The script then changes the the folder or files permissions to 777 (Read, Write, Exec ALL)

You can then delete the unwanted folder.

I highly recommend placing the script in its own directory and placing a password protection on that directory. Additionally, you could simply delete the script after you are finished with it. Leaving the script unprotected opens a very very big security hole.

A note about mambo.
When you upload and install ANY new mambo template, component, module, or mambot with the mambo installer; the file is actually handled by the system as commanded by the script that is in use. Since the system is doing all of the work in your file system, it holds the permissions of the files and/or folders that were created. Since it is the owner and you are not, you can't modify the files unless the system set the permissions to 777 for the file or folder. This is a common situation with most scripts that access your file system.
In the same manor, the system can not modify a file that you own unless you set the permissions to 777. Since mambo uses the file system instead of the ftp system to install addons, you will have difficulty removing files that mambo creates for you. The ftp system isn't used because it is either more work to install addons because you have to provide your ftp login information each time or it is a security risk because the the login information is stored for you.

Hope this helps. cool.gif

vujsa
Attached File(s)
Attached File  cleanup.php.gz ( 733bytes ) Number of downloads: 291
 
Go to the top of the page
 
+Quote Post
JUDGE_RELIC
post Jan 2 2006, 05:06 PM
Post #3


Member [ Level 1 ]
Group Icon

Group: Members
Posts: 44
Joined: 2-January 06
Member No.: 10,423


I was never impressed with mambo. Php-Nuke always seemed to have more options available and easier to work on.

Another option is if you're using ws_ftp pro chmod the file to 777 and the try to delete it via the ftp. It should work.
Go to the top of the page
 
+Quote Post
vujsa
post Jan 2 2006, 06:43 PM
Post #4


Absolute Newbie
Group Icon

Group: Admin
Posts: 888
Joined: 20-February 05
From: Indianapolis, Indiana, USA (Midwest)
Member No.: 2,714
myCENTs:35.43


QUOTE(JUDGE_RELIC @ Jan 2 2006, 12:06 PM)
I was never impressed with mambo.  Php-Nuke always seemed to have more options available and easier to work on.

Another option is if you're using ws_ftp pro chmod the file to 777 and the try to delete it via the ftp.  It should work.
[right][snapback]65797[/snapback][/right]


Actually, He can not change the permissions to 777 because he doesn't own the directory. The system owns it. Please read the entire topic prior to replying.

vujsa
Go to the top of the page
 
+Quote Post
catalinvvvv
post May 2 2009, 09:06 PM
Post #5


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 1
Joined: 2-May 09
Member No.: 40,010


QUOTE (vujsa @ Oct 11 2005, 09:27 AM) *
This was a backup created by mambo. As a result, the folder is owned by the sysem and it is very difficult to get rid of.

You'll need a script to change the permissions of the file.
This cleanup program will do the trick.


Just upload the php file inside the compressed file and then access the script with your browser.

ie:
If you upload to /username/html_public/cleanup.php
Then in your web browser type http://your.sub.domain.com/cleanup.php

..........



RO: O alta varianta pentru a sterge directoarele cu alt "owner" decat "al tau", este sa le redenumiti si apoi se pot stege cu un client ftp. Succes! Mie mi-a luat cam 3 ore sa caut pe net diferite variante, dar pe asta am incercat-o intamplator. Si a mers! Cool!

EN: Another way for delete (erase) the directories which have other owner than "you", is to rename those directories, (... image become image01) and then, they can erase them with an ftp client (FileZilla). It was ... Worked! Success!
...sorry my english...
catalinvvvv


This post has been edited by catalinvvvv: May 2 2009, 09:18 PM
Go to the top of the page
 
+Quote Post

Reply to this topicNew Topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No new   22 abartar 7,922 10th November 2009 - 10:36 PM
Last post by: iG-asma
No new   26 ahsanrao 6,853 8th November 2009 - 12:22 AM
Last post by: iG-Akkii
No New Posts   14 soleimanian 4,393 28th October 2009 - 07:38 AM
Last post by: starscream
No New Posts   12 vizskywalker 5,217 27th October 2009 - 09:36 PM
Last post by: iG-carlypan
No New Posts   11 TavoxPeru 3,631 8th October 2009 - 08:51 PM
Last post by: iG-
No new 21 speedy 5,421 6th October 2009 - 07:25 AM
Last post by: iG-SoTechnic
No New Posts   16 victorhu 6,615 13th September 2009 - 10:02 PM
Last post by: iG-Happy Unlocker User
No New Posts 4 saneax 3,566 9th August 2009 - 05:50 PM
Last post by: iG-Amber
No New Posts   2 hendrikbez 218 29th May 2009 - 08:24 PM
Last post by: magiccode9
No New Posts   11 Axis 5,157 8th April 2009 - 04:14 PM
Last post by: tansqrx
No New Posts   1 pmo3k 469 13th March 2009 - 12:17 AM
Last post by: Rhekatou
No New Posts   15 abartar 4,829 20th February 2009 - 04:58 PM
Last post by: iG-Ron Poulton
No New Posts   3 tansqrx 1,825 17th February 2009 - 04:03 PM
Last post by: iG-Ricardo
No New Posts   6 Vicious_AD 1,952 11th February 2009 - 03:36 PM
Last post by: iG-Author Name - e.g. John, Mike
No New Posts   8 dhanesh 2,598 28th December 2008 - 11:23 PM
Last post by: iG-Gregory


Web Hosting Powered by ComputingHost.com.