To do so, I need to be able to create a "raw" disk image as a passthrough to the actual USB device. I need to boot a USB flash drive in VirtualBox. The moment you unplug the device and plug it back in, it loses the permissions. ![]() What I need to do is give rw access to the operator as well and it's not as simple as just chmod 660 /dev/disk5. It has root:operator ownership and rw access limited to root and r access to operators only (this is why you must issue commands that modify the device as sudo). If I check the permissions of it: $ ls /dev/disk5*īrw-r- 1 root operator 1, 15 May 15 08:35 /dev/disk5īrw-r- 1 root operator 1, 16 May 15 08:35 /dev/disk5s1īrw-r- 1 root operator 1, 17 May 15 08:35 /dev/disk5s2 In other words, I need to grant the user read/write access to a USB device identified by diskutil which is /dev/diskX where X is some integer.įor example, I insert a USB flash drive and according to diskutil it's identifier is /dev/disk5. I need to find out how to set the permissions of a USB flash drive at the device (not filesystem) level.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |