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.

CP command - how to use correctly?

Discussion in 'General Discussion' started by Dreamy, Dec 23, 2008.

  1. Dreamy

    Dreamy Well-Known Member

    Joined:
    Sep 16, 2008
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    6
    Id want to copy software files from USER01 to USER02 and to USER03 so that they would work under USER02 and USER03 correctly.

    I would have to copy them by using putty and logged in as root.

    How can I get them to use right permissions and right owner and right group?

    I have tried
    cp -pr /mydir/user01 /mydir/user02
    chown -R user02:user02 /mydir/user02

    cp -pr /mydir/user01 /mydir/user03
    chown -R user03:user03 /mydir/user03

    This doesnt get soft working.
     
  2. sirotex

    sirotex Well-Known Member

    Joined:
    Jul 10, 2008
    Messages:
    121
    Likes Received:
    0
    Trophy Points:
    16
    chmod user/group/world for permissions. chown to change owner/group. Really you should know this for BASIC skills in *nix.
     
  3. Dreamy

    Dreamy Well-Known Member

    Joined:
    Sep 16, 2008
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    6
    I ment how to copy right permissions not how to set them. Im not gonna overset all 2000 files permissions, thats insane.

    Couldnt it auto change owner and group into owner and group whos folder Im copying it into?
     
Loading...

Share This Page