From owner-freebsd-questions@FreeBSD.ORG Wed Oct 20 17:08:01 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 486CC16A4CE for ; Wed, 20 Oct 2004 17:08:01 +0000 (GMT) Received: from outbox.allstream.net (outbox.allstream.net [207.245.244.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA90843D2F for ; Wed, 20 Oct 2004 17:07:58 +0000 (GMT) (envelope-from epilogue@allstream.net) Received: from localhost (mon-pq69-045.dial.allstream.net [216.123.128.173]) by outbox.allstream.net (Allstream MTA) with SMTP id 01922B4927; Wed, 20 Oct 2004 13:07:56 -0400 (EDT) Date: Wed, 20 Oct 2004 13:07:46 -0400 From: epilogue To: Steven Friedrich Message-Id: <20041020130746.63b6e0af@localhost> In-Reply-To: <200410201217.02187.FreeBSD@insightbb.com> References: <200410201217.02187.FreeBSD@insightbb.com> X-Mailer: Sylpheed-Claws 0.9.12 (GTK+ 1.2.10; i386-portbld-freebsd4.10) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: Mounting data CD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Oct 2004 17:08:01 -0000 On Wed, 20 Oct 2004 12:17:02 -0400 Steven Friedrich wrote: > I'm trying to mount a data CD as a normal user. It works fine as > root, but I want average users to be able to do it. > > Here's the session: > % mount_cd9660 /dev/acd0c /cdrom > mount_cd9660: /dev/acd0c: Operation not permitted > % mount_cd9660 /dev/acd0c /mnt > mount_cd9660: /dev/acd0c: Operation not permitted > > I noticed in dev: > % ll /dev/*cd* > crw-rw-rw- 4 root operator 117, 0 Oct 16 19:14 /dev/acd0a > crw-rw-rw- 4 root operator 117, 0 Oct 16 19:14 /dev/acd0c > crw-rw-rw- 1 root operator 117, 8 Jun 15 2003 /dev/acd1c > crwxrwxrwx 2 root operator 15, 0 Oct 16 19:14 /dev/cd0a > crwxrwxrwx 2 root operator 15, 2 Oct 16 19:14 /dev/cd0c > crw-r----- 2 root operator 29, 0 Oct 16 19:14 /dev/mcd0a > crw-r----- 2 root operator 29, 2 Oct 16 19:14 /dev/mcd0c > crw-rw-rw- 4 root operator 117, 0 Oct 16 19:14 /dev/racd0a > crw-rw-rw- 4 root operator 117, 0 Oct 16 19:14 /dev/racd0c > crwxrwxrwx 2 root operator 15, 0 Oct 16 19:14 /dev/rcd0a > crwxrwxrwx 2 root operator 15, 2 Oct 16 19:14 /dev/rcd0c > crw-r----- 2 root operator 29, 0 Oct 16 19:14 /dev/rmcd0a > crw-r----- 2 root operator 29, 2 Oct 16 19:14 /dev/rmcd0c > crw-r----- 2 root operator 45, 0 Oct 16 19:14 /dev/rscd0a > crw-r----- 2 root operator 45, 2 Oct 16 19:14 /dev/rscd0c > crw-r----- 2 root operator 69, 0 Oct 16 19:14 /dev/rwcd0a > crw-r----- 2 root operator 69, 2 Oct 16 19:14 /dev/rwcd0c > crw-r----- 2 root operator 45, 0 Oct 16 19:14 /dev/scd0a > crw-r----- 2 root operator 45, 2 Oct 16 19:14 /dev/scd0c > crw-r----- 2 root operator 69, 0 Oct 16 19:14 /dev/wcd0a > crw-r----- 2 root operator 69, 2 Oct 16 19:14 /dev/wcd0c > > Yes, I've been changing permissions in an attempt to make it work. > > How would anyone know which device to use? > And why can't I get it to work by changing permissions? very recently bumped into this headache myself. you need to manually change the sysctl: from ---> vfs.usermount: 0 to -----> vfs.usermount: 1 and setting it in /etc/sysctl.conf should make it right automatically upon next boot. [warning: not sure if this next part is simply due to my inexperience] i found that the user was not able to mount to anything hanging directly off of '/' (ex. /mnt /cdrom /floppy) - even if i messed with the perms. to solve this, i created the desired mount points (simply empty directories) in that user's $HOME (with user ownership, group, and rwx perms). this solved the problem. just make sure that your users only try to mount to ~/mntpoint hth, epi > I've went thru the handbook and also Dru Lagvigne's (is that right?) > articles on OnLamp to no avail. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" >