Linux-Misc Digest #725, Volume #25               Sun, 10 Sep 00 16:13:02 EDT

Contents:
  Re: how to logout from inside a script or app? (Jerry L Kreps)
  Apache: don't have permission to access / on this server (red hat 6.2) (frank)
  debian package management question (Gerald Willmann)
  Re: HylaFAX? (Giulio Orsero)
  specialized job site ? (Yann)
  Re: specialized job site ? (Rodolphe Quiedeville)
  Re: Which firewall technique/product does this best? (Arnstein Oseland)
  Re: Why do FTP downloads stall under RH6.2 linux (Nick)
  Re: Apache: don't have permission to access / on this server (red hat  (frank)
  Re: Why do FTP downloads stall under RH6.2 linux (Hal Burgiss)
  Glassware (was: re: http://www.msnbc.com/msn/456664.asp?cp1=1) (Zorch)
  Re: Have An Hour?(Maybe Two) Alright Proceed....... (Duane)
  Re: How to delete -ash (Herb Stein)
  Re: Problem with fopen under RedHat 6.2 (The Ghost In The Machine)
  Re: End-User Alternative to Windows (sinister-catsup)

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

From: Jerry L Kreps <[EMAIL PROTECTED]>
Subject: Re: how to logout from inside a script or app?
Date: Sun, 10 Sep 2000 12:57:48 -0500

Peter, Rod and Jean-,
You've given me the push I need to go in the right direction...
Thanks!
jerry

"Peter T. Breuer" wrote:
> 
> Jerry L Kreps <[EMAIL PROTECTED]> wrote:
> : "Peter T. Breuer" wrote:
> :>
> :> Jerry L Kreps <[EMAIL PROTECTED]> wrote:
> :> : I've tried the system() function and got nowhere.
> :> : I don't want to put my code at the bottom of ~/.profile or ~/.bashrc but .....
> :>
> :> What do you mean by "logout"? Don't you just mean "exit the login
> :> shell"
> 
> : Exactly.  A user dials in (answered via mgetty) and is presented the
> : login screen. Standard stuff.  After logging in, by using their account
> : name and password, a console is presented.
> : I don't want them having access to the command line in a console.  So, I
> : am writing a little program that is going to be called on the last line
> : of ~/.bashrc (SuSE).  It will present a menu of options, one of which is
> : to 'Quit'.  When they select 'Quit' I want the session to close and the
> : login screen to return.  What I DON'T want to happen is them hanging up
> : but their shell staying open.
> 
> : Am I clear now?
> 
> Yes. Well, even if they hung up properly they could have started
> programs that still continue when they are gone, an extra shell detached
> from any i/o is no problem. But I suppose you want to keep things neat
> and tidy. Sorry, but there is no perfect solution except a reaper that
> goes around killing detached login shells. You should find plenty on
> freshmeat.
> 
> When the link hangs mgetty (or whatever) isn't around. It'll come
> back only when the shell dies. Init is responsible for spotting that
> sort of thing and restarting mgetty. Init must get the sigchld (i.e.
> it's inevitable, since there are no other parents) when the shell
> dies and will restart mgetty then, but the shell may not die. It
> may be insensitive to sigpipe, sighup and other signals that downing the
> link may have generated.
> 
> So really a reaper is the last resort.
> 
> :> (whichever that is - it'll probably be your process group session
> :> leader).  Is that what you want?  What is the effect you are trying to
> :> achieve?  Are you trying to launch a daemon?
> 
> : What gave you the idea I was trying to lauch a daemon?
> 
> Well, you seemed to be trying to kill the originator of a chain of
> processes. That is what a daemon does in order to detach from its
> originating shell. It forks once or twice and disinherits itself,
> while the original process returns and dies, leaving the child
> orphaned but alive.
> 
> :> Perhaps a book on unix programming would be helpful?
> 
> : Would you recommend the one I have in front of me? - Beginning Linux
> : Programming -WROX, or perhaps the one next to it - "Linux Application
> : Development"? Or perhaps "Linux Programmer's Reference".  None of them
> : seem to say anything about this topic.
> 
> Dunno. Never read one. I think looking in Stevens XYZ is about all I do
> occasionally, but that's generic unix.
> 
> Let's ask again: why do you want their login shell to die when the
> line goes down? Is it "accounting"? Look at some of the autologout
> daemons. The only other thing I can suggest is that you write the reaper
> yourself: every login shell registers its pid and tty and user and you
> don't let them run "exec bash" or "exec su ..." - when mgetty comes back
> up on a tty, have init first kill the pid that was registered there,
> being careful it is owned by the user in question. Oh yes, and what
> about uses of "login" once logged in?
> 
> Peter

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

From: frank <[EMAIL PROTECTED]>
Subject: Apache: don't have permission to access / on this server (red hat 6.2)
Date: Sun, 10 Sep 2000 18:23:08 GMT

Hi all!

With my fresh install I have the following message in my browser when I
http://192.168.0.1 : Forbidden you don't have permission to access / on
this server.

1) I am logged in as root !
2) the httpd responds when I use file:/home/httpd/html/index.html
3) #ifconfig eth0 works
4) ping 192.168.0.1 works
5) ftp://192.168.0.1 works

Any clue?

Thanks for reading and have a nice day.

Frank


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

From: Gerald Willmann <[EMAIL PROTECTED]>
Subject: debian package management question
Date: Sun, 10 Sep 2000 20:42:05 +0200

hi there: I'm new to debian and have a working debian 2.2 system. Now I
would like to upgrade a few (but not all) programs to their unstable or
proposed upgrades versions (specifically navigator to 4.75 and wm2).
What's the easiest way to do that. Guess I could download the new version
and then use dpkg. But can I include some woody lines in apt/sources.list?

thanks,  Gerald

PS: and while we at it, how do I find out what files a given package
  contains and what package a given file on my system belongs to (if
  any)??


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

From: Giulio Orsero <[EMAIL PROTECTED]>
Subject: Re: HylaFAX?
Date: Sun, 10 Sep 2000 18:38:25 GMT

In article <[EMAIL PROTECTED]>,> I use Mandrake 7.1

>in a stand alone pc and get this weird message (see
> attached) everytime I login as 'root'.  I see 'hylafax' is at
> /etc/rc.d/init.d/hylafax but not in the /etc/inetdconf.  How do I get
> rid of getting this e-mail to root@localhost?

1) you disable hylafax
chkconfig hylafax off

or

2) you configure hylafax
/usr/sbin/faxsetup

--
[EMAIL PROTECTED]


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

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

From: Yann <[EMAIL PROTECTED]>
Subject: specialized job site ?
Date: Sun, 10 Sep 2000 18:50:11 GMT

Hello,

I'm looking for a specialized free software job website to work in the
US, as my girlfriend is moving there in one month. Where can I look for
those kind of site ?

Thanks
Yann











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

From: Rodolphe Quiedeville <[EMAIL PROTECTED]>
Subject: Re: specialized job site ?
Date: Sun, 10 Sep 2000 18:54:49 GMT

Yann wrote:
> 
> Hello,
> 
> I'm looking for a specialized free software job website to work in the
> US, as my girlfriend is moving there in one month. Where can I look for
> those kind of site ?
> 
> Thanks
> Yann

Have a look at http://www.linux.com/jobs/, I'm working on a similar
project named http://www.lolix.org, it's in beta but you can already
post your resume if you want.

Regards

-- 
Rodolphe QUIEDEVILLE
  Forum emploi du logiciel libre : http://www.gnulinux-jobs.org/fr/
  April : http://www.april.org/

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

From: Arnstein Oseland <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.networking
Subject: Re: Which firewall technique/product does this best?
Date: Sun, 10 Sep 2000 19:06:22 GMT

Henrik Sjostrand wrote:
> 
> Hi,
> 
> I'm soon getting ADSL (with a fixed IP) and will use a
> PPro200/128MB/RedHat 6.2 machine to run my http, ftp and mail server
> (cancelling my web hotel to run it myself). I also want to set this
> machine, my public machine, up as a firewall to protect the other PCs
> that I use (my private net). Can someone recommend me which firewall
> technique or product for Linux that best suits these requirements....

You can use ipchains and ipmasqadm which will meet most of your
requirements. I am not sure that ipchains can handle all games. The
relevant HOWTOs are
http://www.linux.no/biblioteket/HOWTO/IP-Masquerade-HOWTO.html and
http://www.linux.no/biblioteket/HOWTO/IPCHAINS-HOWTO.html

You should however not use the same machine for http, ftp and mail
servers and firewall. The firewall should be a separate box (a 486 will
do). This is because the more software that runs on the firewall, the
more security-holes you introduce. You should rather forward incoming
requests for those services to a server inside the firewall.

Intrusion detection is not mentioned in the HOWTOs above and I know
nothing about it.

Arnstein

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

Crossposted-To: comp.os.linux.networking,linux.redhat.misc
Subject: Re: Why do FTP downloads stall under RH6.2 linux
From: Nick <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date: Sun, 10 Sep 2000 20:10:06 +0100

In a previous article Michael Iwaki wrote:
> What installation option did you use?  If you used Workstation-class
> installation, for Redhat 6.2, there is a note stating that it will not install
> the network daemon, inetd.  

Where is the note?

> Network-related services such as finger,telnet,talk
> and ftp will not work.  If you require these services, choose a server-or
> custom-class installation.

If I choose custom, what do I need to install to get e.g. inetd

Nick
=====We Solve your Computer Problems===
Founder of the Prolifics User Group


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

From: frank <[EMAIL PROTECTED]>
Subject: Re: Apache: don't have permission to access / on this server (red hat 
Date: Sun, 10 Sep 2000 19:14:54 GMT

I found this in another news group let me try it out (frank)

frank wrote:

> Hi all!
>
> With my fresh install I have the following message in my browser when I
> http://192.168.0.1 : Forbidden you don't have permission to access / on
> this server.
>
> 1) I am logged in as root !
> 2) the httpd responds when I use file:/home/httpd/html/index.html
> 3) #ifconfig eth0 works
> 4) ping 192.168.0.1 works
> 5) ftp://192.168.0.1 works
>
> Any clue?
>
> Thanks for reading and have a nice day.
>
> Frank


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

From: [EMAIL PROTECTED] (Hal Burgiss)
Crossposted-To: comp.os.linux.networking,linux.redhat.misc
Subject: Re: Why do FTP downloads stall under RH6.2 linux
Reply-To: Hal Burgiss <[EMAIL PROTECTED]>
Date: Sun, 10 Sep 2000 19:15:33 GMT

On Sun, 10 Sep 2000 20:10:06 +0100, Nick <[EMAIL PROTECTED]> wrote:
>In a previous article Michael Iwaki wrote:
>> What installation option did you use?  If you used Workstation-class
>> installation, for Redhat 6.2, there is a note stating that it will
>> not install the network daemon, inetd.  
>
>Where is the note?
>
>> Network-related services such as finger,telnet,talk and ftp will not
>> work.  If you require these services, choose a server-or
>> custom-class installation.
>
>If I choose custom, what do I need to install to get e.g. inetd

$rpm -Uvv /mnt/cdrom/Redhat/RPMS/inetd*

This is my PATH. Make sure the CD is mounted and PATH is correct.

-- 
Hal B
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
--

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

From: Zorch <[EMAIL PROTECTED]>
Crossposted-To: sci.chem,rec.crafts.metalworking
Subject: Glassware (was: re: http://www.msnbc.com/msn/456664.asp?cp1=1)
Date: 10 Sep 2000 11:20:47 -0700

[Crossposted to c.o.l.m and r.c.m for reasons that will be apparent;
 PLEASE check the Newsgroups line if replies veer too far off topic!]

In article <8pfb21$[EMAIL PROTECTED]>, [EMAIL PROTECTED] says...
>       Homebrewers risk the wrath of W. by owning "erlenmeyer flasks,
>florence flasks, round bottom flasks, single neck flasks, separatory
>flasks, and filter flasks." The fine is up to $4,000 and a year in jail.
>Fortunately, permits are available:
>"Luckily, getting the requisite permit is easy and costs nothing but a
>stamp. [...] You will need to fill out a simple form (information from
>your driver's license, whether you have ever been arrested or charged with
>any drug-related offense, the number and type of items for which a permit
>is sought, and what you intend to do with them), and mail it to the DPS."

And then, according to the site, a DPS (=Dept. of Public Safety) officer 
will then come and inspect your home to make sure that you are not planning
to threaten public safety with your glassware.  It's all done very nicely 
and politely, apparently.  Having looked into this a little since Uncle Al's 
initial post, I can report that the law seems to be the same in a number of 
states (including NY).  I think that in my case I'm not in violation merely 
by owning the glassware (God help me if they find out about my vacuum dryer
though!) as a permit is required only to "purchase, sell, or transfer" such
items.  Of course next time I purchase a piece of contraband I'm going to be
liable for a big fine, I guess.  Because there is no way in hell that I am
going to fill out a "simple form" to apply for a... glassware permit.

Anyone else here -- regardless of whether you have glassware at home or
not -- really incensed by all this?  ...I'm no NRA member.  I don't own a
gun, I don't particularly want one, and I frankly find a lot of the gun lobby to
be extremely creepy.  I understand, even feel some of the fear that led
to increasingly restrictive gun registration requirements.  But those creepy 
folks have a very important message for us: our *inherent* right to do whatever 
we damn well please and  thereby express and realize ourselves as individual
entities (to borrow dippy hippie jargon for a change) so long as we are not
infringing thereby on the  rights of others, is being steadily eroded by
manipulation of the public hysteria over very real social problems (violence, 
drug addiction, etc...), and each new restriction, each new registration 
requirement, each new creation of a victimless "crime", each new law mandating 
that public agencies report to the government on private citizens' activities --
all contribute to that erosion.

It's not too hard to get a glassware registration requirement enacted into law.
After all, most people don't own lab glassware and don't particularly want to
(just as I don't own a gun and don't particularly want to).  There is manifest
evidence that some -- God knows, perhaps a majority -- of the lab glassware
in private hands is being used to manufacture drugs, and nearly everyone
agrees that our society has a problem with drugs, so on the surface of it,
putting a burdensome restriction on owning glass in funny shapes (GLASS,
for God's sake!) seems reasonable to lots of people.  And if you up and 
complain about it, you're going to be pegged as an eccentric or a whiner,
because it's not that big a deal, is it?  If you're a homebrewer or whatever,
just fill out the forms, submit your personal data, and so on and everything
will be fine!  (At least until they revoke those permits and come to your
address of record to confiscate your glassware -- or arrest you because
a drug lab was busted nearby and you, as a known glassware user, came under
immediate suspicion.)

The thing is, the principle of "give 'em a centimeter and they'll take a 
kilometer" applies here.  Except it's not so much "them" as it is "us": we
live in a participatory political system, and we do this to ourselves, by
allowing the voice of the majority to override common sense.  One day it's
glassware, and you don't use glassware, so you say nothing.  Next, it's guns,
and you don't like guns, so you say nothing.  Then it's machine tools, which,
just as glassware can be used to make drugs, are quite useful for making guns. 
You're not a home shop  machinist so you don't care.  Sooner or later, it's,
let us say, computers (after all, the illegal uses of computers are many and
varied.  There does need to be a registration and licensing system, doesn't
there? Just so that people can be held accountable for what is done with their
PCs, as they are with their cars?) 

And you *do* use computers, so you're well and truly pissed off about the
new requirements, but... it's too late.  So you submit, fill out all the 
forms, pay your license fees, grumble a little, and get used to the new rules.

And a few years later you're arrested for illegally running Linux 5.0.4, a
non-approved underground operating system, and filtering your net connection to 
hide that fact.  You weren't doing anything wrong, you think, just trying to
get a little more efficiency out of the inexpensive PC that was all you could
afford on your office job pay (too bad that programmer's job was out of reach,
you just couldn't meet the licensing requirements), but everyone knows that
the vast majority of Linux users are criminals, trying to defeat the layers
of protective software that wrap all modern computers and get down to the
bare-bones hardware, whence they can violate copyright protection, make
anonymous connections to internet sites, launch cracking attacks on the net, 
and bypass transaction logs when trading contraband information.  Many of them 
even use highly illegal cryptography!

Computer-related crime is rampant, with young kids being drawn by the sheer
excitement of it into illegal computer gangs.  The gangs, unfortunately, are
involved in lots of real violence.  They pass around encrypted information
on using contraband and homebrew machine tools to build crude guns, and
highly illegal glassware to make drugs and explosives, and the streets are
less safe than they ever were.  There's a lot of public griping about it,
and even a few people pointing out that things were better -- not perfect,
but better -- in the old days, but public policy continues to state that 
all the violence is evidence that yet tighter restrictions are necessary
on computers, to wipe out the computer gangs once and for all and make the
streets safe again for good citizens.

Sometimes you reminisce about the days when you experimented with your 
computer, when you were allowed to write code without a license for your own
enjoyment and edification.  Once you got drunk with a couple of your neighbors
and, emboldened by the buzz you got from drinking six cans of horse-piss,
you let on as to how you used to be a pretty good coder yourself.  But then
Tom started going on about how he used to be able to brew his own beer,
which was far better than this crap, but then they took his glassware away.
And Mike kept mumbling about how he used to build stuff, actually build
stuff, with his lathe and his mill.  And John got very quiet and turned livid
with suppressed rage as he recalls the day that he had to turn in his
electronic test equipment and the radio scanners that had been his big hobby.
Even Millie, Tom's wife, injected a complaint about the monthly mandatory
garden inspections, to make sure that no marijuana, psilocybin mushrooms,
Hawaiian woodrose, Mexican sage or other botanical contraband was growing in
her vegetable patch.  And you started to get nervous, or maybe just bored, 
said goodbye, and tottered back home and off to bed...

-Zorch-


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

From: Duane <[EMAIL PROTECTED]>
Subject: Re: Have An Hour?(Maybe Two) Alright Proceed.......
Date: Sun, 10 Sep 2000 11:24:24 -0700

QNA wrote:
4) My modem is listed as compatible with linux but not my sound card

You did not say what sound card you have, but there might be an ALSA
Linux driver available at:
http://www.alsa-project.org/

> 
> QUESTIONS:
> 
> 1) How can i get linux to detect my graphics card so i can get what it is
> capable of visually? The problem is when i go into the /etc/X11/XF86Setup
> file to change things the next time i wanna startx it locks up and i can
> no longer get into my desktop, i get an error. this causes me to re-
> install linux again. i am nervous to make any changes to my graphics files
> because of this, but if you know.......what can i do?

It is not real clear what you mean here. Are you saying that
Ctrl-Alt-Backspace does not get you out of X and back to a prompt? And
that even if you do a hard power cycle you cannot get back to a prompt?

I will agree that XFree86 can be rather painful to setup.

--
My real email is akamail.com@dclark (or something like that).

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

From: Herb Stein <[EMAIL PROTECTED]>
Subject: Re: How to delete -ash
Date: Sun, 10 Sep 2000 14:43:31 -0500

rm ./-ash

Barry OGrady wrote:

> How can I delete a file called -ash?
> When I try rm treats the file name as parameters.
>
> Barry
> ========
> Voicemail/fax number: (02) 85698004
> Web page: http://members.dingoblue.net.au/~barryog
> Atheist, scanner, LIPD information, horse pictures
> Updated 27/07/00




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

From: [EMAIL PROTECTED] (The Ghost In The Machine)
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.development.system
Subject: Re: Problem with fopen under RedHat 6.2
Date: Sun, 10 Sep 2000 19:51:39 GMT

In comp.os.linux.development.apps, Doug Dodson
<[EMAIL PROTECTED]>
 wrote
on Fri, 08 Sep 2000 07:39:24 -0400
<[EMAIL PROTECTED]>:
>This is a multi-part message in MIME format.
>--------------D16B8A998C0BEB58661D4412
>Content-Type: text/plain; charset=us-ascii
>Content-Transfer-Encoding: 7bit
>
>Hi,
>
>We are trying to port some code over to a Linux PC running RedHat 6.2.
>Compilation of the code is fine, however when we run, we get a
>segmentation fault on one of our fopen calls.  We seem to be able to
>pass through the code once, but on the second iteration, we get the
>fault.  This code is being ported from a Solaris machine where it ran
>fine.  Here is the output of "gdb sfg core".  We are just wondering if
>this is a known bug or if anyone has seen behavior like this before.
>Thanks for any help:
>
>GNU gdb 19991004
>Copyright 1998 Free Software Foundation, Inc.
>GDB is free software, covered by the GNU General Public License, and you
>are
>welcome to change it and/or distribute copies of it under certain
>conditions.
>Type "show copying" to see the conditions.
>There is absolutely no warranty for GDB.  Type "show warranty" for
>details.
>This GDB was configured as "i386-redhat-linux"...
>Core was generated by `sfg x w0000001.txt w0000002.txt w0000003.txt
>w0000004.txt w0000005.txt w0001000'.
>Program terminated with signal 11, Segmentation fault.
>Reading symbols from /lib/libc.so.6...done.
>Reading symbols from /lib/ld-linux.so.2...done.
>#0  0x40074709 in chunk_alloc (ar_ptr=0x40109d60, nb=184) at
>malloc.c:2763
>2763    malloc.c: No such file or directory.
>(gdb) where
>#0  0x40074709 in chunk_alloc (ar_ptr=0x40109d60, nb=184) at
>malloc.c:2763
>#1  0x400745ce in __libc_malloc (bytes=176) at malloc.c:2696
>#2  0x4006d83b in _IO_new_fopen (filename=0xbfff9cdc "w0000002.txt",
>    mode=0x8054708 "r") at iofopen.c:42
>#3  0x804c8f0 in oratag ()
>#4  0x8049e60 in main ()
>#5  0x400339cb in __libc_start_main (main=0x8048b0c <main>, argc=992,
>    argv=0xbfffb954, init=0x80487d8 <_init>, fini=0x8053a5c <_fini>,
>    rtld_fini=0x4000ae60 <_dl_fini>, stack_end=0xbfffb94c)
>    at ../sysdeps/generic/libc-start.c:92

You might try something such as Electric Fence (-lefence) to locate
any dynamic allocation errors.

If you have access to it (it's not free!) you can also try
Purify, from Rational Software -- although I don't know if there's
a Linux version or not.

[.sigsnip]

-- 
[EMAIL PROTECTED] -- insert random misquote here

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

Subject: Re: End-User Alternative to Windows
Crossposted-To: alt.os.linux,comp.os.linux.advocacy
From: sinister-catsup <[EMAIL PROTECTED]>
Date: Sun, 10 Sep 2000 15:52:41 -0400

robert w hall <[EMAIL PROTECTED]> wrote:
> In article <[EMAIL PROTECTED]>, The Ghost
> In The Machine <[EMAIL PROTECTED]> writes
> >All in all, a nice little system, doing things which OS/2 had
> >problems in < 4 meg of memory at the time (and DOS couldn't do
> >at all).
> >
> >But Commodore dies, and Windows wins out over all.  Go fig.
> >
> >[snip for brevity]
> >
> But, long before, there was OS9 level 2 on the 6809 - a system not to b=
e
> surpassed by Intel until the '386 (and Linux) ...
>=20
> and coming  up to date (well fairly) - what's wrong with keeping the
> horrible M$ stuff but running it under win4lin under linux - thus
> keeping  windows 9x in its right place as an ordinary task in linux
> user-mode - see enthusiastic thread on alt.os.linux

thats what I do, but I really only use windoze for games, someone needs t=
o get
off their buttocks and make an emulated workable version of directx, when=
 that
happens Redmond truly can bite me. I've tried playing with installing dir=
ectx
7.0 on win4lin and I have gotten some curious results. Directdraw kinda w=
orks,
direct3d, forget about it :(


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


** 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