The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

error permission

Discussion in 'E-mail Discussions' started by aphoedite, Feb 15, 2016.

  1. aphoedite

    aphoedite Registered

    Joined:
    Feb 15, 2016
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    France
    cPanel Access Level:
    Root Administrator
    Hello,

    I build a Cpanel Server with a NFS storage for webuser
    I have only one problem with mail.

    Rebuild Mail Databases and Fix Permissions
    Failed to chown “/hawww1/djewpzau/etc” to group “mail”: Operation not permitted at /usr/local/cpanel/Cpanel/Email/Perms/User.pm line 317.
    Failed to chown “/hawww1/djewpzau/etc/xcausxn.com/quota,v” to group “mail”: Operation not permitted at /usr/local/cpanel/Cpanel/Email/Perms/User.pm line 317.
    Too fix it, i must use:

    for i in `ls /var/cpanel/users`; do chown $i:$i /hawww1/$i -R; done
    for i in `ls /var/cpanel/users`; do chown $i:nobody /hawww1/$i/public_html; done
    for i in `ls /var/cpanel/users`; do chown $i:mail /hawww1/$i/etc -R; done

    But why Cpanel can't change permission on NFS ?

    NFS Server exports
    #VLAN man4 4090 serveur web

    /filer/HAWEB/hawww1 10.10.11.10(rw,insecure,sync,no_subtree_check,no_root_squash)


    Complete!
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    652
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. aphoedite

    aphoedite Registered

    Joined:
    Feb 15, 2016
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    France
    cPanel Access Level:
    Root Administrator
    Hi

    I confirm it, NFS shared as root access and same problem
    Failed to chown “/home/gputier/etc/guillaumes.sites” to group “mail”: Operation not permitted at /usr/local/cpanel/Cpanel/Email/Perms/User.pm line 317.
    at /usr/local/cpanel/Cpanel/Email/Perms/User.pm line 317.
    Cpanel::Email::Perms::User::_set_perms("/home/gputier/etc/guillaumes.sites", ARRAY(0x43b5f48)) called at /usr/local/cpanel/Cpanel/Email/Perms/User.pm line 232
    Cpanel::Email::Perms::User::_ensure_perms("DOMAIN", "/home/gputier", "guillaumes.sites") called at /usr/local/cpanel/Cpanel/Email/Perms/User.pm line 165
    Cpanel::Email::Perms::User::ensure_domain_perms("/home/gputier", "guillaumes.sites") called at /usr/local/cpanel/Cpanel/Email/Perms/User.pm line 194
    Cpanel::Email::Perms::User::ensure_all_perms("/home/gputier") called at /usr/local/cpanel/Whostmgr/Accounts/Create/Utils.pm line 112
    Whostmgr::Accounts::Create::Utils::try {...} () called at /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/Try/Tiny.pm line 80
    eval {...} called at /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/Try/Tiny.pm line 71
    Try::Tiny::try(CODE(0x6311160), Try::Tiny::Catch=REF(0x630a858)) called at /usr/local/cpanel/Whostmgr/Accounts/Create/Utils.pm line 116
    Whostmgr::Accounts::Create::Utils::set_up_new_user_homedir("gputier", "guillaumes.sites", CODE(0x632cf68)) called at /usr/local/cpanel/Whostmgr/Accounts/Create.pm line 948
    Whostmgr::Accounts::Create::_wwwacct("useregns", 0, "dkim", 1, "locale", "fr", "maxftp", 10, "max_defer_fail_percentage", ...) called at /usr/local/cpanel/Whostmgr/Accounts/Create.pm line 1985
    Whostmgr::Accounts::Create::__createaccount("bwlimit", "unlimited", "quota", 102400, "dkim", 1, "customip", "--Attribuer automatiquement--", "maxftp", ...) called at /usr/local/cpanel/Whostmgr/Accounts/Create.pm line 2035
    Whostmgr::Accounts::Create::_createaccount("bwlimit", "unlimited", "quota", 102400, "dkim", 1, "customip", "--Attribuer automatiquement--", "maxftp", ...) called at whostmgr/bin/whostmgr5.pl line 684
    main::wwwacct() called at whostmgr/bin/whostmgr5.pl line 241
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    652
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
Loading...

Share This Page