How to fix permissions

Henrik

Verified User
Joined
Mar 14, 2008
Messages
121
Hello,


What are the scripts to fix data permissions to files related to directadmin users? (Such as email, webfiles or if possible all files belonging to a user or the entire home directory.)

I remember there being something like this for email at least, but I can't remember where I saw it.

Thanks in advance for any help :)
 
Code:
cd /usr/local/directadmin/scripts
./set_permissions.sh all
 
Thanks, will this also cover databases etc? I read that it won't cover users' uploaded files, so I take it that webfiles aren't being processed.
 
Yes, it will. You can run the following command for MySQL databases too:
Code:
./set_permissions.sh mysql
 
Code:
cd /usr/local/directadmin/scripts
./set_permissions.sh all

Hi, no permission. What can I do? In the admin user.

[admin@... scripts]$ ./set_permissions.sh all
-bash: ./set_permissions.sh: Permissão negada
 
Should run the script as root

Code:
cd /usr/local/directadmin/scripts
./set_permissions.sh all
 
Back
Top