On Tue, 11 Sep 2012 17:55:41 -0400, Walter Dnes wrote: > > > I goto the root console which is always open on one of my desktops > > > & enter 'musb', which is a Bash alias for a 'mount' command; > > > > Leaving aside the implications of leaving open a root console, > > My scripts use pmount and pumount, which are hard-coded to only > mount/unmount devices in directory /media.
It's the idea of leaving a root console open for all to access that is the issue, not the commands you run in it. > > that mounts the stick as root. That's fine for a FAT filesystem as > > you can specify mount options to make it world-readable, but what > > about an external drive formatted with ext? What about an external > > drive with multiple partitions? > > pmount/pumount to the rescue. See... > http://manpages.ubuntu.com/manpages/natty/man1/pmount.1.html I know about pmount, I use it myself. It mounts as the user running it, which is fine from a (non-root) terminal, but udevd is running as root, as are any programs it runs. -- Neil Bothwick Top Oxymorons Number 40: Same difference
signature.asc
Description: PGP signature

