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.

Chmod Error in CPANEL

Discussion in 'General Discussion' started by magola, Jun 14, 2006.

  1. magola

    magola Member

    Joined:
    May 26, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    When my clients try to change permissions, the follow error print in screen:

    [a fatal error or timeout occurred while processing this directive]

    And log:
    (internal death) Wed Jun 14 11:53:50 2006 [12140] error: /home/enduro/public_html/mural/config.php chmod failed: Operation not permitted at cpanel.pl line 2097
    Carp::croak('/home/enduro/public_html/mural/config.php chmod failed: Operatio...') called at /usr/local/cpanel/Cpanel/Fileman.pm line 665
    Cpanel::Fileman::changeperm('/home/enduro/public_html/mural', 'config.php', 4, 2, 1, 4, 2, 1, ...) called at cpanel.pl line 2097
    main::dofileman('changeperm($FORM{\'dir\'},$FORM{\'file\'},$FORM{\'ur\'},$FORM{\'...') called at cpanel.pl line 610
    main::exectag('<cpanel^M^JFileman="changeperm($FORM{\'dir\'},$FORM{\'file\'},$FOR...') called at cpanel.pl line 3617
    main::dotag(undef) called at cpanel.pl line 3507
    main::parsehtml('GLOB(0x8c1970c)') called at cpanel.pl line 368
    /home/enduro/public_html/mural/config.php chmod failed: Operation not permitted at cpanel.pl line 2097


    To ALL clients.... any help?
     
  2. aby

    aby Well-Known Member

    Joined:
    May 31, 2005
    Messages:
    638
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    Can you please check the permission of chmod on the server. Also please check the cpanel error log /usr/local/cpanel/logs/error_logs. You will get more information.
     
  3. magola

    magola Member

    Joined:
    May 26, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    The error of /usr/local/cpanel/logs/error_logs was posted!!!

    (internal death) Wed Jun 14 11:53:50 2006 [12140] error: /home/enduro/public_html/mural/config.php chmod failed: Operation not permitted at cpanel.pl line 2097
    Carp::croak('/home/enduro/public_html/mural/config.php chmod failed: Operatio...') called at /usr/local/cpanel/Cpanel/Fileman.pm line 665
    Cpanel::Fileman::changeperm('/home/enduro/public_html/mural', 'config.php', 4, 2, 1, 4, 2, 1, ...) called at cpanel.pl line 2097
    main::dofileman('changeperm($FORM{\'dir\'},$FORM{\ 'file\'},$FORM{\'ur\'},$FORM{\'...') called at cpanel.pl line 610
    main::exectag('<cpanel^M^JFileman="changeperm($FOR M{\'dir\'},$FORM{\'file\'},$FOR...') called at cpanel.pl line 3617
    main::dotag(undef) called at cpanel.pl line 3507
    main:arsehtml('GLOB(0x8c1970c)') called at cpanel.pl line 368
    /home/enduro/public_html/mural/config.php chmod failed: Operation not permitted at cpanel.pl line 2097

    (root@freebsd)(/bin)$ls -al chmod
    -r-xr-xr-x 1 root wheel 5864 May 8 2005 chmod
     
  4. manan

    manan Active Member

    Joined:
    Jun 8, 2006
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    I think u have a conflict with the permissions as normally doing ls -al u should see -rwxr-xr-x
    1 root root . Also if ur client is not able to change the permissions on the file check if the rights on that file is atleast 6 for the user and that file should not be created by the root.
     
  5. madan.cpanelnet

    madan.cpanelnet Well-Known Member

    Joined:
    Apr 1, 2006
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    INDIA
    Also check

    # lsattr /home/enduro/public_html/mural/config.php


    In Redhat Enterprise system;

    root@xyz [/bin]# ls -la chmod
    -rwxr-xr-x 1 root root 34768 Jun 20 2005 chmod*
     
  6. bmcgrail

    bmcgrail Well-Known Member

    Joined:
    Dec 8, 2003
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6
    This is an ownership problem on the file at /home/enduro/public_html/mural/config.php

    If config.php was uploaded by a script it may be owned by nobody. If it was created by the sysadmin for the user it may be owned by root. When logged into cpanel's file manager the user is running chmod as the account user. In this case as enduro. So if an ls -l /home/enduro/public_html/mural/config.php shows a user other then enduro (the assumed owner of the directory) you will get the exact error you reported.

    Possible Fixes:

    1) Instruct user to manage file from within the script that made the file.
    2) Instruct user to get a generic php file manager script (would run as nobody too)
    3) reset ownership on files in public_html
    4) install phpsuexec so all php scripts run as the user and not as nobody
     
  7. magola

    magola Member

    Joined:
    May 26, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    The phpsuexec was installed, and i still receive error messages :(
    I try to change permission in chmod, but no sucess:

    (root@freebsd)(/bin)$chown root:root chmod
    chown: root: Invalid argument
    (root@freebsd)(/bin)$chown -R root:root chmod
    chown: root: Invalid argument
    (root@freebsd)(/bin)$

    Any idea?
    Thanks!
     
  8. innovative2001

    innovative2001 Active Member

    Joined:
    Jun 5, 2006
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    Hello

    Kindly note that you are using wrong command to change ownership of the file or folder, use below mentioned command.

    (root@freebsd)(/bin)$chown root:root < here you should use files or folder name instead of chmod>

    Note: because chmod is it self command for set the permission to any file and holder

    (root@freebsd)(/bin)$chown -R root:root < file or folder name>

    The below command will helpful to you understand your above provided command.

    (root@freebsd)(/bin)$chown root:root test.html ( this is for file)

    (root@freebsd)(/bin)$chown root:root test ( this is for folder)

    What out put will you receive after running above command?

    It will change ownership of the test.hml and test folder to root user

    If you want to set permission to any file and folder then you can do it using below command.

    root@freebsd)(/bin)$chmod 777 test

    Note: 777 means that you are going to assign full permission for all who are using test folder.
     
  9. bmcgrail

    bmcgrail Well-Known Member

    Joined:
    Dec 8, 2003
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6
    Your problems have NOTHING to do with the permissons or ownership of chmod.

    On freebsd the root group is wheel so you cant change it to root:root it needs to be left as root:wheel and adding the write flag to the chmod program will not do anything for you. The problem is probably with the ownership of the files in the public_html directory. Please see my previous post.

    As root

    cd /home/user
    chown -R user:user public_html/
     
Loading...

Share This Page