Granting user access rights to "cardctl eject"

Posted on 2006-06-07
Last Modified: 2010-04-20
Some card types cannot be safely hot ejected.  It is  recommended that always use ``cardctl eject'' before ejecting.  I would like to grant users access rights to execute "cardctl eject" instead of having to sudo the command or granting  privilege rights to users.   /sbin/cardctl has been setuid root(-rwsr-xr-x  1 root root 19133 Feb 22  2005 /sbin/cardctl), and users have been added to 'disk' group.  It still got error message "ioctl(): Operation not permitted".  So I guess I'm missing something.  But I really have no clue!

Here are system infomation

OS: FC 3 2.6.12-1.1381

Any help on this would be greatly appreciated.


Question by:Jerryleo
    1 Comment
    LVL 1

    Accepted Solution

    chmod +s /sbin/cardctl might work, or try modifying /etc/sudoers so that the users have rights to sudo only for the purpose of cardctl, usually the syntax for /etc/sudoers is explained in the file, otherwise "man sudoers"

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
    I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
    This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

    746 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

    17 Experts available now in Live!

    Get 1:1 Help Now