Moving folders to a different account on the same server

foreigndude

Member
Aug 16, 2005
12
0
151
Hey guys,

I have a question and I can't find anything in here about it so far.

I need to move a folder from account1 to account2 on the same server. How do I do that with WHM, if possible at all?

Any help would be appreciated. Thank you!

P.S. If this is already covered somewhere in the forum, please point me to it and delete this :)
 

PWSowner

Well-Known Member
Nov 10, 2001
2,948
4
343
ON, Canada
WHM doesn't have this ability by default. Chirpy's File Manager/Console for WHM will do what you want, or you can do it in shell.

You can move a folder from one account to another in shell like this:
mv /full/path/to/folder/to/move /full/path/to/where/you/want/it/to/be
chown -R username:username /full/path/to/where/you/want/it/to/be


The first line will move it and the second will change all folders and files to the new owner.
 

foreigndude

Member
Aug 16, 2005
12
0
151
I can't thank you enough. I did it through shell, even though I have never used it for anything so far.

Thanks again!
 

foreigndude

Member
Aug 16, 2005
12
0
151
Dammit...

Now I have another, weird problem. Folders are moved without a problem, but after that, the account shows a 403 Forbidden message.

Any ideas?
 

PWSowner

Well-Known Member
Nov 10, 2001
2,948
4
343
ON, Canada
As Dalem said, did you do the chown? Also, any chance what you moved included the public_html folder? If so, it's owner and permissions are different.

If your move included the public_html folder, do this:
chown username:nobody /home/username/public_html
chmod 0750 /home/username/public_html

substituting username with actual username of course
 

foreigndude

Member
Aug 16, 2005
12
0
151
Hey guys,

Yes, I did chown, and my move did include public_html folder (ie. /home/yuraja/public_html/cam) and I did the chmod now and it fixed the problem.

Thank you all so much, I was freaking out a couple of minutes ago.