./set_permissions.sh domaindir all domain

vacancy

Verified User
Joined
Jul 5, 2019
Messages
30
./set_permissions.sh domaindir domain.com

How can we use the command for all domains?

I think a bash script needs to be written.
 

Richard G

Verified User
Joined
Jul 6, 2008
Messages
4,218
Location
Maastricht
No bash script needs to be written.
When you just use ./set_permissions.sh you will see all options, and in the beginning it says:
Code:
DirectAdmin File Permission/Ownership script

Usage:
  ./set_permissions.sh all

  ./set_permissions.sh da_files
  ./set_permissions.sh user_homes
etc.
So either use ./set_permissions.sh all or if it's only for the homedirse, use ./set_permissions.sh user_homes.
 

vacancy

Verified User
Joined
Jul 5, 2019
Messages
30
No bash script needs to be written.
When you just use ./set_permissions.sh you will see all options, and in the beginning it says:
Code:
DirectAdmin File Permission/Ownership script

Usage:
  ./set_permissions.sh all

  ./set_permissions.sh da_files
  ./set_permissions.sh user_homes
etc.
So either use ./set_permissions.sh all or if it's only for the homedirse, use ./set_permissions.sh user_homes.
./set_permissions.sh domaindir domain.com
./set_permissions.sh all

The functions of the 2 commands are different.

some permissions that the first command cannot correct are corrected with the second command.
 

Richard G

Verified User
Joined
Jul 6, 2008
Messages
4,218
Location
Maastricht
That should not be the case.

But doesn't
./set_permissions.sh user_homse
do the same as ./set_permissions.sh domaindir domain.com?

What exactly does it different?
What is not happening what you need to happen?
 
Top