dl-services

Member
Apr 21, 2009
9
0
51
Hi Everyone

I am running a dedicated server installed with, cPanel 11.24.5-R38506 - WHM 11.24.2 - X 3.9
CENTOS 5.4 i686

I seem to have a major problem with one account on the server, i can access the account via ftp and filemmanager, but it wont let me do any work in there with regards to uploading, changing cmods, deleting files etc etc i always get an error..

permission denied...

is there a way to repaif this or the cmods as i dont want to go round in cirles anymore
 

Spiral

BANNED
Jun 24, 2005
2,018
8
193
Check the ownerships on the files and folders in the account and make sur e that the "chattr +i" flag hasn't been set somehow either.
 

madaboutlinux

Well-Known Member
Jan 24, 2005
1,051
2
168
Earth
to check the ownership of the files/folders under the account,

SSH to your server as root
cd /home/user/public_html
ls -la
where, 'user' is the username in question.

ls -la will list all the files and will show you the permissions and ownership as well. To check if the files/folders are chattr'ed, do

cd /home/user
lsattr /home/user
the ownership of the public_html folder should be

user.nobody
and the files/folders under it should be

user.user
command to change the ownership is

chown user.user /home/user/public_html -R
chown user.nobody /home/user/public_html
 

bigal

Member
Nov 10, 2009
14
0
51
I noticed there is a directory /home/user/etc
which belongs user.mail

and /home/user/.htpasswds
which belongs user.nobody
 

dl-services

Member
Apr 21, 2009
9
0
51
[email protected] [/home/torrentz]# lsattr /home/torrentz
------------- /home/torrentz/etc
------------- /home/torrentz/cpbackup-exclude.conf
----------I-- /home/torrentz/www
------------- /home/torrentz/tmp
------------- /home/torrentz/backup-11.27.2009_01-43-00_torrentz.tar.gz
------------- /home/torrentz/mail
------------- /home/torrentz/JackPotSoft.rar
------------- /home/torrentz/bin
------------- /home/torrentz/perl
------------- /home/torrentz/access-logs
------------- /home/torrentz/php
------------- /home/torrentz/public_ftp
----------I-- /home/torrentz/public_html
 

dl-services

Member
Apr 21, 2009
9
0
51
Right, that's the 'i' for the public_html directory is causing the problems. Now, execute the following



and you should be able to edit files under it.
hi madaboutlinux

i did run the command above but it still shows..


[email protected] [/home/torrentz]# lsattr /home/torrentz
------------- /home/torrentz/etc
------------- /home/torrentz/cpbackup-exclude.conf
----------I-- /home/torrentz/www
------------- /home/torrentz/tmp
------------- /home/torrentz/backup-11.27.2009_01-43-00_torrentz.tar.gz
------------- /home/torrentz/mail
------------- /home/torrentz/JackPotSoft.rar
------------- /home/torrentz/bin
------------- /home/torrentz/perl
------------- /home/torrentz/access-logs
------------- /home/torrentz/php
------------- /home/torrentz/public_ftp
----------I-- /home/torrentz/public_html
 

dl-services

Member
Apr 21, 2009
9
0
51
cPanel Scource

I have contacted the support team where i get my liecense from hoping they will do this for me as support is (should be) included.

Thanks very much for all your time i will post results once i have a reply from them..

Regards
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,544
13
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
i did run the command above but it still shows..

[email protected] [/home/torrentz]# lsattr /home/torrentz
------------- /home/torrentz/etc
------------- /home/torrentz/cpbackup-exclude.conf
----------I-- /home/torrentz/www
------------- /home/torrentz/tmp
------------- /home/torrentz/backup-11.27.2009_01-43-00_torrentz.tar.gz
------------- /home/torrentz/mail
------------- /home/torrentz/JackPotSoft.rar
------------- /home/torrentz/bin
------------- /home/torrentz/perl
------------- /home/torrentz/access-logs
------------- /home/torrentz/php
------------- /home/torrentz/public_ftp
----------I-- /home/torrentz/public_html
To help clarify, cPanel/WHM does not set the immutable attribute or flag "-i" on accounts as seen in the provided output for the directory "public_html" and the symbolic link (symlink) "www". This issue stems from something outside of cPanel/WHM, such as manual administrative action or other sources of modification. With the given information I believe it will be necessary to contact the upstream service provider to help alleviate the issue.