How to enable unprivileged user  mount and unmount removable devices

Posted on 2006-05-24
Last Modified: 2010-04-20
I need to allow unprivileged users to mount/unmount following removable devices  on FC 3 box,

     2. PCMCIA CF cards
     3.USB drives

And eanble unprivileged users to excute cardctl with all commands not only informational commands, such as cardctl eject.

Your help appreciated

Question by:Jerryleo
    LVL 31

    Expert Comment

    Normally that could be achieved with a notation in the fstab file, in the fourth column, I believe. Insert "users" (or possibly "user") after "noauto" (if that comment is there) with a comma between the words. All this on the line for the device you are dealing with.
    LVL 5

    Expert Comment

    You could also use the pmount tool
    LVL 1

    Expert Comment

    I think he want either :

    /dev/hdd3 /mnt/foo ext3 users
    /dev/hdd3 /mnt/foo ext3 user

    First oneallow any user to unmount a usermount filesystem and second allow only the userwhomounted it to umount it.

    This is dure good for cdrooms and usb drives, not sure for pcmcia, i don t own one
    LVL 2

    Expert Comment

    Here's how mine is setup:

    For CDROM
    /dev/hdc         /mnt/cdrom       auto        noauto,user,ro   0   0

    For USB
    /dev/sda1        /external        auto        noauto,user      0   0

    You will need to change the drive letter (/dev/hdc or /dev/sda1) to whichever number or letter is appropriate for your machine.  By leaving the filesystem type to "auto", the system will autodetect what the drive is formatted as, and should load it automatically.  If you did something like this, make sure to create the /external directory for this to work.

    I'm still researching the question on the PCMCIA CF.  Some of the stuff I'm finding suggests it loads as /dev/hde#, but that doesn't make much sense to me.



    Author Comment

    Thanks for all kind help

    pmout requirements hal >= 0.5.2 hal-storage >= 0.5.2.  My box doesn't fit the requirements. I have to upgrade a lot of componets, and it's too complex to do it for me.

    There is no static entries for removalbe devices in fstab.  fstab-sync updates fstab  and  create/remove mount points in /media in response to HAL events.  The default  policy for CDROM and USB work fine.  Now I  just need to add/modify the default policy for PCMCIA CF  card. I check man page for fstab-sync. But I still have no idea how to add/modify the default policy for PCMCIA CF  card.

    Does anyone can tell me how to do it?

    LVL 5

    Accepted Solution

    There also is ivman which could be of help (it also relies on the HAL layer).

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
    I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension ( This reminded me of questions tha…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now