derxen Posted May 10, 2010 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 Link to comment Share on other sites More sharing options...
K Bergen Posted May 10, 2010 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. Link to comment Share on other sites More sharing options...
derxen Posted May 11, 2010 Author 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 Link to comment Share on other sites More sharing options...
scarecrow Posted May 11, 2010 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 Link to comment Share on other sites More sharing options...
derxen Posted May 11, 2010 Author 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 Link to comment Share on other sites More sharing options...
K Bergen Posted May 11, 2010 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. Link to comment Share on other sites More sharing options...
ianw1974 Posted May 12, 2010 Share Posted May 12, 2010 You can mount ext2/ext3 under Windows. http://www.fs-driver.org/ Link to comment Share on other sites More sharing options...
derxen Posted May 16, 2010 Author 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now