Date: Mon, 14 Aug 2000 15:14:04 +0200 From: Marc Silver <marcs@draenor.org> To: Lorin Lund <lorin_lund@yahoo.com> Cc: freebsd-questions <freebsd-questions@freebsd.org> Subject: Re: PCMCIA Ethernet - not recognized Message-ID: <20000814151404.B770@draenor.org> In-Reply-To: <20000814151113.A770@draenor.org>; from marcs@draenor.org on Mon, Aug 14, 2000 at 03:11:13PM %2B0200 References: <000701c005ee$ef3a3ae0$0900fea9@lorins.ild.telecom.com> <20000814151113.A770@draenor.org>
index | next in thread | previous in thread | raw e-mail
erk -- not my day today -- replied to the wrong message... my apologies.
:)
On Mon, Aug 14, 2000 at 03:11:13PM +0200, Marc Silver wrote:
> Hey there,
>
> As far as I know there isn't something like this in FreeBSD. However,
> please find attached a short c program written by Omachonu Ogali that
> allows normal users to mount the cdrom (you can obviously modify it to
> mount the floppy as well). To install it, simply do the following: (as
> root)
>
> cc -o sucd sucd.c
> chmod 4555 sucd
> mv sucd /usr/local/bin
>
> What you're doing there is setting the binary as setuid which allows
> people to execute it as root, and allows them to mount/unmount the CD.
>
> I would warn against this. ONLY root should ever mount/unmount file
> systems, so unless you _really_ trust these users, I wouldn't allow
> this.
>
> Hope this helps.
> Cheers,
> Marc
>
> On Sun, Aug 13, 2000 at 11:48:07PM -0600, Lorin Lund wrote:
> > I have FreeBSD 4.0 on a Compaq 1200 XL 118 (notebook).
> >
> > I have a Xircom CreditCard Modem that is getting recognized.
> > I have a LinkSys EtherFast 10/100 CardBus PC Card network card that is not
> > being recognized.
> >
> > My rc.conf contains:
> >
> > hostname="Compaq_fbsd"
> > linux_enable="YES"
> > pccard_enable="YES"
> > pccard_ifconfig="inet 169.254.0.3 netmask 255.255.255.0"
> > default_router="169.254.0.1"
> > ...
> >
> > I have not modified pccard.conf.sample nor created a pccard.conf not
> > modified or created any other files related to pccards or networking.
> >
> > When my PC boots, after I login (as soon the prompt is presented) I see the
> > following on the console:
> >
> > Aug 13 23:36:43 Compaq_fbsd pccard[46]: No card in database for ""("")
> > Aug 13 23:36:43 Compaq_fbsd pccard[46]: No card in database for ""("")
> > Aug 13 23:36:43 Compaq_fbsd pccard[46]: pccardd started
> > Aug 13 23:36:43 Compaq_fbsd pccard[46]: No card in database for ""("")
> > Aug 13 23:36:43 Compaq_fbsd pccard[46]: pccardd started
> > Aug 13 23:36:43 Compaq_fbsd pccard[46]: pccardd started
> >
> > What do I need to configure, enable or add?
> >
> > What other logging can I enable? What other information can I get? How do I
> > get it?
> >
> >
> > _________________________________________________________
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >
> >
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-questions" in the body of the message
>
> --
> We can embrace love; it's not too late.
> Why do we sleep, instead, with hate?
> Belief requires no suspension
> to see that Hell is our invention.
> We make Hell real; we stoke it's fires.
> And in its flames our hope expires.
> Heaven, too, is merely our creation.
> We can grant ourselves our own salvation.
> All that's required is imagination.
> -- The Book of Counted Sorrows
> /*
> * suCD 0.1
> * --------
> * Allows regular (non-root) users to mount the cdrom
> * - Omachonu Ogali <oogali@tribune.intranova.net>
> */
>
> #include <stdio.h>
> #include <stdlib.h>
> #include <unistd.h>
> #include <sys/types.h>
>
> int main(int argc, char **argv)
> {
> printf("suCD 0.1\n");
> printf("oogali@tribune.intranova.net\n\n");
>
> if (getuid() != 0) {
> if (seteuid(0) != 0) {
> perror("seteuid()");
> return -1;
> }
> }
>
> if (argc < 2) {
> system("/sbin/mount /cdrom");
> } else {
> if (strcmp(argv[1], "mount") == 0) {
> system("/sbin/mount /cdrom");
> } else if (strcmp(argv[1], "unmount") == 0) {
> system("/sbin/umount /cdrom");
> } else {
> printf("%s [action]\n");
> printf("[action] may be either 'mount' or 'unmount'.\n");
> return -1;
> }
> }
>
> return 0;
> }
--
We can embrace love; it's not too late.
Why do we sleep, instead, with hate?
Belief requires no suspension
to see that Hell is our invention.
We make Hell real; we stoke it's fires.
And in its flames our hope expires.
Heaven, too, is merely our creation.
We can grant ourselves our own salvation.
All that's required is imagination.
-- The Book of Counted Sorrows
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000814151404.B770>
