[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] ejecting mounted cdroms...




Hi all,

OK - from Alan Cox's site - 2.2.18 release notes:

IDE CDROM
[...]Allow root to open the CDROM door at all times.[...]

I'm running a vanilla 2.4.1 on RH7. I've got a machine running vanilla
2.2.18 as well.

The 2.2.18 machine will not allow a normal user to eject the cdrom
whilst mounted with the button - 'eject' umounts and ejects the disk.
Root can eject a mounted disk with the button.

However, using 2.4.1 I can as my normal user (baz) eject (using the
button on the drive) a CDROM I mounted - root can do the same.

I can't explain why I can eject (with button) as a user.

I also can't see why Alex gets different behaviour to me, with the
same kernel (2.4.1).

Baz.


Guennadi Liakhovetski writes:
 > Hi again, Baz, Alex and all
 > 
 > Looks like Alex refutes Barrie's suggestion (?). I tried with 2.2.18 and
 > 2.4.0 - both allow. Although you can get some errors in /var/log/messages
 > if, say, you try accessing the CD with an open tray. SuSE7.0. I used 6.3
 > before, could it have changed with the distro? (same kernels) What distros
 > are you using? However, don't remember exactly that I was unable to do
 > this with 6.3 - I just assumed so and never tried... There is a macro in
 > the ide-cd.c NO_DOOR_LOCKING - you have to #define it to 1 to get my sort
 > of behaviour - I didn't do it. It tests #if NO_DOOR_LOCKING. There are
 > also lines in ide-cd.h:
 > 
 > #ifndef NO_DOOR_LOCKING
 > #define NO_DOOR_LOCKING 0
 > #endif
 > 
 > ???
 > 
 > Thanks
 > Guennadi
 > 
 > On 19 Feb 2001, Alex Hudson wrote:
 > 
 > > On 19 Feb 2001 17:54:14 +0000, Guennadi Liakhovetski wrote:
 > > > I always was sure one can't eject mounted CDs manually (or by
 > > > 'eject')... However, yesterday it turned out that I could... I press the
 > > > button - CD ejects, mount still shows it mounted, ls /cdrom also lists
 > > > files (cached) happily... What's wrong?
 > > 
 > > 
 > > Hmm... doesn't do that over here (2.4.1). I suspect if you can do it, it
 > > must be an option (not one I've obviously come across)
 > > 
 > > Although, I can mount the same device many times...
 > > 
 > > . are you sure you haven't got supermount, or some other weirdoism??
 > > 
 > > Cheers,
 > > 
 > > Alex.
 > > ---------------------------------------------------------------------
 > > Sheffield Linux User's Group - http://www.sheflug.co.uk
 > > To unsubscribe from this list send mail to
 > > - <sheflug-request [at] vuw.ac.nz> - with the word 
 > >  "unsubscribe" in the body of the message. 
 > > 
 > >   GNU the choice of a complete generation.
 > > 
 > > 
 > > 
 > 
 > ___
 > 
 > Dr. Guennadi V. Liakhovetski
 > Department of Applied Mathematics
 > University of Sheffield, U.K.
 > email: G.Liakhovetski [at] sheffield.ac.uk
 > 
 > 
 > 
 > 
 > 
 > ---------------------------------------------------------------------
 > Sheffield Linux User's Group - http://www.sheflug.co.uk
 > To unsubscribe from this list send mail to
 > - <sheflug-request [at] vuw.ac.nz> - with the word 
 >  "unsubscribe" in the body of the message. 
 > 
 >   GNU the choice of a complete generation.
 > 
 > 

-- 
Barrie J. Bremner

email: baz at barriebremner.com | OpenPGP ID: 5164F553

http://barriebremner.com/
[Contact information available at website]

   "Linux? Is that some kind of MacOS?"
      -- BT technical support

---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word 
 "unsubscribe" in the body of the message. 

  GNU the choice of a complete generation.