HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   /etc and /home inside customers directory (http://www.howtoforge.com/forums/showthread.php?t=60258)

tom123 18th January 2013 11:05

/etc and /home inside customers directory
 
I've created a simple crontab.
This has created two folders, /etc and /home inside the customer directory but I'm unable to delete these. I receive a 'Permission denied' even deleting with root.

till 18th January 2013 11:19

Quote:

This has created two folders, /etc and /home inside the customer directory
Thats correct. These directories are required for the chrooted cronjob as they belong to the jail of the website. If you delete them, the cronjob will fail.

Quote:

I receive a 'Permission denied' even deleting with root.
The website root is protected with the immutable attribute, so that no user, not even root, can remove them without removing the attribute first.

The attribite is removed with:

chattr -i /var/www/clients/client0/web1

Please note that your cronjob start to will fail when you delete these required folders.

fbartels 18th January 2013 11:25

Hi,

do you also get a permision denied when creating other files in that directory?

till 18th January 2013 11:34

Quote:

Originally Posted by fbartels (Post 290888)
Hi,

do you also get a permision denied when creating other files in that directory?

Yes. This directory is not made to put any files there. Clients are only allowed to upload files to their web folder (so they are accessible by http), to the webdav folder for webdav, to the cgi folder if they are cgi scripts and to the newly introduced folder "private" when the files shall not be accessible by http.

The website folder protecion can be disbaled under system > server config, but its higly recommended to leave it on.

tom123 18th January 2013 11:38

Solved,
parent directory was immutable

fbartels 18th January 2013 14:29

Quote:

Originally Posted by till (Post 290891)
The website folder protecion can be disbaled under system > server config, but its higly recommended to leave it on.

Ok I understand, but is this a new feature? In the past I was able to create and modify files directly in the web# folders, but I was wondering, since it is not possible anymore for all of these folders. Actually I was a bit worried if my filesystem was broken, but didn't have to time to investigate any further.


All times are GMT +2. The time now is 07:07.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.