magola

Member
May 26, 2006
5
0
151
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?
 

aby

Well-Known Member
May 31, 2005
638
0
166
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.
 

magola

Member
May 26, 2006
5
0
151
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

([email protected])(/bin)$ls -al chmod
-r-xr-xr-x 1 root wheel 5864 May 8 2005 chmod
 

manan

Active Member
Jun 8, 2006
25
0
151
magola said:
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

([email protected])(/bin)$ls -al chmod
-r-xr-xr-x 1 root wheel 5864 May 8 2005 chmod
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.
 

bmcgrail

Well-Known Member
Dec 8, 2003
83
0
156
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
 

innovative2001

Active Member
Jun 5, 2006
29
0
151
Hello

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

([email protected])(/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

([email protected])(/bin)$chown -R root:root < file or folder name>

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

([email protected])(/bin)$chown root:root test.html ( this is for file)

([email protected])(/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.

[email protected])(/bin)$chmod 777 test

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

bmcgrail

Well-Known Member
Dec 8, 2003
83
0
156
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/