HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   rm -rf command: Permission denied even as root user (http://www.howtoforge.com/forums/showthread.php?t=61675)

diopear 1st May 2013 10:02

rm -rf command: Permission denied even as root user
 
Hello,

On my server I have installed the version 3.0.5.2 of ISPConfig. I created a Shell-User for a particular site and everything worked normally. Therein, I noticed that some folders were created inside the folder of the site, such as bin, dev, lib, lib64 and others.

After testing, I delete users (Shell-User), and the folders remained. As root, I try to delete these folders with the command "rm -rf bin" and returns the error "rm: can not remove` bin ': Permission denied".

When creating a user, I selected the Chroot Shell Jailkit

I've tried several ways (chmod, chown, chattr -i), but it still fails. I need help.

Thanks!

till 1st May 2013 12:13

You have to remove the immutable attribute with chattr -i from the parent folder ( the web root folder). Btw, thats described in severak threads here in the forum and in the manual.

diopear 1st May 2013 14:21

You're right, till. I had not thought on parent folder. Thank you!


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

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