"eject" command only works for root

Ask a Question related to Debian, Design and Development.

  1. #1

    Default "eject" command only works for root

    Dear all,

    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.

    regards,
    Robert


    --
    To UNSUBSCRIBE, email to [email]debian-user-request@lists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmaster@lists.debian.org[/email]
    Robert Storey Guest

  2. Similar Questions and Discussions

    1. xmlParse() claiming "document root missin"
      In another thread previously I tried to address this issue. Somebody claimed that removing the term PUBLIC from my internal DOCTYPE declaration...
    2. Configuring JRUN's "root directory"
      Is there a way to configure JRUN so it won't necessarily use cfusion.war as the root directory? We'd like to be able to have a directory...
    3. "Weld" command in "Corel Draw"
      Hi there: I'm new to Illustrator but have used Corel Draw in the past. In Corel Draw there was a "Weld" command. What this did was create a drawing...
    4. copying value of DDL in a Datagrid "pre-edit command" to value in "post edit command"
      Hi all! I have Datagrid. Within that datagrid I have a drop down list that I set up some values in (a "collection") I set up an edit command...
    5. How command "manpath" works?
      I downloaded j2sdk from SUN and extracted it to /usr/local and I found the /usr/local/j2sdk/man is in the list of command "manpath" But I haven't...
  3. #2

    Default Re: "eject" command only works for root

    Quoting Robert Storey <y2kbug@ms25.hinet.net>:
    > Dear all,
    >
    > 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.
    >
    Dear you,

    Does the user have access to the device pointed by /dev/cdrom ? Usualy, the user
    has to be a member of group "cdrom".

    Francois.


    --
    To UNSUBSCRIBE, email to [email]debian-user-request@lists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmaster@lists.debian.org[/email]
    fbottin@free.fr Guest

  4. #3

    Default Re: "eject" command only works for root

    sudo addgroup $USER cdrom

    On Thursday 31 July 2003 14:02, Robert Storey wrote:
    > Dear all,
    >
    > 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.
    >
    > regards,
    > Robert

    --
    To UNSUBSCRIBE, email to [email]debian-user-request@lists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmaster@lists.debian.org[/email]
    Paul Brossier Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139