Portal Home > Knowledgebase > Articles Database > cant delete a folder as i dont have permissions?


cant delete a folder as i dont have permissions?




Posted by Beatplexity, 04-17-2010, 01:23 PM
Ive got a folder which is taking up a lot of space that i want to delete when i log in to cuteftp it says the owner is '0' all the other folders and files are under my username now i think this folder was created by a server admin company when i had some work done, but now i want to delete it. When i try to delete it under my username it says permission denied i can log in as root owner but i cant navigate to my account where my website is (i cant find the public_html folder)

Posted by 040Hosting, 04-17-2010, 01:26 PM
0 means root you will need to do this from the shell.

Posted by Beatplexity, 04-17-2010, 01:34 PM
sigh -_- im still a noob ok so how would i navigate from the root of my server to my account where my website is stored? i use the commands 'ls' in putty but still have trouble finding my account

Posted by 040Hosting, 04-17-2010, 01:38 PM
If it is a cPanel server the default location would be /home/userid/public_html if you do not have a control-panel you could find the location in your apache configuration file. httpd.conf

Posted by khunj, 04-17-2010, 01:51 PM
You can use the locate command:

Posted by VIPoint, 04-17-2010, 02:00 PM
Check the apache conf file. You can see the full path for the document root of the website in the entry of the domain.

Posted by bear, 04-17-2010, 02:25 PM
If it's cpanel, and you have root shell: cd ~username/public_html

Posted by 040Hosting, 04-17-2010, 02:48 PM
right ~username would be better as in theory you could have changed or have multiple home directories on different disks. the ~ tells linux to lookup the 'home'directory of the user and thus always send you to the right location. While in my example by going to /home/ could be wrong.

Posted by Beatplexity, 04-17-2010, 10:13 PM
all sorted, thanks guys for the help



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
UK2.net reseller plus (Views: 602)
devotedhost (Views: 622)
i was hacked (Views: 619)