PDA

View Full Version : Cannot chown files!



justahost
04-01-2008, 06:02 AM
Afternoon all.

I have just restored an account on the server I have and the user/group names are wrong.

I went into SSH and tried to correct the problem by running from within the public_html folder (which has the correct owner/group!):

chown -R secure.secure * (and chown -R secure:secure *)

and I get an error:

chown: invalid option -- o

which sort of confuses me!

Is there any way that I can force chown to change the owner/group to the correct setting?

Cheers
Ry

blasty
04-02-2008, 08:36 AM
try: chown -R secure:secure .
From the public_html dir ofcourse.

Your wildcard (*) probably caused nastyness.

justahost
04-04-2008, 10:03 AM
Sorry for the late reply. In the end I just went up a directory and instead of using *, I put the directory name and everything worked!