0

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?

pnuts
  • 58,317
  • 11
  • 87
  • 139
Charles Marsh
  • 465
  • 1
  • 8
  • 27

3 Answers3

3

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
  • 5,590
  • 1
  • 25
  • 33
1

chown 510:510 thefile.file

Mitch Dempsey
  • 38,725
  • 6
  • 68
  • 74
1

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
  • 131,333
  • 52
  • 229
  • 284