Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Aug 2005
    Posts
    12

    Cool Moving folders to a different account on the same server

    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

  2. #2
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    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.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  3. #3
    Member
    Join Date
    Aug 2005
    Posts
    12

    Default

    I can't thank you enough. I did it through shell, even though I have never used it for anything so far.

    Thanks again!

  4. #4
    Member
    Join Date
    Aug 2005
    Posts
    12

    Default

    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?

  5. #5
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Oct 2003
    Posts
    1,931

    Default

    did you remember to "chown -R username:username" are the permisions correct

    ls -l /full/path/to/where/you/want/it/to/be
    Lowest Host/Empire Technology LLC
    Affordable hosting solutions http://empire-hosting.net
    List Your hosting site FREE in http://hostgeneration.com

  6. #6
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    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
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  7. #7
    Member
    Join Date
    Aug 2005
    Posts
    12

    Talking

    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.

  8. #8
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    Welcome to shell.

    Shell commands can be fun to play with, but can also be very disastrous.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

Similar Threads & Tags
Similar threads

  1. Replies: 7
    Last Post: 02-21-2012, 02:04 AM
  2. Help moving account to new server
    By RedactUK in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-14-2011, 02:14 PM
  3. Moving Account from another server
    By tomuptonuk in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-10-2007, 05:49 AM
  4. Moving Account from another Server
    By hosttrue in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 08-19-2005, 05:31 PM
  5. moving a hosting account from one server to another
    By systemhost in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-14-2005, 05:03 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube