file permissions on usb drive
i plugged in a usb thumb drive into an ubuntu machine and wrote a test file to it. then i changed permissions for the file so that no one could read, write, or execute it. however, when i unplugged the device and then plugged it in again, the permissions i had set were not there anymore. is there some way to retain permissions on files even when the usb drive has been unplugged? any suggestions on how permissions can be retained on other kinds of devices, such as floppy, zip, cd, etc?
|
AFAIK, to retain permissions, you'll have to reformat the drive with a file system that supports permissioning. You could also tar the file(s) that you want to retain permissions to, and store the tar.* on the USB drive, but that gets to be more of a hassle.
|
the usb thumb drives mostly come with fat32 filesystem which does not have any concept of permissions. You could just save it as it...I have not tried creating another filesystem on the usb thumb drive. The same goes with tar. Although, you can easily maintain permissions on a CD.
Tux, |
Quote:
|
You could always create two partitions on the thumb drive, one with FAT & other with ext2/3. Your permissinos will be preserved on ext2/3 file system.
|
All times are GMT -5. The time now is 07:04 AM. |