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

Re: only root can unmount

On Mon, Dec 01, 2008 at 04:23:18AM +0000, T o n g wrote:
> Ahhhh! Thanks a lot for the comment Sven. I find the real reason:
> tong@helios:~$ grep dvd /etc/fstab
> /dev/dvd       /media/dvd       auto    users,noauto,exec,ro    0      0
> /dev/dvd /mnt/dvd auto user,noauto,exec,ro 0 0
>                        ^^^^
> tong@helios:~$ mount /media/dvd
> tong@helios:~$ umount /media/dvd && echo ok
> ok
> tong@helios:~$ mount /mnt/dvd
> tong@helios:~$ umount /mnt/dvd
> umount: only root can unmount /dev/dvd from /mnt/dvd
> I.e., the trick is not actually the name-du-jour of the DVD drive, but 
> the mount point -- under /mnt, no; under /media yes.

Why the 2 "/dev/dvd" entries? Pick one, but make sure the entry has
"users" not "user" :)

I contend that we are both atheists. I just believe in one fewer god
than you do. When you understand why you dismiss all the other
possible gods, you will understand why I dismiss yours.
                                           -- Stephen F Roberts

Reply to: