Hi,
I am trying to prevent users from deleting their system files according to the kb in http://help.directadmin.com/item.php?id=166
But I don't only want to prevent the deletion of symbolic link for public_html, I want to protect all system folders.
So far, I have tried
if ($path == "/home/*/domains/*/public_ftp")
if ($path == "/home/|USER|/domains/|DOMAIN|/public_ftp") to define the exact file paths but it did not work.
May I learn how to define the variable user and domain directories in this script.
I'll also make a suggestion to guys in Directadmin to update this knowledgebase to include this information as users not only delete symbolic links
Regards.
Orkun
I am trying to prevent users from deleting their system files according to the kb in http://help.directadmin.com/item.php?id=166
But I don't only want to prevent the deletion of symbolic link for public_html, I want to protect all system folders.
So far, I have tried
if ($path == "/home/*/domains/*/public_ftp")
if ($path == "/home/|USER|/domains/|DOMAIN|/public_ftp") to define the exact file paths but it did not work.
May I learn how to define the variable user and domain directories in this script.
I'll also make a suggestion to guys in Directadmin to update this knowledgebase to include this information as users not only delete symbolic links
Regards.
Orkun