Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Mar 2004 16:14:53 +0930
From:      Malcolm Kay <malcolm.kay@internode.on.net>
To:        jaymo@cromagnon.cullmail.com, freebsd-questions@freebsd.org
Subject:   Re: automounting cd-rom & cd-rw devices
Message-ID:  <200403281614.53868.malcolm.kay@internode.on.net>
In-Reply-To: <200403272013.40447.jaymo@cromagnon.cullmail.com>
References:  <200403272013.40447.jaymo@cromagnon.cullmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday 28 March 2004 11:43, Jay Moore wrote:
> I have a FreeBSD 4.9 system; I am also running KDE...
>
> I'm building this system for my son (college student) who has been (unt=
il
> now) a Windoze user :(   I'm trying to set this sytem up so that he'll =
be
> able to use it with a minimum of calls to tech support (me). One of the
> issues I am struggling with is how to make the cd-rw & cd-rom devices
> usable without requiring him to start a root shell and mount/umount the=
se
> devices.
>
=2E..
> 1) Should I automount cd's?

Depends what you mean by auto-mount

>
> 2) What is the "best way" to allow ordinary users to mount cd's?
>

The best way is inevitably a matter of opinion.
But it can be done without installing any additional ports.

First:
# sysctl vfs.usermount=3D1
allows users to mount and then unmount drives provided other things=20
are in order. You can make this happen during the normal boot by adding=20
  vfs.usermount=3D1
to /etc/ sysctl.conf

The user must also have suitable permissions on the drive i.e. rw
on say /dev/acd0c. This of course is a one time operation by root.

And he must mount on a mount point for which he has rwx permissions.
He may also need to own the directory (I'm not sure about this).=20
He might, for example, create a mount point
under his home directory, say /home/fred/mnt

Now he should be able to mount the cdrom
% /sbin/mount_cd9660 /dev/acd0c /home/fred/mnt

and unmount with
% /sbin/umount /home/fred/mnt


Malcolm




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403281614.53868.malcolm.kay>