Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 04 Jul 2004 15:17:40 +0200
From:      jobse <jobse@tintin.kau.se>
To:        Mikko =?ISO-8859-1?Q?Ty=F6l=E4j=E4rvi?= <mbsd@pacbell.net>, freebsd-questions@freebsd.org
Subject:   Re: allowing users to mount cdrom
Message-ID:  <1088947060.95947.6.camel@localhost.localdomain>
In-Reply-To: <20040703145317.A12064@sotec.home>
References:  <1088888955.680.15.camel@localhost.localdomain> <20040703145317.A12064@sotec.home>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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