Web Hosting Talk







View Full Version : Prevent deletion of public_html?


kgp43
11-13-2004, 07:25 AM
Hey,

A user of mine deleted all his folders by accident (public_html,www,public_ftp etc).
Is there a way to prevent users from deleting these folders again?

ozwebfx
11-13-2004, 07:47 AM
Yes, but you may serve life for it. There is only one solution ... Murder!

dollar
11-13-2004, 08:16 AM
The only way I can think of is to remove the write privledges form the directory below it, but that would also prevent them from making new folders.

ie. if it is /home/user/public_html

chmod 700 /home/user

firewall
11-13-2004, 08:28 AM
You can't , thats why its public_html ! ;)

kgp43
11-15-2004, 02:33 AM
okay, thanks anyway :)

Forse
11-15-2004, 02:37 AM
chattr +i public_html

YUPAPA
11-15-2004, 03:04 AM
You can't store anything under it if you change the attribute ~

If you don't want the folder to be removed, but allow storing and deletion under it, you can set the directives in the ftp configuration file ~

WCHost
11-15-2004, 03:19 AM
Choose one of the options...
1) Tell them treat public_html as system folder..once it is deleted, everything gone..need to reinstall

2) If they deleted, and can't create it again....charge them what they pay you *another word..they delete their own account*

3) say...tough luck....ur account is dead

lol~
JOKING!!!!!

No ways you could stop people deleting it....because we have a few customers delete public_html and complain us that our server is down....nice excuse I ever heard... =.=

Rclark
11-15-2004, 04:16 AM
a little something called backups :P

sprintserve
11-15-2004, 05:04 AM
Well they can also easily just create the directory again and reupload. Very little trouble really.

So far, noone I know of had deleted the directory.