derxen Posted May 10, 2010 Report Share Posted May 10, 2010 Hello I want to use a usb-stick on two linux machines, one at work, one at home. I have different user names on the two. How do I make the files readable, writable, and executable for me on both, without making all the files rwx for others? Is there a way? derxen Quote Link to comment Share on other sites More sharing options...
K Bergen Posted May 10, 2010 Report Share Posted May 10, 2010 You didn't say what file system the stick is formated as. If it's vfat then whoever mounts it had full rwx permissions to all files as Windows file systems don't use or understand Unix permissions. If it's a Linux file system you could change the group for all the files you wish to share to something like "usbsticks" with rw- permissions then create that group on both computers and add that group to the all users you want to have access to the stick. Quote Link to comment Share on other sites More sharing options...
derxen Posted May 11, 2010 Author Report Share Posted May 11, 2010 Sorry, should have mentioned that, it's ext3. What complicates things is that I don't have root access on the work computer, it's a (experimental) linux work station. So creating a group is no option. derxen Quote Link to comment Share on other sites More sharing options...
scarecrow Posted May 11, 2010 Report Share Posted May 11, 2010 (edited) Mount the stick and then as root change the permissions # chmod -R 0777 /media/usbstick (or whatever mount point it posesses). I cannot find a good reason to have a journaling filesystem in USB sticks. ext2 should be a better choice. Edited May 18, 2010 by scarecrow Quote Link to comment Share on other sites More sharing options...
derxen Posted May 11, 2010 Author Report Share Posted May 11, 2010 (edited) Thanks, changing permissions to 777 is what I did, but I now realize that I have to use the usb-stick on windows machines as well every one in a while, so it's back to vfat. (Can someone mark this topic as solved?) Out of curiosity: why is ext3 useless for usb-sticks? derxen Edited May 11, 2010 by derxen Quote Link to comment Share on other sites More sharing options...
K Bergen Posted May 11, 2010 Report Share Posted May 11, 2010 I believe that you can edit your first post and add (Solved) to the subject line. ext3 isn't exactly useless but it is a journaling file system and will increase the writes to the stick thus wearing it out a little sooner. Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted May 12, 2010 Report Share Posted May 12, 2010 You can mount ext2/ext3 under Windows. http://www.fs-driver.org/ Quote Link to comment Share on other sites More sharing options...
derxen Posted May 16, 2010 Author Report Share Posted May 16, 2010 That's interesting. It wouldn't be any use for me though, they're not computers I could easily install anything on. I've reformatted it with FAT, it's the best solution. Thanks everyone. derxen Quote Link to comment Share on other sites More sharing options...
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.
Note: Your post will require moderator approval before it will be visible.