Results 1 to 7 of 7

Thread: How to fix permissions

  1. #1
    Join Date
    Mar 2008
    Posts
    121

    Exclamation How to fix permissions

    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

  2. #2
    Join Date
    Aug 2006
    Location
    LT, EU
    Posts
    8,069
    Code:
    cd /usr/local/directadmin/scripts
    ./set_permissions.sh all
    Martynas Bendorius
    MB Martynas IT. Professional server management company. Official DirectAdmin, CloudLinux, LiteSpeed and Comodo partners.

  3. #3
    Join Date
    Mar 2008
    Posts
    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.

  4. #4
    Join Date
    Aug 2006
    Location
    LT, EU
    Posts
    8,069
    Yes, it will. You can run the following command for MySQL databases too:
    Code:
    ./set_permissions.sh mysql
    Martynas Bendorius
    MB Martynas IT. Professional server management company. Official DirectAdmin, CloudLinux, LiteSpeed and Comodo partners.

  5. #5
    Join Date
    Mar 2008
    Posts
    121
    Top notch, thanks for that

  6. #6
    Join Date
    Jul 2019
    Posts
    9
    Quote Originally Posted by smtalk View Post
    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

  7. #7
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    13,579
    Should run the script as root

    Code:
    cd /usr/local/directadmin/scripts
    ./set_permissions.sh all
    Regards, Alex G.

    - Get the best commercial DirectAdmin support and hire me on poralix.com
    - Follow and like @Poralix on Facebook

Similar Threads

  1. 666 permissions
    By monajones in forum User-Level Difficulties
    Replies: 1
    Last Post: 06-11-2011, 07:58 PM
  2. FTP Permissions
    By inflock in forum Admin-Level Difficulties
    Replies: 5
    Last Post: 04-05-2011, 05:33 PM
  3. Permissions have to be set to 777
    By Jackiegoal in forum System-Level Technical Discussion
    Replies: 5
    Last Post: 10-09-2010, 08:41 AM
  4. permissions
    By Braiswick in forum DirectAdmin General Discussion
    Replies: 6
    Last Post: 02-08-2007, 09:10 PM
  5. CGI permissions
    By netmotiv8 in forum General Technical Discussion & Troubleshooting
    Replies: 5
    Last Post: 01-26-2004, 09:31 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •