Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Jan 2004 12:11:18 +1100
From:      Gautam Gopalakrishnan <ggop@madras.dyndns.org>
To:        Chris Pressey <cpressey@catseye.mine.nu>
Cc:        stacey@vickiandstacey.com
Subject:   Re: Mount /cdrom as non-root user - does this actually work for anyone?
Message-ID:  <20040104011118.GA71333@madras.dyndns.org>
In-Reply-To: <20040103171241.209d23f4.cpressey@catseye.mine.nu>
References:  <20040104005352.GI6131@crom.vickiandstacey.com> <20040104005929.GA70684@madras.dyndns.org> <20040103171241.209d23f4.cpressey@catseye.mine.nu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jan 03, 2004 at 05:12:41PM -0800, Chris Pressey wrote:
> On Sun, 4 Jan 2004 11:59:29 +1100
> Gautam Gopalakrishnan <ggop@madras.dyndns.org> wrote:
> 
> > On Sun, Jan 04, 2004 at 12:53:52AM +0000, Stacey Roberts wrote:
> > > Hello,
> > > As root I can mount and read the CD fine.., checking for non-root
> > > user: exit
> > > ~ $ mount /cdrom
> > > cd9660: /dev/acd0c: Operation not permitted
> > > ~ $ mount -t cd9660 /dev/acd0c ~/cdrom
> > > cd9660: /dev/acd0c: Operation not permitted
> > > ~ $
> > > 
> > > Attempting to mount to mount-point in user home dir:
> > > ~ $ cd ~
> > > ~ $ pwd
> > > /home/stacey
> > > ~ $ ls -ltra cdrom
> > > total 6
> > > drwxr-xr-x 2 stacey stacey 512 Jan 3 23:50 ./
> > > drwxr-xr-x 31 stacey stacey 2560 Jan 3 23:50 ../
> > > ~ $ mount -t cd9660 /dev/acd0c ~/cdrom
> > > cd9660: /dev/acd0c: Operation not permitted
> > > ~ $
> > 
> > chmod +s /sbin/umount /sbin/mount
> > 
> > works fine for me (without any other changes necessary). Don't know
> > if it's the recommended procedure though.
> > 
> > Gautam
> 
> I worked around this a different way: I chown'd /dev/acd0c to the uid of
> the user.  Probably *not* the recommended procedure :)

I guess a cleaner solution is to add the user to the operator group
and chmod to 664.

Gautam



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