Find the answer to your Linux question:
Results 1 to 9 of 9
Hi, I'm running Arch/Gnome and I have a simple question. How can a user(not root) get permission to eject a cd/dvd. I can mount and umount the cd/dvd and usb ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Enthusiast gerard4143's Avatar
    Join Date
    Dec 2007
    Location
    Canada, Prince Edward Island
    Posts
    714

    Arch Linux/Gnome Eject Permission denied


    Hi,

    I'm running Arch/Gnome and I have a simple question. How can a user(not root) get permission to eject a cd/dvd.
    I can mount and umount the cd/dvd and usb for any user but I can't figure out how to eject working for non-root users...Any suggestions..
    Make mine Arch Linux

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    i just ran eject command, and my drive popped open, not sure what your issue is

    these are my groups
    disk wheel log audio users pulse-access pulse-rt ccooper

  3. #3
    Linux Enthusiast gerard4143's Avatar
    Join Date
    Dec 2007
    Location
    Canada, Prince Edward Island
    Posts
    714
    My problem is trying to use the pop-up menu eject...

    i.e If I have the cd mounted and right click on the associated desktop icon I get a pop-up menu and one of the options is eject. This options works while logged in as root but not for non-root..
    Make mine Arch Linux

  4. #4
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    i just popped in a disc and right clicked the icon on the desktop, hit eject, and it worked

  5. #5
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    Is your user a member of the optical group?

  6. #6
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    i was wondering if that was it, but i'm not a member of that group and I can eject, so i didn't bother suggesting it

  7. #7
    Linux Enthusiast gerard4143's Avatar
    Join Date
    Dec 2007
    Location
    Canada, Prince Edward Island
    Posts
    714
    I tried the eject console utility and it worked logged in as a non-root user.

    Here's the groups for the user in question

    cat group | grep gerard | sort

    Code:
    audio::92:gerard
    optical::93:hal,gerard
    storage:x:95:hal,gerard
    users::100:gerard
    Make mine Arch Linux

  8. #8
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    Do you have an entry in /etc/fstab for your cdrom/dvd device? If so, comment it out.

  9. #9
    Linux Enthusiast gerard4143's Avatar
    Join Date
    Dec 2007
    Location
    Canada, Prince Edward Island
    Posts
    714
    Quote Originally Posted by reed9 View Post
    Do you have an entry in /etc/fstab for your cdrom/dvd device? If so, comment it out.
    Just tried that and it behaves the same. It must be some setting in Gnome because I can access the eject form the console and it works from a non-root user..
    Make mine Arch Linux

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •