Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

So if i do eject on my machine, it works exactly as expected, however, if i ssh into the machine next to me, and do the same thing, it does not work...

my computer:

eject: using default device `cdrom'
eject: device name is `cdrom'
eject: expanded name is `/dev/cdrom'
eject: `/dev/cdrom' is a link to `/dev/sr0'
eject: `/dev/sr0' is not mounted
eject: `/dev/sr0' is not a mount point
eject: checking if device "/dev/sr0" has a removable or hotpluggable flag
eject: `/dev/sr0' is not a multipartition device
eject: trying to eject `/dev/sr0' using CD-ROM eject command
eject: CD-ROM eject command succeeded

other computer:

eject: using default device `cdrom'
eject: device name is `cdrom'
eject: expanded name is `/dev/cdrom'
eject: `/dev/cdrom' is a link to `/dev/sr0'
eject: `/dev/sr0' is not mounted
eject: `/dev/sr0' is not a mount point
eject: checking if device "/dev/sr0" has a removable or hotpluggable flag
eject: `/dev/sr0' is not a multipartition device
eject: unable to open `/dev/sr0'

if i look in the /dev/ dir, then i find cdrom which is a symlink to sr0 - as mentioned by the verbose outputs of eject -v. On my machine, if i try and look at it, if the drive is open, it will close it, and then give this:

$ less sr0
sr0 is not a regular file (use -f to see it)

so

$ less -f sr0
sr0: No medium found

but if i do it on the other computer,

$ less -f sr0
sr0: Permission denied

so i look at the files more, and get this on both machines:

$ ls -la sr0
brw-rw----+ 1 root cdrom 11, 0 Nov 12 10:13 sr0

Does anyone know a way around this? I do not have root access.

If i log into a computer graphically, and then ssh from another machine, i can eject drive remotely, but only if i'm already logged in to the computer.

share|improve this question

migrated from stackoverflow.com Nov 23 '12 at 16:26

This question came from our site for professional and enthusiast programmers.

    
I think it is bad for you to mess around like that ;) and btw wrong se : ) –  fatfredyy Nov 23 '12 at 15:55
add comment

2 Answers

Try running groups | grep -o cdrom on the other computer.
If "cdrom" is not printed then you probably have to get put in that group to have access to the cd drive. You will have to ask someone with permissions to add you.

share|improve this answer
    
It's not printed, but i still have access to eject the drive on the machine i'm graphically logged into... –  will Nov 26 '12 at 13:04
    
Does it print in graphical login using a terminal emulator? –  ShadowNinja Nov 27 '12 at 16:29
    
nope, the only groups i'm members of are the various user groups. –  will Nov 27 '12 at 19:38
add comment

If you are logged in graphically, your desktop manager may have fooled around with /dev/sr0's ACL, as indicated by the + sign.

So you have more rights than on the other PC.

share|improve this answer
    
Is there anyway to repeat this Tom foolery without being root? –  will Nov 26 '12 at 9:50
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.