Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2004
    Location
    Ellesmere Port, Wirral, UK
    Posts
    1,540

    Having a few basic troubles.

    Right, the problem lies with transfering files from one account, to another of a different user name and domain name.

    I have account xxx123.com

    and I tar'ed the files and moved them to:

    xxx456.com. Now here is where the trouble is, via ftp I cant move or delete the files, which I believe is down to file ownership.

    This isn't normally my line of business, thats what I hire techs for, but since this is a personal account i want to fix it myself

    I get a 550 permission denied error. I have shell access.
    BTi-Hosting.co.uk High quality hosting, low low prices.
    One step ahead of the competition - Today IS tomorrow.
    FraudWise.Net - Fight the fraud!

  2. #2
    Join Date
    Sep 2004
    Location
    Flint, Michigan
    Posts
    5,766
    what is the user and group of the files?

    ls -la file.tar
    Mike from Zoodia.com
    Professional web design and development services.
    In need of a fresh hosting design? See what premade designs we have in stock!
    Web design tips, tricks, and more at MichaelPruitt.com

  3. #3
    Join Date
    Jan 2004
    Location
    Ellesmere Port, Wirral, UK
    Posts
    1,540
    The original owner is icewenet and the new user is imacag.

    I tried chown -R icewenet:imacag public_html (after I tar xvf)
    BTi-Hosting.co.uk High quality hosting, low low prices.
    One step ahead of the competition - Today IS tomorrow.
    FraudWise.Net - Fight the fraud!

  4. #4
    Join Date
    Sep 2004
    Location
    Flint, Michigan
    Posts
    5,766
    I believe you would need to do chown -R icewenet:imacag public_html/*
    Mike from Zoodia.com
    Professional web design and development services.
    In need of a fresh hosting design? See what premade designs we have in stock!
    Web design tips, tricks, and more at MichaelPruitt.com

  5. #5
    Join Date
    Jan 2004
    Location
    Ellesmere Port, Wirral, UK
    Posts
    1,540
    That sorted it, thanks alot matey! Cant believe I was so close, but also so far
    BTi-Hosting.co.uk High quality hosting, low low prices.
    One step ahead of the competition - Today IS tomorrow.
    FraudWise.Net - Fight the fraud!

  6. #6
    Join Date
    Jan 2004
    Location
    Ellesmere Port, Wirral, UK
    Posts
    1,540
    Right, after doing this, it let me delete, move, chmod files, but I couldn't upload to the account.

    So I ran /scripts/chownpublichtmls and it fixed it. So any idea what that script does?
    BTi-Hosting.co.uk High quality hosting, low low prices.
    One step ahead of the competition - Today IS tomorrow.
    FraudWise.Net - Fight the fraud!

  7. #7
    Join Date
    Sep 2004
    Location
    Flint, Michigan
    Posts
    5,766
    when you did chown public_html/* it chowned every file under the public_html directory, not the public_html directory itself
    Mike from Zoodia.com
    Professional web design and development services.
    In need of a fresh hosting design? See what premade designs we have in stock!
    Web design tips, tricks, and more at MichaelPruitt.com

Posting Permissions

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