This is Gentoo's testing wiki. It is a non-operational environment and its textual content is outdated.
Please visit our production wiki at https://wiki.gentoo.org
Talk:Mdev/Automount USB
This is a talk page. Please add newer comments below older ones, and sign your comments using four tildes (
~~~~
).
When adding a new section (at the bottom of the page), please mark it as "open for discussion" by using {{talk|open}}
so it will show up in the list of open discussions.busybox ash?
Why not just /bin/sh like uncle POSIX says? - Michał Górny 09:57, 12 July 2012 (UTC)
Answer: As mentioned in the "Constraints" section, the only guarantee on an mdev-based system is that it's running busybox, which mdev is part of. That in turn implies that the only guaranteed common shell is "busybox ash". On my system, /bin/sh is a symlink to /bin/bash. I could write scripts with bash-specific features, and it might work fine on my system. That script might not run on someone else's machine with /bin/sh being a symlink to another shell. If you want to customize the script for your machine, or use another shell or your own custom apps, feel free to do so. Remember that I'm trying to come up with scripts that are portable to as many mdev-based machines as possible, which means using "busybox ash" --Walter Dnes 02:55, 11 August 2012 (UTC)
username in sudoers
wouldn't it make sense to re-use the plugdev group here and replace USERID with %plugdev? also, I'm not sure if HOSTNAME makes sense here, if you want to mount/umount something from USB, you're usually on localhost - Christoph Mende 16:56, 30 July 2012 (UTC)
Answer: Like you said "usually". I don't want to restrict the flexibility of the system. Also, this would mean that all members of plugdev would get unmount permission on inserted USB devices. There may be situations where the admin might want one or more user to be able to read/write to an inserted device in /media, but not be able to unmount it. --Walter Dnes 02:55, 11 August 2012 (UTC)