+
1 2 2
  1. #1
    Status
    Offline
      Rise Company
    Engineering and Technology
    Apr 2014
    Egypt
    4,077
    10

    Cpanel | Domain USER Home Directory


    Cpanel | USER Home Directory
    The directory public_html does not exist. at /usr/local/cpanel/Cpanel/EventHandler.pm
    cpanel This directory is empty. - This server has an XFS filesystem
    How to fix Error You do not have permission to access - quota does not exist; skipping
    Error: Failed to lock and read from file - following error: Permission denied
    [uapi] Quota file does not exist; skipping - The system failed to lock the file
    Script to Fix Account Permissions - can't create any emails of any of my clients
    Failed to chown /home/****/etc/****/passwd to group mail:
    Operation not permitted at /usr/local/cpanel/Cpanel/Email/Perms/User.pm
    Failed to chown passwd to group mail



    :
    cpanel
    filemanager user

    :
    cpanel This directory is empty
    settings Home Directory save
    web root save
    file manager public .

    ----------------------------------------------------------------
    Quote Permissions
    ----------------------------------------------------------------

    cpanel

    * !!!





    :

    Error: Failed to lock and read from file ****/passwd: Permission denied. (XID 6tr2bu) The system failed to lock the file ******/passwd (as EUID: 1112, EGID: 1114 1114) because of the following error: Permission denied


    :



    :










    Cpanel | Error: Failed to lock and read from file /passwd

    WHM/CPanel Warning: quota file /path/to/quota does not exist

    :
    https://www.namecheap.com/support/kn...ion-to-access/
    https://forums.cpanel.net/threads/pr...counts.525311/
    https://forums.cpanel.net/threads/ca...ccount.655947/
    https://www.thecpaneladmin.com/fix-account-permissions/

    ------------------------------------------------------------------------
    Rise Company for Engineering & Technology
    ------------------------------------------------------------------------
    Web Hosting | Web Designing | E-Marketing

    # 1 Business Services

    Web Hosting - Business Emails

    Web Design - Google Adwords

    www.rise.company | www.rise.company/emails

    :
    ! .



  2. #2
    Status
    Offline
      Rise Company
    Engineering and Technology
    Apr 2014
    Egypt
    4,077
    10

    : Cpanel | Domain USER Home Directory

    This is a simple bash script I wrote to fix the permissions and ownership of files within a cpanel account. To use, simply copy the script your server, chmod 755, and pass the usernames as arguments:
    ./fixperms user1 user2 user3
    You can also run a server-wide loop like this:
    for i in `ls -A /var/cpanel/users` ; do ./fixperms $i ; done
    Below is the script, but I recommend downloading it from here to ensure that the formatting is correct.


    :
    #!/bin/bash
    # Script to fix permissions of accounts
    # Written by: Vanessa Vasile 5/13/10
    # http://thecpaneladmin.com
    
    if [ "$#" -lt "1" ];then
            echo "Must specify user"
            exit;
    fi
    
    [email protected]
    
    for user in $USER
    do
    
        HOMEDIR=$(egrep "^${user}:" /etc/passwd | cut -d: -f6)
    
        if [ ! -f /var/cpanel/users/$user ]; then
            echo "$user user file missing, likely an invalid user"
    
        elif [ "$HOMEDIR" == "" ];then
            echo "Couldn't determine home directory for $user"
    
    
        else
    
            echo "Setting ownership for user $user"
    
            chown -R $user:$user $HOMEDIR
            chmod 711 $HOMEDIR
            chown $user:nobody $HOMEDIR/public_html $HOMEDIR/.htpasswds
            chown $user:mail $HOMEDIR/etc $HOMEDIR/etc/*/shadow $HOMEDIR/etc/*/passwd
    
            echo "Setting permissions for user $USER"
    
            find $HOMEDIR -type f -exec chmod 644 {} \; -print
            find $HOMEDIR -type d -exec chmod 755 {} \; -print
            find $HOMEDIR -type d -name cgi-bin -exec chmod 755 {} \; -print
            find $HOMEDIR -type f \( -name "*.pl" -o -name "*.perl" \) -exec chmod 755 {} \; -print
    
            chmod 750 $HOMEDIR/public_html
    
            if [ -d "$HOMEDIR/.cagefs" ]; then
                chmod 775 $HOMEDIR/.cagefs
                chmod 700 $HOMEDIR/.cagefs/tmp
                chmod 700 $HOMEDIR/.cagefs/var
                chmod 777 $HOMEDIR/.cagefs/cache
                chmod 777 $HOMEDIR/.cagefs/run
            fi
        fi
    done
    ------------------------------------------------------------------------
    Rise Company for Engineering & Technology
    ------------------------------------------------------------------------
    Web Hosting | Web Designing | E-Marketing

    # 1 Business Services

    Web Hosting - Business Emails

    Web Design - Google Adwords

    www.rise.company | www.rise.company/emails

    :
    ! .



  1. Cpanel | / cpanel
    Rise Company Whm / Cpanel
    : 0
    : 14-03-2022, 17:36
  2. : 0
    : 21-12-2021, 19:59
  3. Cpanel | Move cPanel with out backup
    Rise Company Whm / Cpanel
    : 0
    : 21-12-2021, 18:09
  4. : 0
    : 03-12-2021, 04:35
  5. cPanel | Can I change cPanel login url
    Rise Company Whm / Cpanel
    : 0
    : 03-03-2021, 23:14