lkml.org 
[lkml]   [2001]   [Apr]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: I can eject a mounted CD
From
Date
On 20 Apr 2001 09:49:55 +0200, Giuliano Pochini wrote:
>
> >> [Giu@Jay Giu]$ eject /mnt/cdmac/ umount: /dev/sr0 is not in the fstab (and
> >> you are not root) eject: unmount of `/dev/sr0' failed
>
> Eject(1) is suid.

No, it's not on proper installations.
$ ls -l /usr/bin/eject
17k -rwxr-xr-x 1 root root 16k Jan 29 01:14
/usr/bin/eject

You need to have write access to the device to eject it.
I guess you use something like /dev/cdrom as the device for the mount
point /mnt/cdmac, /dev/cdrom being a symlink to /dev/sr0.
Try 'eject /dev/cdrom' you'll probably have more luck.

<snip>

Cheers

--
/Bastien Nocera
http://hadess.net

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:27    [from the cache]
©2003-2011 Jasper Spaans