Results 1 to 3 of 3

Thread: CP command - how to use correctly?

  1. #1
    Member
    Join Date
    Sep 2008
    Posts
    52

    Default CP command - how to use correctly?

    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. #2
    Member
    Join Date
    Jul 2008
    Posts
    121

    Default

    chmod user/group/world for permissions. chown to change owner/group. Really you should know this for BASIC skills in *nix.

  3. #3
    Member
    Join Date
    Sep 2008
    Posts
    52

    Default

    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?

Similar Threads

  1. Replies: 6
    Last Post: 12-23-2010, 12:47 PM
  2. How to correctly backup?
    By virtuexru in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 11-26-2007, 01:11 AM
  3. Getting setup correctly
    By pwm in forum cPanel & WHM Discussions
    Replies: 15
    Last Post: 08-01-2004, 07:31 PM
  4. What is the command to restart cpanel via the command line?
    By AbeFroman in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 07-29-2004, 03:24 PM
  5. procedure for deleting perticular shell command from "history" command
    By aress24x7 in forum cPanel & WHM Discussions
    Replies: 6
    Last Post: 11-05-2003, 10:06 AM