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!
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
This is a really really weird occurence... I can upload the file, but after I upload it the file on the server is still the previous version... Nothing changed
Say I have this content in my old file:
line 1
line 2
and i have this content in my new file:
line 1
line 2
line 3
after I upload it, I open the file it still says:
line 1
line 2
What's going on? I have chown -r, and owns the directory. No permission problems.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.