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

next in thread | previous in thread | raw e-mail | index | archive | help

--ELVYuRnMxQ5nnKRy
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello,

----- Original Message -----
From: "Gautam Gopalakrishnan <ggop@madras.dyndns.org>"
To: To Chris Pressey
Date: Sun, 04 Jan, 2004 01:11 GMT
Subject: Re: Mount /cdrom as non-root user - does this actually work for an=
yone?

> 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:
> >=20
> > > 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
> > > > ~ $
> > > >=20
> > > > 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
> > > > ~ $
> > >=20
> > > chmod +s /sbin/umount /sbin/mount
> > >=20
> > > works fine for me (without any other changes necessary). Don't know
> > > if it's the recommended procedure though.
> > >=20
> > > Gautam
> >=20
> > I worked around this a different way: I chown'd /dev/acd0c to the uid of
> > the user.  Probably *not* the recommended procedure :)
>=20
> I guess a cleaner solution is to add the user to the operator group
> and chmod to 664.
>=20

Err.., but this *is* part of the procedure in the HandBook (http://www.free=
bsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#USER-FLOPPYMOUNT) that doe=
s not work for me..,=20

Regards,

Stacey

> Gautam
>=20
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o=
rg"

--=20
Stacey Roberts
B. Sc (HONS) Computer Science

Web: www.vickiandstacey.com

--ELVYuRnMxQ5nnKRy
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8

iQEVAwUBP/dq2X3Q4C/Onfd9AQF0+gf9F9gG/yL2HNthka2FmLD0TJ4vIhG+oNpa
8+uYeQoI0Hl7ptyXP/0eZgfW7YfSQjKZcj6+oOgHDANzjpac+BlQ1YMaaoepcWSA
cu1ivIusKdw3/yeZ3VYc3reFD9M6MqivOjcn39zl2CE9ciQpOpkivCGsBF1dtvng
n35G6zGgP7yVL2U/DOLByEJyS9JrH6uHC0yi9yRhix9+epp2Be2zCw7BgHLGf8xL
OvbNHMGUO7AytD0HgxI3G7/76pmHr6fm81eUHn+wOVoGA9jW3K8C5xTt9rm+PsvD
2Re3pzBu2BwLpQbTs3nykbT9VsCEnx2+EKgIja08I5XI1yrn/AJ7mg==
=M2uW
-----END PGP SIGNATURE-----

--ELVYuRnMxQ5nnKRy--



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