2 ms·
I don't think it's that easy. I'm really am not familiar with Plan 9, but I assume /dev 's analog folder is a privileged directory, where the new USB device wil
by kaba0 5y ago
I don't think it's that easy. I'm really am not familiar with Plan 9, but I assume /dev 's analog folder is a privileged directory, where the new USB device will appear dynamically. On what basis will my user have permission to do anything with it? You need some logic there for eg. a block device available through these USB ports can have a less privileged owner. But just because it is a file/namespace, it is not a solved problem at all.
- drybjed 5y agoAccording to the Plan 9 Desktop Guide[1], when you plug your USB stick and the OS supports the filesystem, it will be mounted in the /shr directory. From there you can bind-mount stuff you need to wherever. Alternatively, you can mount the disk using the fileserver (dossrv for DOS, etc.) wherever you need. Your user will have access to devices when it's included in the required system groups, 'sys' IIRC. It might get added to that group when it is created by the "hostowner" user, usually "glenda". If you don't know Plan 9, you should check out the linked user guide, it's an excellent introduction to the concepts. [1]: https://pspodcasting.net/dan/blog/2019/plan9_desktop.html https://pspodcasting.net/dan/blog/2019/plan9_desktop.html