How to create account with page which cannot be change by the user

danielch1

Verified User
Joined
Aug 23, 2008
Messages
11
Hi

I would like to create a certain template which contains a page (.htaccess or index.html) which the user will not be able to change it or delete.

Is there any way to do it?

Thanks
Daniel
 
chattr it. See:
Code:
man chattr
from the command line or google man chattr.

This requires you have shell access.

Jeff
 
if you change the permissions of that file to say root.root then I dont' think the users would be able to overwrite or delete the file using FTP client. I think this could also be an alternative solution as well
 
Thanks, I guess that the easiest solution is to create a root file, but I want that this file (with the root access only) would be created automatically when I open a new account (Like the default DirectAdmin page), Is there any way to do it?
 
Try to find the skeleton directory that DA uses when it creates the "placeholder" page.
 
I know the default located:
/usr/local/directadmin/data/templates/default

but how can I define the permission the files would have on the user directory
 
Use a custom script. Search "custom scripts" in this forum, knowledgebase, and versions system.
 
Back
Top