cws_support

Member
Aug 24, 2006
15
0
151
Hello:

Is there a way in WHM or cpanel to change the ownership of a file?
I need to change the ownership of some scripts that I edited in notepad, and uploaded with cPanel File Manager.
This appears to have caused a problem. I was told that it may be the reason the compiler/ interpreter is writing to my script files. And that I need to chown it to the "owner".

If not, if someone could give me a hint as to where to start, I would be grateful.
 

lloyd_tennison

Well-Known Member
Mar 12, 2004
697
1
168
chown username.username

However, since you said text files, make sure they are *nix text files - not dos text files. The end of line characters are different. You can use the dos2unix to convert them.
 

angelina_holy

Well-Known Member
Aug 6, 2006
113
0
166
you cannot change the ownership of file from whm or cpanel . you will need a shell access or you can contact your hosting company for it .

chown username.username filename