deleting public_html and mail directory

snaaps

Verified User
Joined
Jan 29, 2005
Messages
227
Location
Netherlands
Is it possible to make it inpossible that directory's like domains/domain.com/public_html can not be deleted by users?

Most users delete this directorys by accident.
Or it will deleted by frontpage, because the users don't read the manual.
 
You could set the directory as immutable; see:

# man chattr

but then you won't be able to delete it later, when deleting the account, unless you remember to turn off the immutable bit.

Perhaps DA could write this into the system.

Jeff
 
That would be a awesome feature..lol. Can' ttell you how many tickets I've seen where ppl deleted their public_html..lol
 
This happened with one of our customers recently also.

Any chance DA can prevent this happening , please! :-)


Neil :D
 
You can; you can create a post_create.sh (that may not be the name; search these forums) which will run after each new domain is added, and a shell script to modify the immutable bit on the existing directories.

Don't forget that you won't be able to delete the user until after you change it back.

Jeff
 
Back
Top