rjlittlefield Posted January 28, 2007 Posted January 28, 2007 Periodically I need to upload several hundred files in a complicated hierarchy. For whatever reason, my FTP connection is not reliable. It's guaranteed to fail if I point to the root of the hierarchy and say "upload this". I can put all the files into an archive, say foo.tar. Then I can upload that and run a little php script to untar it. That works great, except that the php script runs as "nobody", so all of the untar'd files end up being owned by "nobody", not by my normal ftp account. I figure this must be a common problem. What's the solution? How do I upload an archive, unpack it, and have the files be owned by my FTP account? Thanks much, --Rik Quote
TCH-Bruce Posted January 28, 2007 Posted January 28, 2007 I put files in a Zip archive all the time and extract them on the server using the File Manager in cPanel. And I remain the owner of the files once extracted so I am not sure why you are seeing this behavior. Have you tried a Zip archive? Quote
Smudge Posted January 28, 2007 Posted January 28, 2007 I think is you unpack via a script - it will be owned by nobody. If you unpack via the cpanel file manager it will be owned by you. Quote
rjlittlefield Posted January 28, 2007 Author Posted January 28, 2007 Yep, File Manager is the solution. I had played with File Manager before I posted my question, but apparently I never clicked the right places to see the Extract File Contents option. Knowing that File Manager was the right direction, I looked harder, and now of course it's completely obvious. In a quick test, File Manager handled my .tar and .gz files just fine. Thanks for the help! --Rik Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.