Linux-Misc Digest #368, Volume #26 Wed, 22 Nov 00 08:13:01 EST
Contents:
Re: A stronger kill (Wayne Pollock)
Re: related ppp and rpm problems (Bob Holtzman)
Re: simple shell script variable question (Wayne Pollock)
Re: wu-ftp group permissions help (Wayne Pollock)
suid ([EMAIL PROTECTED])
Re: suid (Keith)
linux mp3: icecast ([EMAIL PROTECTED])
Re: suid (Wayne Pollock)
Re: linux mp3: icecast ([EMAIL PROTECTED])
Re: A stronger kill (Villy Kruse)
Re: Why does linux keep crashing? ("Bob Jones")
Re: Why does linux keep crashing? ("Bob Jones")
Re: Software RAID
modutils-2.3.20-0.6.2.1.i386.rpm (Frank Elsner)
Re: Frame Buffering and Red Hat 7.0 (Faux_Pseudo)
Re: SCO 'tar' media with Linux? (Paul Sherwin)
spam spam everywhere! ("Francois Pittion")
Tailing files with added timestamps? (Phillip Barnett)
Re: suid (Fester)
Re: spam spam everywhere! (Jean-David Beyer)
Linux Kernel (Robert)
----------------------------------------------------------------------------
From: Wayne Pollock <[EMAIL PROTECTED]>
Subject: Re: A stronger kill
Date: Wed, 22 Nov 2000 01:44:41 -0500
Another though occurs to me: did you run the command in the background?
If so, there is the possibility that it is a "zombie" process and that
is why it is not responding to kill. Daemons often fork a child and
then die, creating the possibility of a zombie. Such processes are
not actually running (they are dead) but remain in the process table
until you reboot (so they show up in a ps listing). Even
"kill -9 <pid>" won't remove a zombie.
-Wayne Pollock
Daniel Barron wrote:
>
> In message <[EMAIL PROTECTED]>
> [EMAIL PROTECTED] (Carl Fink) wrote:
>
> > On Sat, 18 Nov 2000 12:17:12 +0000 Daniel Barron
><[EMAIL PROTECTED]> wrote:
> > >I am writing a daemon in C++ and often I mess up and it won't even respond
> > >to a kill <process id>. I then have to reboot my linux.
> > >
> > >There must be a better way of killing something that won't go away?
> >
> > I assume you've used "kill -9 pid"?
>
> Will do. Thanks to you and all the others. Also thanks for pointing out
> that I should have read the man page.
>
> I just looked at it and taking a closer look shows this command.
>
> --
> Daniel Barron - use [at jadeb.com] for personal replys.
------------------------------
From: [EMAIL PROTECTED] (Bob Holtzman)
Subject: Re: related ppp and rpm problems
Date: 22 Nov 2000 07:07:47 GMT
Reply-To: [EMAIL PROTECTED]
On Sun, 19 Nov 2000 17:55:58 -0500, Jack Daly <[EMAIL PROTECTED]> wrote:
>>
>> This is the debug info from trying to install the package:
>>
>>
>> ot@localhost SRPMS]# rpm -ivh -vv ppp-2.3.7-2.src.rpm
>> D: counting packages to install
><snip>
>
>Seems to me you're installing the wrong package, you don't want the .src
>package, unless for some reason you want to compile it yourself. You want
>ppp-2.3.7-2.rpm, usually the .src (source) files are on their own cd w/RH,
>so try another cd. Hope this helps.
>
>
Man, when I looked at the file name on the cd that went by me like a shot!
Once it was pointed out to me that it was a source file running
rpm --rebuild ppp-2.3.7-2.src.rpm
did the trick gave me a nice rpm binary file.
Thanks for the help
--
Bob Holtzman
"If you think you're getting free lunch
......check the price of the beer!"
------------------------------
From: Wayne Pollock <[EMAIL PROTECTED]>
Subject: Re: simple shell script variable question
Date: Wed, 22 Nov 2000 01:50:27 -0500
How about this:
i="$USER"
The name of the current user is already set in a read-only
environment variable USER. (Also "LOGNAME" on many systems.)
Don't know about the French keyboard, but there must be some way
to generate a back-quote (a.k.a. grave accent, a.k.a. back-tick).
-Wayne Pollock
Dan Allen wrote:
>
> Okay, when I first run this script, I want to check who the user is that
> is running without asking them. Thus, I want to use the output from
> whoami
> So when I first wrote my script I did
>
> i=whoami
>
> However, then i is just assigned the word "whoami" and not the user. How
> to you get the output of a small binary like that to write to a
> variable??
> I am sure this must be possible.
> Please e-mail your response to
> [EMAIL PROTECTED]
> so I am sure to get it.
>
> thanks,
>
> Dan
------------------------------
From: Wayne Pollock <[EMAIL PROTECTED]>
Subject: Re: wu-ftp group permissions help
Date: Wed, 22 Nov 2000 01:54:57 -0500
ljb wrote:
> ...
> Also if they are uploading via FTP, make sure FTP gets the umask 002 too.
How? Where can umask be set so wu-ftp will use it?
-Wayne Pollock
------------------------------
From: [EMAIL PROTECTED]
Crossposted-To: alt.os.linux
Subject: suid
Date: Wed, 22 Nov 2000 06:55:36 GMT
hi,
I wanted to allow non-privileged users to do execute a script that would
normally require su access (for example "touch /bin/something"), so I
did "chmod +s script", however when script is executed, its body still
reports "permission denied".
Am I doing something wrong?
Thanks in advance,
Wroot
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: Keith <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux
Subject: Re: suid
Date: Wed, 22 Nov 2000 02:17:35 -0500
[EMAIL PROTECTED] wrote:
>
> hi,
>
> I wanted to allow non-privileged users to do execute a script that would
> normally require su access (for example "touch /bin/something"), so I
> did "chmod +s script", however when script is executed, its body still
> reports "permission denied".
> Am I doing something wrong?
>
> Thanks in advance,
>
> Wroot
>
Do a chmod +x on the script which makes it execuatable by non root
users.
HTH
--
K
------------------------------
From: [EMAIL PROTECTED]
Subject: linux mp3: icecast
Date: Wed, 22 Nov 2000 07:05:38 GMT
Hi,
I want to create an HTML file with links to mp3 files that I want to
stream. I installed icecast and shout. To play an mp3 I did the
following:
% icecast -c /etc/icecast.conf
% shout <myhostname> -P <passwd> -p playlist
my playlist contains one entry "/home/nyname/music/music.mp3"
to play _THIS_ opened x11amp and opened the location:
<myhostname>:8000. this started playing the file music.mp3.
I want to add more files to the playlist. And want to play the files as
http://<myhostname>:8000/music/<filename.mp3>
But when I type this I get a 404 error from icecast server.
how can i do tell icecast to stream a file by name? And how do I couple
icecast and shout for playing multiple files? any help will be highly
appreciated.
thanks
-eenadu
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: Wayne Pollock <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux
Subject: Re: suid
Date: Wed, 22 Nov 2000 02:34:36 -0500
Don't do this!! It is *extremely* dangerous!!! NEVER have a suid
shell script!
The safe alternative is to use the "sudo" command.
-Wayne Pollock
[EMAIL PROTECTED] wrote:
>
> hi,
>
> I wanted to allow non-privileged users to do execute a script that would
> normally require su access (for example "touch /bin/something"), so I
> did "chmod +s script", however when script is executed, its body still
> reports "permission denied".
> Am I doing something wrong?
>
> Thanks in advance,
>
> Wroot
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: linux mp3: icecast
Date: Wed, 22 Nov 2000 07:44:11 GMT
nevermid I found out how to do this stuff.
basically copy mp3's to /usr/share/icecast/static and use the following
URL
http://<myhost>:8000/file/<musicfile.mp3>
thanks
-eenadu
In article <8vfr80$2of$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] wrote:
> Hi,
>
> I want to create an HTML file with links to mp3 files that I want to
> stream. I installed icecast and shout. To play an mp3 I did the
> following:
>
> % icecast -c /etc/icecast.conf
> % shout <myhostname> -P <passwd> -p playlist
>
> my playlist contains one entry "/home/nyname/music/music.mp3"
>
> to play _THIS_ opened x11amp and opened the location:
> <myhostname>:8000. this started playing the file music.mp3.
>
> I want to add more files to the playlist. And want to play the files
as
> http://<myhostname>:8000/music/<filename.mp3>
> But when I type this I get a 404 error from icecast server.
> how can i do tell icecast to stream a file by name? And how do I
couple
> icecast and shout for playing multiple files? any help will be highly
> appreciated.
>
> thanks
> -eenadu
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
>
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: [EMAIL PROTECTED] (Villy Kruse)
Subject: Re: A stronger kill
Date: 22 Nov 2000 07:54:30 GMT
On Wed, 22 Nov 2000 01:44:41 -0500, Wayne Pollock <[EMAIL PROTECTED]> wrote:
>Another though occurs to me: did you run the command in the background?
>If so, there is the possibility that it is a "zombie" process and that
>is why it is not responding to kill. Daemons often fork a child and
>then die, creating the possibility of a zombie. Such processes are
>not actually running (they are dead) but remain in the process table
>until you reboot (so they show up in a ps listing). Even
>"kill -9 <pid>" won't remove a zombie.
>
To be clear. The deamon forks a child and the child dies, and then
the child becomes a zombie. When the original daemon also terminates,
then the zombie will be inherited by the init process, which will take
care of proper burial.
If the daaemon forks and then itself terminates while the child continues
running, then the child is adopted by the init process as an orphan.
This occurs quite frequently and is quite normal. Most daemons with
ppid == 1 was created that way.
Villy
------------------------------
From: "Bob Jones" <[EMAIL PROTECTED]>
Subject: Re: Why does linux keep crashing?
Date: Wed, 22 Nov 2000 08:03:05 GMT
In article <[EMAIL PROTECTED]>, "Robert Heller"
<[EMAIL PROTECTED]> wrote:
>
> Random thoughts:
>
> Are you over-clocking your processor?
>
Nope
> Is your processor's fan working?
>
Yup.
> (Is your processor overheated?)
>
Nope
> Have you checked your memory? Are you running it at the proper
> speed? (Ie. are you running 66mhz RAM on a 100MHZ bus or some thing?).
>
100 on 100mhz
> Have you done a intensive memory test?
>
> (Is there something wrong with your memory?)
>
I ran memtest for 15 hours and found nothing wrong with it. It ran fine
for months on end using redhat 6.2. I just updated my bios and no crashes
in 20 minutes so far. That's almost a record. ;)
> It *sounds* like you have some sort of *subtle* hardware problem.
> Problems accessing virtual memory or handling page faults suggest a
> problem with the CPU VM logic or problems with memory -- something is
> trashing these addresses somehow.
>
------------------------------
From: "Bob Jones" <[EMAIL PROTECTED]>
Subject: Re: Why does linux keep crashing?
Date: Wed, 22 Nov 2000 08:04:17 GMT
I'm leaning toward a conflict of some kind which is why I posted all my
/proc stuff. memtest ran for 15 hours with no problems found.
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] wrote:
> On Mon, 20 Nov 2000 02:00:28 GMT, Bob Jones <[EMAIL PROTECTED]>
> wrote:
>>It does the same thing. That's why I tried going to the newest kernels
>>in the first place.
>
> I would suspect a hardware problem or device conflict. If possible, boot
> up on a DOS diskette and use HIMEM.SYS to test memory. (HIMEM's built-in
> test is fairly good at spotting flaky memory.)
>
------------------------------
From: [EMAIL PROTECTED] ()
Crossposted-To: comp.os.linux.development.system,comp.os.linux.hardware,alt.linux
Subject: Re: Software RAID
Date: 22 Nov 2000 08:41:01 GMT
First let me say I know NOTHING about software RAID in Linux.
That said, I have a server with Software RAID on a SUN running Solaris,
and I would never inflict Software RAID on another machine as long as I
live. Hardware RAID can hide a lot of things from the user, and be just
about as 'fast' as an individual disk. Software RAID is going to slow
your disk writes, well REALLY BAD.
My advice would be spend the bucks for the Hardware, or DONT DO IT.
--
Reg.Clemens
[EMAIL PROTECTED]
------------------------------
From: Frank Elsner <[EMAIL PROTECTED]>
Crossposted-To: linux.redhat.misc,linux.misc,de.comp.os.linux.misc
Subject: modutils-2.3.20-0.6.2.1.i386.rpm
Date: Wed, 22 Nov 2000 09:52:08 +0100
Following the RedHat Advisory [RHSA-2000:108-03] (Updated modutils fixing local
root security bug) I've updated from modutils-2.3.9-6 to
modutils-2.3.20-0.6.2.1
and got a problem:
Loading sound module (sb) failed with the message(s):
| Nov 21 19:04:33 moltke rc.sysinit: Finding module dependencies succeeded
| Nov 21 19:04:33 moltke modprobe: Using /lib/modules/2.2.18-21/misc/sound.o
| Nov 21 19:04:33 moltke modprobe: insmod: a module named sound already exists
| Nov 21 19:04:33 moltke rc.sysinit: Loading sound module (sb) failed
| Nov 21 19:04:33 moltke modprobe: insmod: insmod
/lib/modules/2.2.18-21/misc/sound.o failed
| Nov 21 19:04:33 moltke modprobe: insmod: insmod sb failed
File "/etc/modules.conf" (unchanged, working with the previous
modutils-2.3.9-6) reads:
-----------------
| alias sound sb
| pre-install sound /sbin/insmod sound dmabuf=1
| options sb io=0x220 irq=7 dma=0 mpu_io=0x300
Any pointers to solve the problem are very welcome.
-Frank Elsner
------------------------------
From: [EMAIL PROTECTED] (Faux_Pseudo)
Crossposted-To: alt.os.linux,alt.linux,linux.redhat
Subject: Re: Frame Buffering and Red Hat 7.0
Reply-To: [EMAIL PROTECTED]
Date: Wed, 22 Nov 2000 08:59:31 GMT
--(Once apon a time, in alt.os.linux,)--
--(Harold Stevens ** PLEASE SEE SIG ** said it like only they can.)--
>The framebuffer HOWTO I looked at notes ATI cards are a problem because the
>developer(s) didn't have ready access to them. Ergo, that's at least a good
>reason from the start to know there should be consideration for keeping the
>kernel hooks in place for some minimal "obsolete" video/X functions.
>
i feel realy lucky to have it all work because untill X 4.0 my lappys
graphics chip wasnt compileatly suported and that was in the day where i was
new to nix and needed that GUI thing
now that it is suported i dont use a gui and neomagic dosnt even make
graphics cards for lappys any more
amazing how much changes in two years
>It just seems it would have been a nice courtesy for a failsafe way to bail
>out of framebuffer bleeding edge video development as a *stock* boot option
>(as, vga=obsolete or whatever in lilo.conf or whatever) rather than another
>tedious kernel recompile on production systems.
and of course you can just remove any ref to vga in the lilo.conf
and not worry about it at all
thats as close as i can get you to vga=useless
--
._______.
| <> <> | GUI's are for slackers. ibpconf.sh 5 on freshmeat.net
\-|o|-/ The easiest way to customize the command line. By Faux_Pseudo
/___\ -(root[2:45pm]/root)-
(MMM) --([EMAIL PROTECTED])-- export UIN=66618055
------------------------------
From: [EMAIL PROTECTED] (Paul Sherwin)
Crossposted-To: alt.os.linux
Subject: Re: SCO 'tar' media with Linux?
Date: Wed, 22 Nov 2000 11:00:10 GMT
On Tue, 21 Nov 2000 20:47:30 GMT, "Scott M. Navarre"
<[EMAIL PROTECTED]> wrote:
> I have a lot of files on backup tapes in tar format from a SCO Openserver
>Unix system that I would like to copy to my Linux system (which is using the
>same SCSI tape drive). What is the best way to copy these to Linux?
> Is there a 'tar' program somewhere out there for Linux that would allow me
>to do this? (I notice that the 'tar' that comes with Linux doesn't handle
>devices - i.e. can't do a "tar xv6" to extract files from a floppy disk)
No problems, just specify the device e.g. 'tar xvf /dev/fd0' for the
first floppy disk. AFAIK GNU/Linux tar won't handle multivolume SCO
tar archives though.
HTH, Paul
Paul Sherwin Consulting 22 Monmouth Road, Oxford OX1 4TD, UK
Phone +44 (0)1865 721438 http://www.psherwin.strayduck.com
Mobile +44 (0)7931 578334 mailto:[EMAIL PROTECTED]
Pager +44 (0)7666 797228
------------------------------
From: "Francois Pittion" <[EMAIL PROTECTED]>
Subject: spam spam everywhere!
Date: Wed, 22 Nov 2000 10:57:08 -0000
has anyone else noticed an increase in the amount of spam on these news
groups? Personally I am fed up with it!
Fran�ois
------------------------------
From: Phillip Barnett <[EMAIL PROTECTED]>
Subject: Tailing files with added timestamps?
Date: Wed, 22 Nov 2000 10:23:19 +0000
Hi,
I have a problem with a logfile at work, on a Linux box. The file logs
events on a video server, and is in parallel with another file logging
different events on the same machine.
The first file has every line time-stamped. The second doesn't!
Idiocy, I know. Is there a way I can tail -f the file while adding a
timestamp at the beginning of each line, as this would be very useful in
matching events between the two files?
Many thanks
Phillip
------------------------------
From: [EMAIL PROTECTED] (Fester)
Crossposted-To: alt.os.linux
Subject: Re: suid
Reply-To: [EMAIL PROTECTED]
Date: Wed, 22 Nov 2000 11:57:19 GMT
I saw Wayne Pollock rant about the following:
>Don't do this!! It is *extremely* dangerous!!! NEVER have a suid
>shell script!
Linux knows this so well that it's impossible to do. If you want something
to be suid, either use a compiled language, or at least a compiled
wrapper.
But looking into sudo would be a good idea.
--
-- Fester
Doesn't it suck to beat a guy who isn't trying?
==============================================================
------------------------------
From: Jean-David Beyer <[EMAIL PROTECTED]>
Subject: Re: spam spam everywhere!
Date: Wed, 22 Nov 2000 07:31:45 -0500
Francois Pittion wrote:
> has anyone else noticed an increase in the amount of spam on these news
> groups? Personally I am fed up with it!
> Fran�ois
Maybe a little bit, but not much compared with my e-mail, where the spam
has doubled or tripled in the last month or so. The trouble is the same
spammers switch from ISP to ISP every few minutes so the usual spam
filters do not keep them out.
--
.~. Jean-David Beyer Registered Linux User 85642.
/V\ Registered Machine 73926.
/( )\ Shrewsbury, New Jersey
^^-^^ 7:30am up 7:25, 3 users, load average: 2.12, 2.11, 2.09
------------------------------
From: Robert <[EMAIL PROTECTED]>
Subject: Linux Kernel
Date: Wed, 22 Nov 2000 13:00:17 GMT
Hi
I am a new programmer in Linux envirement, i am going to work in Kernel
and IP level programming.
I have bought many books about Linux (Linux Device drivers, TCP IP
Illustrated , Unix Network Programming),they are very good books, but i
think i am not getting any idea of how kernel is built in Linux how can
i make my own module and load it to the kernel. I think there are allot
of methods to integrate a new module to the kernel without causing any
crash in Linux opstart.
I was wondering if there are any good books describing how Linux kernel
is built up, how i can add or build my own module to the Linux kernel ?
How i can compile kernel ?
There are allot of questions should be answered, when compiling and
adding some module (ex: make config in /usr/src/linux). I was wondering
if there are a site for guiding these questions ?
I will really appreciate any help and guiding point web site, books
regarding kernel development, adding module, compilation and
installation.
Finally i would ask that how could i subscribe sunsite.linux.kernel news
?
Thank you very much Robert
------------------------------
** 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
******************************