Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Are you certain you are putting/uploading the file to the directory you thing you are putting/uploading it to?
There are FTP client commands to list which directory you are in and to list the files in your current directory. They might help, including displaying the last modification time on the file you think you have overwritten after upload.
- Are you sure you are ftp-ing to the correct directory?
- If you remove the file (server side) and try, does that work (is the new file created and correct)?
- You could try running ftp with the -v option and see if there are additional messages.
- Any messages in the ftp logs?
And also, random files are getting corrupted... what's going on?
Scary! When I wrote I had only seen your first message; from your further messages I understand that you are in the right directory and the FTP server reports that it has successfully stored a file when it hasn't but it works if you delete the existing file of the same name first. That's not nice!
You could work around this problem by ensuring each new tar archive has a different name or by deleting the existing file first but the corruption is scary. What symptoms do you find that makes you conclude the files are being randomly corrupted? It would be prudent (ha!) to keep a checksum of each file to check integrity, or use par2 if you want to be able to both check for corruption and repair.
If you are transferring in binary mode and seeing corruption then you could try a different FTP server to see if the problem is associated with the server or your end.
the thing about this is that these directories are results of tar -xvf... do I have to reset my permissions?
You mean files, not directories? Assuming you mean that the files you are uploading to the FTP server are tar archives then it doesn't matter that they are tar archives; to the FTP server they are just files (but they could contain non-ASCII data so should be transferred in binary mode).
I'm fairly confident that file ownerships and permissions on the FTP client are not transferred to the FTP server in which case they are irrelevant.
Alright sorry about unclear, it's 4AM and I'm quite pissed
I recently moved from another server, so I packaged my directory in tar, then I used tar -xvf to extract it
I used chown -R root /directory/
so now I tried to upload, it doesn't work. It doesn't say permission denied either... Just the newer file doesn't get updated.
Also, I noticed some extracted files are corrupted...
Made me chuckle! Here it's 3 PM in the afternoon and I'm soberer than some judges but now I'm less clear, not more
You're moving data from one computer to another and tarred it up and uploaded it to an FTP server and now you're downloading and restoring it? But then the uploading would be done so why are you having an upload problem?