Linux-Misc Digest #341, Volume #24                Tue, 2 May 00 08:13:05 EDT

Contents:
  Apache: setting effective user ID for CGI scripts? (ok)
  IRQs - can someone give the definitive answer please? ([EMAIL PROTECTED])
  Re: Apache: setting effective user ID for CGI scripts? ("Peter T. Breuer")
  Uptime monitoring utility ("Peet Grobler")
  ne2000 with RedHat 6.1 (The Dude)
  Re: X locks up solid, what can I do ?! HELP !!! ([EMAIL PROTECTED])
  Re: How do I set the clock properly???? (Bo Berglund)
  Re: problems with Diskless Linux Box (Geoff Short)
  Re: How do I set the clock properly???? ("Peter T. Breuer")
  Re: How do I set the clock properly???? ("Peter T. Breuer")
  Re: IRQs - can someone give the definitive answer please? (Koos Pol)
  Anyone have experience with Wcol proxy on linux? ("Richard")
  Re: Gnome for RedHat: is it still there? (Yan Seiner)
  Re: IRQs - can someone give the definitive answer please? (Koos Pol)
  Cannot kill a process (Deden Purnamahadi)
  Re: How do I set the clock properly???? (Yan Seiner)
  Re: Cannot kill a process ("Peter T. Breuer")

----------------------------------------------------------------------------

From: [EMAIL PROTECTED] (ok)
Crossposted-To: comp.os.linux.security
Subject: Apache: setting effective user ID for CGI scripts?
Date: 2 May 2000 09:35:51 GMT

Hello all. 
I figure this is probably a very simple newbie question, but after looking for 
the answer on the web for 2 hours and not finding anything close, I'm hoping 
somebody here could at least point me in the right direction.
Problem, I have to chmod my web dir to 777 in order for my CGI scripts to be 
able to access it.  How can I assign "effective user ID" to scripts run from 
the cgi-bin dir?
Thanks in advance for your help,
Erik


------------------------------

From: [EMAIL PROTECTED]
Subject: IRQs - can someone give the definitive answer please?
Date: Tue, 02 May 2000 09:54:47 GMT

All,

I have gone around and around the IRQ issue for years now and I keep
reading and seeing different answers to the same question: The PC
architecture allows for eight expansion slots but has a very limited
number of IRQs free. Once you take out the real time clock IRQ, the
serial lines (COM 1 and 2), keyboard, cascade, two for IDE and the
parallel printer, along with a modem, the diaplay adaptor, sound card,
games controller and the floppy disk (etc - get the pciture?), you're
normally left with, at best, IRQs 10, 11, 12 and maybe 6 or 7.

If you then want to add a scanner (SCSI card), network card and, as I
have, and ISDN card - well, you're suddenly out of IRQs and added to
this, you have to fight with PnP on PCI which, it seems, we have no
control over. So you end up juggling IRQs with ISA cards using the pnp
tools for Linux and trying to force the PCI card settings into something
sensible by juggling the BIOS settings.

All of which is background for the gurus out there to pull apart and
comment on. The number one question though is: Can you make more than
one device share an IRQ?

I tried to make my soundblaster card share IRQ5 with my 3COM network
card on the grounds that I seldom use sound but my entwork card is
always active - no go! I lost sound altogether. Move the network to
IRQ10 and all is happy, except that IRQ10 is also my SCSI card. Now it
MAY be that my SCSI card isn't installed properly, by suspiciously, my
scanner stopped working.

The evidence points to not being able to share IRQs, in which case I am
stuck because there are no free IRQs on my system. However, reading
through postings, looking at websites and reading book tends to point to
the opposite conclusion: You can share IRQs but it's a bad idea to share
an IRQ between two very active devices.

So, what is the correct, definitive answer to this issue? Is the PC IRQ
system a caring, sharing environment, or, like the raptors in Jurassic
Park, does a single device kill anything trying to share its turf (IRQ)
that isn't its own?



Sent via Deja.com http://www.deja.com/
Before you buy.

------------------------------

From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.security
Subject: Re: Apache: setting effective user ID for CGI scripts?
Date: 2 May 2000 09:51:56 GMT

ok <[EMAIL PROTECTED]> wrote:
: Problem, I have to chmod my web dir to 777 in order for my CGI scripts to be 
: able to access it.

No you don't. Look again. You only want read/exec permission on your script
dir. And what do you mean by "your"? If it's /var/httpd/cgi-bin, then
it's not yours, it's the system's.

If you want your scripts to write somewhere (they shouldn't), then make
sure that directory is in a place that can do no harm, and is DIFFERENT
from your script dir. That (the latter) directory may have write
permission for the user you are running httpd as. Or you may use suid
(sripts yet, with sperl or suidexec) executables to allow you to write
where you need to.

:                 How can I assign "effective user ID" to scripts run from 
: the cgi-bin dir?

You don't (although you can). Reexamine your hypotheses.

Peter

------------------------------

From: "Peet Grobler" <[EMAIL PROTECTED]>
Crossposted-To: comp.unix.admin,comp.os.linux.setup,comp.os.linux.networking
Subject: Uptime monitoring utility
Date: Tue, 2 May 2000 12:21:28 +0200

Hello there.

I'm in need of the following utilities (open-source preferred), but it must
be freely available.

I need a uptime monitor, for monitoring machine uptime, or, actually
preferred network device (e.g. eth0) uptime. Or network programs, e.g. inetd
or rpc.portmap uptime.

Any such thing available?

Oh yeah, running custom-built Linux.



------------------------------

From: The Dude <[EMAIL PROTECTED]>
Subject: ne2000 with RedHat 6.1
Date: Tue, 02 May 2000 10:17:46 GMT

 Hi,
I want to set up ne2000 NIC with my linx redhat 6.1.
The card as you all know is an ISA and NOT a PCI.
for some reason the installation did not recognized it.
what kernel module should I try and use?
how do I set it up or coz linux to recognize it?
the card is fine an did work on a different machine without any special
configuration.
pls help




--
Regards
              The Dude


Sent via Deja.com http://www.deja.com/
Before you buy.

------------------------------

From: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.networking
Subject: Re: X locks up solid, what can I do ?! HELP !!!
Date: Tue, 02 May 2000 10:28:59 GMT

In article <[EMAIL PROTECTED]>,
  Dave Phillips <[EMAIL PROTECTED]> wrote:
> Greetings:
>
>   First, apologies for the cross-post, but I believe it was necessary.
>
>   Periodically, while on the network (PPP connection to my ISP), X
will
> lock my machine solid, requiring a complete power down to get it
running
> again. Here's the situation:
>
>     This problem has accurred sporadically for the past year or so. It
> happens irregularly, and /var/log/messages reports this right before
the
> freeze:
>
> Apr 29 15:44:04 localhost modprobe: can't locate module char-major-108
> Apr 29 15:44:04 localhost pppd[5601]: pppd 2.3.10 started by root, uid
0
> Apr 29 15:44:04 localhost pppd[5601]: Using interface ppp0
> Apr 29 15:44:04 localhost pppd[5601]: Connect: ppp0 <--> /dev/ttyS3
> Apr 29 15:44:13 localhost kernel: PPP BSD Compression module
registered
> Apr 29 15:44:13 localhost kernel: PPP Deflate Compression module
> registered
> Apr 29 15:44:13 localhost pppd[5601]: local  IP address 209.143.26.110
> Apr 29 15:44:13 localhost pppd[5601]: remote IP address 209.143.26.103
> Apr 29 15:44:14 localhost modprobe: no dependency information for
> module: "/d
> ev/ttyS3"
>
ever tried another port ,
like f.i. /dev/modem or /dev/ttyS1?
or even try to switch mouse ( i guess is on serial1(ttys0)) and modem?
modem would then be /dev/ttyS0 and mouse /dev/ttyS1.




--
'...' said the joker to the thief
'there's too much confusion, i cant get no relief...
so let us not talk falsely now, the hour's getting late'


Sent via Deja.com http://www.deja.com/
Before you buy.

------------------------------

From: [EMAIL PROTECTED] (Bo Berglund)
Subject: Re: How do I set the clock properly????
Reply-To: [EMAIL PROTECTED]
Date: Tue, 02 May 2000 10:54:43 GMT

On 2 May 2000 08:43:47 GMT, "Peter T. Breuer" <[EMAIL PROTECTED]>
wrote:

>: line commands should be typed. Please be specific in your advice.
>
>No way. You go do the work. I'm not a babysitter.
>

If you are not a "babysitter" how come you post a reply at all?

I think that rude replies are not called for, we are not all experts
or are you offended by my referral to normally using Windows?

I just asked a question (notice the word "please"?) and anyone
answering should do that on their own accord in order to help those
not so fortunate as to be experts in the field. I also hinted that the
man pages were in fact uneadable due to the way Telnet displays them
(text on top of text with no screen erasure in between).


Bo Berglund
Software developer in Sweden
[EMAIL PROTECTED]

PGP: My public key is available at the following locations:
Idap://certserver.pgp.com
http://pgpkeys.mit.edu:11371

------------------------------

From: Geoff Short <[EMAIL PROTECTED]>
Subject: Re: problems with Diskless Linux Box
Date: 2 May 2000 11:05:23 GMT

Olivier Ravard <[EMAIL PROTECTED]> wrote:

: I setup some Diskless Linux Box. It works fine but I have 2 problems :

:     - I boot with a floppy and only 64 Mo RAM is found by Linux. (I have
: 128 Mo).

I think you'll have to put lilo on the floppy disk, instead of just
dumping the kernel onto the floppy.  Then you can have a lilo append line
with "mem=128M".

:     - the root file system is on NFS. So I can't create a swap file (on
: swapon, the
:         error message is : "swapon: /sw: Invalid argument")
:         How can I create a swap file ?

Swapping over nfs is not supported by the linux kernel, but there are 
usually some patches on the web to allow you to do this.

        Geoff

-- 
============================================================================
Ever sit and watch ants? They're always busy with                Geoff Short
something, never stop for a moment.  I just          [EMAIL PROTECTED]
can't identify with that kind of work ethic. http://kipper.york.ac.uk/~geoff

------------------------------

From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Subject: Re: How do I set the clock properly????
Date: 2 May 2000 11:02:57 GMT

Bo Berglund <[EMAIL PROTECTED]> wrote:
: On 2 May 2000 08:43:47 GMT, "Peter T. Breuer" <[EMAIL PROTECTED]>
: wrote:
:>: line commands should be typed. Please be specific in your advice.
:>No way. You go do the work. I'm not a babysitter.

: If you are not a "babysitter" how come you post a reply at all?

Because I wish to help you.

: I think that rude replies are not called for, we are not all experts
: or are you offended by my referral to normally using Windows?

No, I'm offended by your apparantly sitting on your patsy and complaining
that you need to be spoonfed at the same time.  

: answering should do that on their own accord in order to help those
: not so fortunate as to be experts in the field. I also hinted that the
: man pages were in fact uneadable due to the way Telnet displays them
: (text on top of text with no screen erasure in between).

Set your terminal type to vt100. Or set your windows emulator to emulate
vt100.  At any rate, make sure they agree. "export TERM=vt100" is the
simplest likely cure. If you don't tell me what types your windows
emulator supports, I can't guess.

Your problem is that you cannot see, and not being able to see renders
you unable to read.  But even then I would have expected a
resourceful person like you would have tried

  man foo > /tmp/foo
  less /tmp/foo

and hit ^L every so often. Keep trying.

So this is your problem, then? Not the stuff about timezones?

Peter

------------------------------

From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Subject: Re: How do I set the clock properly????
Date: 2 May 2000 11:06:51 GMT

Bo Berglund <[EMAIL PROTECTED]> wrote:
: not so fortunate as to be experts in the field. I also hinted that the
: man pages were in fact uneadable due to the way Telnet displays them
: (text on top of text with no screen erasure in between).

  I am a poor Windows user with a Linux machine running as a test bed
  for web development so I am not real versed in how all these command
  line commands should be typed. Please be specific in your advice.

Please sit down at the console of your linux machine. The man pages
will be very readable then.


Peter

------------------------------

From: [EMAIL PROTECTED] (Koos Pol)
Subject: Re: IRQs - can someone give the definitive answer please?
Date: 2 May 2000 11:09:10 GMT
Reply-To: [EMAIL PROTECTED]

On Tue, 02 May 2000 09:54:47 GMT, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
| So, what is the correct, definitive answer to this issue? Is the PC IRQ
| system a caring, sharing environment, or, like the raptors in Jurassic
| Park, does a single device kill anything trying to share its turf (IRQ)
| that isn't its own?

A quick search on Deja ("shared and irq") gave the following hit:
http://x34.deja.com/[ST_rn=ps]/getdoc.xp?AN=563610445&CONTEXT=
957265374.1167720460&hitnum=64

So...

Koos Pol
======================================================================
S.C. Pol - Systems Administrator - Compuware Europe B.V. - Amsterdam
T:+31 20 3116122   F:+31 20 3116200   E:[EMAIL PROTECTED]

Check my email address when you hit "Reply".

------------------------------

From: "Richard" <[EMAIL PROTECTED]>
Subject: Anyone have experience with Wcol proxy on linux?
Date: Tue, 2 May 2000 13:14:25 +0200

I have recently found the "WWW Collector Prefetching Proxy Server" software,
and wanted to test it on our proxy-server running SuSE 6.2/Squid proxy.
But I'm having trouble getting it to compile. (Well, I should have known,
the
only supported linux on the list of platforms was Slackware 3.4 with egcs
compiler )
So I'm wondering if there's anyone who has used WcolE on different
platforms, or
any users that could help me. This is the error the compiler gives me:

shm.c: in function show_pool_stat:
shm.c: 81: structure has no member named "key"
shm.c: 81: structure has no member named "key"
shm.c: 82: structure has no member named "seq"
make: *** [shm.o] Error 1

Any help is appreciated. Thanks:

Richard

--
If you wish to reply by e-mail please reply to <[EMAIL PROTECTED]>



------------------------------

From: Yan Seiner <[EMAIL PROTECTED]>
Subject: Re: Gnome for RedHat: is it still there?
Date: Tue, 02 May 2000 07:38:42 -0400

OOPS!  Comes too much of being in the Win world....  Yes I kenw RedHat
did not code gnome, but I'm so used to monolithic OSs that I....  Well,
anyway, glad to know it's improved.

My early experience with rh 6.0 led me to dump the entire X system as
more trouble than it was worth, since I like the command line more than
any GUI.

--Yan

[EMAIL PROTECTED] wrote:
> 
> In article <[EMAIL PROTECTED]>, Yan Seiner 
><[EMAIL PROTECTED]> wrote:
> > I know this has been rehashed many times, but I have a more up-to-date
> > question:
> >
> > Has Red Hat fixed most of the bugs in gnome since the 6.0 release?  Or
> > is gnome still around?  No real mention of it on the RedHat website.
> 
> RedHat has not but the GNOME coders have. GNOME has improved
> a great deal since RH 6.0. Definiteley go for at least the version
> contained in RH 6.2. I always tell people who have problems with GNOME
> to upgrade as stablility has greatly improved since the 6.0 days.

------------------------------

From: [EMAIL PROTECTED] (DraCo)
Crossposted-To: alt.binaries.mpeg,alt.binaries.multimedia
Subject: New Duckman! File 10 of 24 - Duckman - #41The Longest Weekend.r08 (05/30)
Date: Tue, 02 May 2000 11:12:48 GMT
From: [EMAIL PROTECTED] (Koos Pol)
Subject: Re: IRQs - can someone give the definitive answer please?
Date: 2 May 2000 11:09:10 GMT
Reply-To: [EMAIL PROTECTED]

On Tue, 02 May 2000 09:54:47 GMT, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
| So, what is the correct, definitive answer to this issue? Is the PC IRQ
| system a caring, sharing environment, or, like the raptors in Jurassic
| Park, does a single device kill anything trying to share its turf (IRQ)
| that isn't its own?

A quick search on Deja ("shared and irq") gave the following hit:
http://x34.deja.com/[ST_rn=ps]/getdoc.xp?AN=563610445&CONTEXT=
957265374.1167720460&hitnum=64

So...

Koos Pol
======================================================================
S.C. Pol - Systems Administrator - Compuware Europe B.V. - Amsterdam
T:+31 20 3116122   F:+31 20 3116200   E:[EMAIL PROTECTED]

Check my email address when you hit "Reply".

------------------------------

From: Deden Purnamahadi <[EMAIL PROTECTED]>
Subject: Cannot kill a process
Date: Tue, 02 May 2000 18:37:25 +0800

RedHat 6.0, Kernel 2.2.5-15

When I changed user's password with 'passwd' command, Linux gave me 
an error message:

New UNIX password: 
Retype new UNIX password: 
passwd: Critical error - immediate abort

then the passwd command is hung in the process.
I've tried to kill it with kill -9 , but it didn't succeed.

Any other way I can kill the process ?



-- 
ddn

------------------------------

From: Yan Seiner <[EMAIL PROTECTED]>
Subject: Re: How do I set the clock properly????
Date: Tue, 02 May 2000 07:48:18 -0400

I just went through this, and it is confusing.  First of all, there are
two clocks:  the hardware clock (which is the PC battery backed up
clock) and teh system clock.  Linux only uses the hardware clock at boot
to set the system clock; then ignores it.  Setting hwclock makes to
difference to linux until you reboot.

So: 

date --set time <- to set the system clock
hwclock --utc --systohc <- to set the hardware clock
make sure the file /etc/sysconfig/clock includes the line
UTC=true <- this works for RedHat, YMMV

and make sure the timezone is correct and you should be all set at the
next reboot.

Also look up www.ntp.org if you really want accurate time.

--Yan

Bo Berglund wrote:
> 
> My RH5.2 system is constantly running one hour off, showing 10:00 when
> it is actually 9:00 etc.
> How can I go about changing the clock?
> I have tried /sbin/hwclock --set --date=07:00 (since we are 2 hours
> away from GMT) but it does not help at all. In fact when I changed the
> hwclock one hour the date command still returned the old hour setting.
> 
> Please advice which commands to use in succession to do the following:
> 1) Interrogate/set the time zone (central european daylight savings
> time)
> 2) Interrogate/set the clock
> 
> I am a poor Windows user with a Linux machine running as a test bed
> for web development so I am not real versed in how all these command
> line commands should be typed. Please be specific in your advice.
> 
> PS:
> How can you clear the screen when you connect to a Linux machine using
> Telnet from Windows NT? When I do this and try to use the man pages
> the screen gets all cluttered and misformatted (can't read man hwclock
> for instance) and I want to clear it all out and start over. CLS does
> not work like it did on MS-DOS. There must be a corresponding
> command?????
> DS
> 
> TIA
> 
> Bo Berglund
> Software developer in Sweden
> [EMAIL PROTECTED]
> 
> PGP: My public key is available at the following locations:
> Idap://certserver.pgp.com
> http://pgpkeys.mit.edu:11371

------------------------------

From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Subject: Re: Cannot kill a process
Date: 2 May 2000 11:46:11 GMT

Deden Purnamahadi <[EMAIL PROTECTED]> wrote:
: RedHat 6.0, Kernel 2.2.5-15

: When I changed user's password with 'passwd' command, Linux gave me 
: an error message:

: New UNIX password: 
: Retype new UNIX password: 
: passwd: Critical error - immediate abort

: then the passwd command is hung in the process.
: I've tried to kill it with kill -9 , but it didn't succeed.

: Any other way I can kill the process ?

NO. If -9 does not kill a process, then your system is dead.
The process is in uninterruptible sleep in the kernel, or
otherwise occupied.

I'd guess you have a funny file system. Possibly a full one too.


Peter

------------------------------


** FOR YOUR REFERENCE **

The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:

    Internet: [EMAIL PROTECTED]

You can send mail to the entire list (and comp.os.linux.misc) via:

    Internet: [EMAIL PROTECTED]

Linux may be obtained via one of these FTP sites:
    ftp.funet.fi                                pub/Linux
    tsx-11.mit.edu                              pub/linux
    sunsite.unc.edu                             pub/Linux

End of Linux-Misc Digest
******************************

Reply via email to