Making files on USB stick accessible across several Linux devices

My customer has two Linux laptops, configured as intranet web servers and needs to be able to transfer some files between them via a USB stick, from time to time.

Can some one please provide a basic guide on what has to be done to make this work, in terms of mounting the USB stick (or not) , permissions, etc etc.

Also the files on the USB stick are written via a web application running on the laptops, so the USB stick has to be writable and readable whichever laptop it is plugged into.

So far I can get each laptop to write and read files to the USB stick, but when the USB stick is plugged into the other laptop, the files from the first laptop are not visible.

I come from a Windows background and am struggling with some basic concepts here.

Can anyone help?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I'm guessing it may have to do with file ownership.  What is the USB drive formatted to?  If FAT, there shouldn't be a problem. Otherwise, you may have different User IDS for the user accounts. So Bob on machine one has UID of 500 and on machine two Bob has UID of 501. I think they would not be the same user.  Now if Bob from machine one owns the files and it is formated with a NIX filesystem. That could be a problem I suppose.  You could allow world read on it--generally frowned upon. chmod 777 * on that drive.  That says anyone what so ever can read and write to/from that drive.  I might try formatting it as FAT if not already and I wouldn't think  you'd have a problem then.
Gerwin Jansen, EE MVETopic Advisor Commented:
Try removing the USB stick 'nicely' from the Linux machine by using unmount or eject (right-click the device).
socrossAuthor Commented:
It was solved by formatting the USB stick as ext4  (as it only ever needs to be plugged into Linux devices) and changing permissions so that user "web-data" (the default user for a web application) could access the USB stick (read/write).

Thanks to contributors who gave us some pointers.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
socrossAuthor Commented:
With the hints from the two EE contributors we were eventually able to sort this out ourselves. So thanks again to SStory and Gerwin Jansen.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.