Web Hosting Talk







View Full Version : permission denied - arrggh


Christopher
10-16-2001, 03:19 PM
Hi all,

I got a raq last week and am transitioning my sites over to it.

I will not be hosting other peoples sites, just have my own on it.

To transfer my sites over, I tar.gz'd them all up together and ftp'd them from the old server to the new. Then telnetted in, unzipped and moved them around into the correct directories under the 'virtual sites'.

That seemed to work ok, but now if I ftp in to update a few pages I get 'permission denied' all over the place.

I think that the permissions stayed the same during the move. But the 'owner' changed. The owner is now listed as 64911, and I don't have any users listed like that. This number is listed as the 'owner' throughout all the sites I transferred.

What I need to be able to do is to ftp in and make changes throughout the sites that I have. Looks like my solution would be to change the owner from 64911 to my user name - system wide.

Is this correct and if so, how would I go about doing changing the user name in the system?

Thank you,

Chris

Pingu
10-16-2001, 04:06 PM
Lemme dig into my knowledgebase...

Ok, here's what I came up with:

Change ownership of files and directories
Syntax: chown [OPTIONS] username/group file/directory
Options:
-v Verbose
-c Displays changes in ownership
-R recursive on all files and directories


To change ownership to user "username":

Telnet in (or better yet, use SSH)
Login as admin
Su to root
chown -v -c -R "username" webdirectory

jahsh
10-16-2001, 04:23 PM
yup yup...chown -R username filename (-R is recursive ) goes down through all directories in that site

Christopher
10-16-2001, 07:08 PM
ah yes, that worked wonderfully :)

Life is so much easier when you can access your files!

Chris