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 :)
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
8,328
Location
LT, EU
Code:
cd /usr/local/directadmin/scripts
./set_permissions.sh all
 

Henrik

Verified User
Joined
Mar 14, 2008
Messages
121
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.
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
8,328
Location
LT, EU
Yes, it will. You can run the following command for MySQL databases too:
Code:
./set_permissions.sh mysql
 

ebersol

Verified User
Joined
Jul 2, 2019
Messages
9
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
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,853
Location
GMT +7.00
Should run the script as root

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