From owner-freebsd-questions@FreeBSD.ORG Sun Jul 4 13:10:52 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 C942616A4CE for ; Sun, 4 Jul 2004 13:10:52 +0000 (GMT) Received: from virgo.i-cable.com (virgo.i-cable.com [203.83.111.75]) by mx1.FreeBSD.org (Postfix) with SMTP id 9D00843D1F for ; Sun, 4 Jul 2004 13:10:51 +0000 (GMT) (envelope-from jobse@tintin.kau.se) Received: (qmail 14405 invoked by uid 507); 4 Jul 2004 13:10:49 -0000 Received: from jobse@tintin.kau.se by virgo by uid 504 with qmail-scanner-1.21 (clamdscan: 0.71. Clear:RC:1(61.10.37.178):. Processed in 0.807758 secs); 04 Jul 2004 13:10:49 -0000 Received: from cm61-10-37-178.hkcable.com.hk (HELO mail.ezrs.com) (61.10.37.178) by 0 with SMTP; 4 Jul 2004 13:10:44 -0000 Received: (qmail 6977 invoked by uid 509); 4 Jul 2004 13:11:41 -0000 Received: from jobse@tintin.kau.se by mail by uid 506 with qmail-scanner-1.22 Clear:RC:1(213.66.223.55):SA:0(0.0/6.0):. Processed in 4.259794 secs); 04 Jul 2004 13:11:41 -0000 X-Spam-Status: No, hits=0.0 required=6.0 Received: from unknown (HELO ?213.66.223.55?) (jobse@yapost.com@213.66.223.55) by 0 with SMTP; 4 Jul 2004 13:11:36 -0000 From: jobse To: Mikko =?ISO-8859-1?Q?Ty=F6l=E4j=E4rvi?= , freebsd-questions@freebsd.org In-Reply-To: <20040703145317.A12064@sotec.home> References: <1088888955.680.15.camel@localhost.localdomain> <20040703145317.A12064@sotec.home> Content-Type: text/plain; charset=ISO-8859-1 Message-Id: <1088947060.95947.6.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Sun, 04 Jul 2004 15:17:40 +0200 Content-Transfer-Encoding: 8bit Subject: Re: allowing users to mount cdrom X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: jobse@yapost.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jul 2004 13:10:52 -0000 hey! On Sat, 2004-07-03 at 23:55, Mikko Työläjärvi wrote: > On Sat, 3 Jul 2004, jobse wrote: > > > Dear List, > > When trying to mount the cdrom I get Operation not permitted. > > sysctl: vfs.usermount=0(what does that mean and how can I *permanently* > > change it to 1) > > I'd rather not set the sticky bit on mount/umount if I mustn't. > > > > suggestions? > > /jobse > > vfs.usermount allows non-root users to perform a mount, provided that > they have sufficient access to both device being mounted and the > mountpoint. Users won't be permitted to do other privileged > operations, such as loading kernel modules, so in some cases the mount > may still fail. k! > > To set vfs.usermount=1 on every boot, add it to /etc/sysctl.conf (see > sysctl.conf(8)). Did that. > > One way to give access to assorted files and devices to the user > currently logged in on the local console is to use /etc/fbtab (see > fbtab(5)), thus: > > /dev/ttyv0 0600 /dev/acd0 > /dev/ttyv0 0755 /cdrom That was the trick! thanx > ... I dunno, I'm not using a GUI login thingy). Me neither. > $.02, > /Mikko > jobse