The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Moving folders to a different account on the same server

Discussion in 'General Discussion' started by foreigndude, Dec 17, 2005.

  1. foreigndude

    foreigndude Member

    Joined:
    Aug 16, 2005
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    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. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    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.
     
  3. foreigndude

    foreigndude Member

    Joined:
    Aug 16, 2005
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    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. foreigndude

    foreigndude Member

    Joined:
    Aug 16, 2005
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    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. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    did you remember to "chown -R username:username" are the permisions correct

    ls -l /full/path/to/where/you/want/it/to/be
     
  6. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    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
     
  7. foreigndude

    foreigndude Member

    Joined:
    Aug 16, 2005
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    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. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    Welcome to shell. :D

    Shell commands can be fun to play with, but can also be very disastrous. ;)
     
Loading...

Share This Page