views:

48

answers:

3

I am getting a 500 error because the owner of some of my files is set incorrectly, its set at 0 0 when the rest are at 510 510?? How do I fix this, I've read something about ssh?

+1  A: 

chown 510:510 thefile.file

webdestroya
+1  A: 

If it is a linux server, you can use the chown and chgrp commands to change the owner and group of a file.

You can also use the chmod command to change the permissions of a given file - EG: 777 means that everyone has access to a file (probably not what you want, just an example:

Justin Ethier
+3  A: 

Yes, SSH is right. You need to use SSH to connect to your server (using openssh and the "ssh" program in Linux, or PuTTy in Windows) and issue the command webdestroya already posted:

$ ssh yourserver -l username <host>
OR
$ ssh yourserver [username@]<host>

And then issue the command to change your file permissions:

$ chown 510:510 thefile.file
LukeN
Some SCP clients (like winSCP) will also allow to set file permissions - this way you don't have to bother with the console.
Konerak
Why "bother"? I love my consoles :)
LukeN