SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Do we understand each other ?
All I have now is well known automounting in X/KDE enviroinment using DBUS/HAL.
It would be fine to have this kind of machinery working in pristine console, fluxbox or xfce too.
Does autofs use HAL though? If not it seems like overkill to have two different automounting utilities coexisting on one machine. Does autofs affect autmounting using HAL in KDE/XFCE/etc.?
(Normally I would just look this up, but a quick google search didn't help)
It is still redundant for mounting removable devices on a HAL-equipped system. HAL is already working for him, he simply needs a HAL client to do the actual mounting. Why introduce another daemon into the equation?
But ivman is running as a daemon all the time, the same as Autofs. I guess I should have asked which other clients are there that don't run as a daemon.
I use ivman and autofs but I guess I could use just ivman alone for most of what I do.
This is question about mounting from console and not needing to become root or whoever else.
What could be done about mount(8)? Can it be explicitly stated, that every user of any device being a member of plugdev group could mount a device?
Please, do not post that I should add an fstab entry for a device with option "group=plugdev". Because then you will have to add an entry to /dev/every /dev/device /dev/name /dev/there /dev/could /dev/appear.
This is question about mounting from console and not needing to become root or whoever else.
What could be done about mount(8)? Can it be explicitly stated, that every user of any device being a member of plugdev group could mount a device?
Please, do not post that I should add an fstab entry for a device with option "group=plugdev". Because then you will have to add an entry to /dev/every /dev/device /dev/name /dev/there /dev/could /dev/appear.
Thanks.
pmount allows any normal user to mount removable devices or those listed under /etc/pmount.allow. This is assuming of course the devices are not already mounted, not locked, not listed in /etc/fstab, etc (see man page for the full policy).
If you use the pmount slackBuild the pmount binary will be SUID with only execute perms for root and the group plugdev.
pmount is just a wrapper around the mount program.
This is question about mounting from console and not needing to become root or whoever else.
What could be done about mount(8)? Can it be explicitly stated, that every user of any device being a member of plugdev group could mount a device?
Please, do not post that I should add an fstab entry for a device with option "group=plugdev". Because then you will have to add an entry to /dev/every /dev/device /dev/name /dev/there /dev/could /dev/appear.
I think you're wanting a combination of ivman (a generic hal event handler) and pmount.
I must admit that I have *very* little experience with them, as I've just not seen much need for them, but I'm pretty sure that's what you're wanting.
ivman is only needed if you want a device to be automatically mounted upon insertion. You can have other commands run based upon HAL events as well.
pmount is the program that does the mounting (through mount), so if you are OK with having a user issue a command to mount the device then pmount is all you need.
Edit:
Do note that pmount-hal, which comes with pmount, will automatically detect device information as given be HAL. This just means that you don't necessarily have to enter all the mount options when mounting.
Last edited by shadowsnipes; 05-13-2008 at 10:11 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.