how to untar .tar.gz files with its default permissions

Discussion in 'Site & Server Administration' started by RECEP, Jan 23, 2012.

  1. #1
    l connected to my server via ssh.

    when l wget latest wordpress.tar.gz from wordpress.org, l am using tar -zxvf latest.tar.gz and l cant start default wordpress installation, and when l reach it says 500 errors..

    how can l untar .tar.gz files with its default permissions ? thanks..
     
    RECEP, Jan 23, 2012 IP
  2. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #2
    Hello there,

    It sounds like you have the owner incorrect. Are you downloading the file with the root user, then placing them in another users account? You can chown the files to the correct user if this is the case.

    Chris
     
    RHS-Chris, Jan 23, 2012 IP
  3. ideamine

    ideamine Member

    Messages:
    83
    Likes Received:
    2
    Best Answers:
    2
    Trophy Points:
    28
    #3
    try -p for --preserve-permissions but you can always use chown to change the ownership later ... give -R option with chown to change ownership recursively.
     
    ideamine, Jan 30, 2012 IP