Talk:Mdev/Automount USB

From Gentoo Wiki
Jump to:navigation Jump to:search
Note
This is a Talk page - please see the documentation about using talk pages. Add newer comments below older ones, sign comments using four tildes (~~~~), and indent successive comments with colons (:). Add new sections at the bottom of the page, under a heading (== ==). Please remember to mark sections as "open for discussion" using {{talk|open}}, so they 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)