Jump to content

usb stick on two linux machines [solved]


derxen
 Share

Recommended Posts

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

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

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 by scarecrow
Link to comment
Share on other sites

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 by derxen
Link to comment
Share on other sites

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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...