Results 1 to 7 of 7
  1. #1

    Command needed to update ownerships of several files

    Hello ,

    i have copied a folder from a account to another account
    user1/public_html/images >>to>> user2/public_html/images

    i was wondering if anyone could give me a command to update ownership of the files & Direcectories ,etc.. which are located in user2/images

    Server Details :
    OS : Centos
    Panel : Direct-Admin
    PHP Based on : Dso



    Thank u

  2. #2
    Join Date
    Aug 2010
    Location
    United Kingdom
    Posts
    199
    The Linux command line command is...

    chmod -R user:group /path/to/directory

    -R meaning recursive permissions.
    I do things. - Consumer and b2b IT solutions.

  3. #3
    Quote Originally Posted by Akisoft View Post
    The Linux command line command is...

    chmod -R user:group /path/to/directory

    -R meaning recursive permissions.
    actually i wanted to change chown ...

  4. #4
    Join Date
    May 2009
    Location
    On a Speck!!!!!
    Posts
    216
    chown -R user2. user2/public_html/images
    Regards,
    Tom.

    Freelance System Administrator

  5. #5
    Join Date
    Aug 2010
    Location
    United Kingdom
    Posts
    199
    Yeah, I meant chown, that's what I get for doing it from my phone .
    I do things. - Consumer and b2b IT solutions.

  6. #6
    Thank you very much

  7. #7
    Join Date
    Mar 2010
    Location
    Germany
    Posts
    681
    Quote Originally Posted by Akisoft View Post
    The Linux command line command is...

    chmod -R user:group /path/to/directory

    -R meaning recursive permissions.
    -Rh to avoid any traps with people symlinking to /etc/shadow
    Check out my SSD guides for Samsung, HGST (Hitachi Global Storage) and Intel!

Similar Threads

  1. Assistance with PHP update command
    By Dabsphere in forum Programming Discussion
    Replies: 2
    Last Post: 09-16-2008, 06:17 AM
  2. Command for tranferring files through wget
    By ramdak5000 in forum Hosting Security and Technology
    Replies: 5
    Last Post: 07-17-2007, 11:35 AM
  3. Command to change group ownerships
    By VagrantHost in forum Hosting Security and Technology
    Replies: 5
    Last Post: 04-30-2007, 01:50 PM
  4. files details command
    By xmlxp in forum Hosting Security and Technology
    Replies: 4
    Last Post: 11-12-2004, 04:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •