Re: "eject" command only works for root

From: Shawn Lamson (shawn.lamson_at_verizon.net)
Date: 07/31/03

  • Next message: fbottin_at_free.fr: "Re: "eject" command only works for root"
    Date: Thu, 31 Jul 2003 09:31:11 -0400
    To: debian-user@lists.debian.org
    
    

    On Thu, July 31 at 9:02 PM EDT
    Robert Storey <y2kbug@ms25.hinet.net> wrote:

    >The "eject" command (which opens the CD tray) works as expected if I
    >run it as root. But as a common user, typing "eject" on the command
    >line brings up this error message:
    >
    > bob@sonic:~> eject
    > eject: unable to find or open device for: `cdrom'
    >
    >I took a look at the permissions for "eject":
    >
    > bob@sonic:~> ls -l /usr/bin/eject
    > -rwxr-xr-x 1 root root 14332 Apr 25 2001
    > /usr/bin/eject
    >
    >Common users can mount/unmount the drive - this is from /etc/fstab:
    >
    > /dev/cdrom /cdrom iso9660 ro,user,noauto 0
    >
    > 0
    >
    >So I'm perplexed as to what is preventing common users from being able
    >to open the drive with the "eject" command.

    What about permissions for the device? Are you in its group?

    Shawn Lamson
    shawn.lamson@verizon.net

    -- 
    To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: fbottin_at_free.fr: "Re: "eject" command only works for root"