Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Aug 2000 13:15:29 -0500 (CDT)
From:      Mike Meyer <mwm@mired.org>
To:        Jan Pfeifer <janpf@iname.com>
Cc:        questions@freebsd.org
Subject:   allow users to mount CD
Message-ID:  <14744.14145.199363.850926@guru.mired.org>
In-Reply-To: <51682104@toto.iv>

next in thread | previous in thread | raw e-mail | index | archive | help
Jan Pfeifer writes:
> How do I let users mount a CD, or any other mount point ?

This question was answered just last week. Basically, you add
"vfs.usermount=1" to /etc/sysctl.conf (creating it if you need to),
chmod the cd devices to mode 660, put the users you want to be able to
mount things in group operator (which owns the CD devices by default;
fix that or use the group that owns them instead if this isn't the
case), then reboot the system.

Users in group operator can then mount cds on directories *they* own.

> ps2.: I wanted to avoid to make a suid script to do this ...

Suid scripts are a very bad idea, so that's a good thing to avoid. If
the above doesn't work, make it a C program instead of a script.

	<mike


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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