PLS HELP!! permission 0 ! [moved]

goodgbb

Well-Known Member
Aug 15, 2005
71
0
156
Thailand
PLS HELP!! permission 0 !

Dear Helpers

My important file get permission to be "0" , I can't read write execute. I can't chmod this file.
I'm using ftp access.

What can i do for this file?
Do I need root access?
HOW TO CHANGE PERMISSION TO BE DEFAULT(644)?

I'm looking forward to read your helping


THANK YOU SO MUCH!!!
 

oulzac

Well-Known Member
Aug 7, 2005
131
0
166
It seems by your post, that this is not your server, so you will need to contact your hosting company, as they have permission problem, or they change the permissions for a reason, so you will need to talk to them to find out wich, as you will need root/ssh access to fix the problem.

:cool:
 

aby

Well-Known Member
May 31, 2005
638
0
166
India
goodgbb said:
Thank you.

Anyway, which commands can resolve this problem?

"chmod -r" ?

You can use

chmod 644 filename
if you need to change the permission for just a single file.
 

goodgbb

Well-Known Member
Aug 15, 2005
71
0
156
Thailand
aby said:
You can use

chmod 644 filename
if you need to change the permission for just a single file.
Thanks
I told that other files can change permission. Problem is just the file permission is "000" then I can't do anything in ftp access and cpanel file manager.

following link is the file screen shot in cpanel

 

oulzac

Well-Known Member
Aug 7, 2005
131
0
166
If you have root access, login with ssh, and type :

chattr -i /home/username/public_html/*
or
chattr -i /home/username/public_html/index.html

then type:

chown username:username /home/username/public_html/index.html

then type:

chmod 644 /home/username/public_html/index.html

This will fix your problem.

IF you do not have root access, your host will have to do this for you, but more than likely if they chattr +i your file, there is an issue you need to talk to them about this with.
 

carlospix

Registered
Nov 20, 2004
2
0
151
Planet Earth
Hmmm... This has nothing to do with cPanel...
But you probably need to change the file's ownership before you can change its permissions by FTP.