Linux-Misc Digest #102, Volume #27               Tue, 13 Feb 01 17:13:04 EST

Contents:
  Re: Extracting files from rpms (Robert Lynch)
  Re: ksh script problem: pwd works differently for ksh then linux binary file 
("Harlan Grove")
  Re: Indrema fan site (William Kendrick)
  Re: Indrema fan site (William Kendrick)
  Intruder ("rc")
  Re: Indrema fan site (William Kendrick)
  Very odd behaviour of Forte 4 Java (alan simes)
  Re: Using  KVM switch with SuSE 6.4 ("Detlef Olschewski")
  Re: Indrema fan site (Aaron Kulkis)
  Utility to Force a "CLOSE_WAIT" Socket Closed? ("Nick Knight")
  automated multiple file deleting (Marc Alcide)
  Linux Threads - Why are all the file descriptors duplicated? ("Nick Knight")
  Re: O'Reilly: SSH book published (Jean-David Beyer)
  Re: Linux Sucks... well not really (Jean-David Beyer)
  scp problem (openSSH/openSSL suite). (Jean-David Beyer)
  Mail Server Newbie ("James Horvath")
  Re: automated multiple file deleting (Jan Schaumann)
  Re: Intruder (Drew Roedersheimer)
  Why does kmix work with kernel 2.2.17 and not 2.2.18 ? (Emmanuel Beranger)
  Re: Intruder ([EMAIL PROTECTED])
  Re: 2.2.17 kernel and usb (Alan Needleman)

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

From: Robert Lynch <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: Extracting files from rpms
Date: Tue, 13 Feb 2001 11:17:52 -0800

Dag wrote:
> 
> Does anybody know of a way to just extract individual files from rpm's?
> I want to look at some of the files, but I don't want to install the rpm
> to do it.
> 
> Dag

rpm2cpio some.rpm |cpio -idv

Bob L.
-- 
Robert Lynch-Berkeley CA USA: [EMAIL PROTECTED] <== NOTE:
**New address! Please CHANGE your addressbook listing.***

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

From: "Harlan Grove" <[EMAIL PROTECTED]>
Subject: Re: ksh script problem: pwd works differently for ksh then linux binary file
Date: Tue, 13 Feb 2001 19:20:42 GMT


Shai Kedem <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
...
>I have a pdksh installed on Linux RedHat 6.2.
>From an interactive shell, when I type pwd in a directory which is a link,
>I get the directory name (not hte one linked to), as I expect.
>When /bin/pwd is run, I get the linked directory name !
>from a ksh script, it seems it will always run /bin/pwd for pwd rather
>then the ksh implementation.
>Any one knows how to override this problems in ksh scripts to it will run
>the pwd of the ksh command ?

Why bother with running pwd either as an internal command or an external
binary? If you're using ksh as your interactive shell _and_ as the shell
running your script, wouldn't the PWD environment variable suffice? x=`pwd`
is every bit as redundant as uuoc.

I believe pwd is an alias rather than a built-in command like cd, which
would explain why it works in interactive shells but not in scripts (though
I believe it's possible for the script to trick the shell into thinking it's
interactive).



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

From: William Kendrick <[EMAIL PROTECTED]>
Subject: Re: Indrema fan site
Date: Tue, 13 Feb 2001 19:48:11 GMT

In comp.os.linux.misc Peter K?hlmann <[EMAIL PROTECTED]> wrote:

: Fine, so you are already a fan of something which does not even exist.

I'm excited about Gimp 2.0, but it does not exist yet.

Sheesh!

<snip>
: -- 
: "The PROPER way to handle HTML postings is to cancel the article, then
: hire a hitman to kill the poster, his wife and kids, and fuck his dog and 
: smash his computer into little bits. Anything more is just extremism."

I guess anyone with a sig like this shouldn't be take seriously.

-bill!

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

From: William Kendrick <[EMAIL PROTECTED]>
Subject: Re: Indrema fan site
Crossposted-To: comp.os.linux.advocacy
Date: Tue, 13 Feb 2001 19:54:27 GMT

In comp.os.linux.misc Adam Warner <[EMAIL PROTECTED]> wrote:
:>   http://www.newbreedsoftware.com/bill/indrema/

: Nice site William. Your Indrema in the news page indicates how much work you
: have put into the site.

Thanks!  Honestly, it was pretty easy to find most of the news.  A lot of
it gets mentioned on the Indrema mailing lists.  The rest I found by a
simple Google search.

Keeping on top of it's going to be the hard part.  (Between running
a Linux Users Group, running a game design club, working full time,
writing Linux games, having a girlfriend, and running a bunch of websites,
I don't know why I decide to add more projects to my life. :) )


: I hope the console is successful. I wonder whether it will be able to be put
: to other uses, such as a server, firewall, router, etc. ;-)

_Possibly_.  It may require a hack (not unlike what people have done
to Dreamcasts, iOpeners, etc.), due to the certification system in the box.


: I'm sorry you received such a rude response.

Yeah... I'm quite surprised, honestly.  Almost every person I've met who's
heavily into Linux (and I know hundreds) is much more laid back and
positive, especially to interesting new projects.

I guess it's just the Usenet crowd that can be bitchy. ;)


: Best wishes,

Thanks, take care!  If you ever get around Davis/Sacramento, California,
visit our LUG:

  http://www.lugod.org/

-bill!

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

From: "rc" <[EMAIL PROTECTED]>
Subject: Intruder
Date: Tue, 13 Feb 2001 19:58:52 GMT

I had someone FTP intp the system with a userid Jim and then the messages
log file said he su'd to ro0t, not root.  How could he do that and what is
ro0t?

Thanks,

--
Roberto



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

From: William Kendrick <[EMAIL PROTECTED]>
Subject: Re: Indrema fan site
Crossposted-To: comp.os.linux.advocacy
Date: Tue, 13 Feb 2001 19:58:59 GMT

In comp.os.linux.advocacy Aaron Kulkis <[EMAIL PROTECTED]> wrote:
<snip>
: Get a life.
<~35 line signature snipped>

Why are you being so negative?


-bill!

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

From: alan simes <[EMAIL PROTECTED]>
Subject: Very odd behaviour of Forte 4 Java
Date: Tue, 13 Feb 2001 20:02:32 +0000

I decided to use Suns Forte Java development IDE for my Java
develoment....

Couldnt understand why the hell it was so dam slow on my Linux OS, PIII
700 with 128mb of RAM.

Believe it or not it creates 30 <- Yes 30 seperate 34mb Java instances
as it is running!!!!!

What the hell???

Its even worse if you use the IBM SDK and Yes the black down SDK is just
as awful!!!

Does anybody have the faintest clue as to what is happening???


Thanks



simes


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

From: "Detlef Olschewski" <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux.suse
Subject: Re: Using  KVM switch with SuSE 6.4
Date: Tue, 13 Feb 2001 21:19:37 +0100

Hello

I had the same problems, could solve this by providing a new KVM Switch.
The differences was, that my old one is based on mechanic, the new one
switch using electronic. (the prices differ enormous).

Pit



"Bill Keck" <[EMAIL PROTECTED]> wrote in message
news:CCXe6.47665$[EMAIL PROTECTED]...
> I am trying to use a KVM switch to share the keyboard, monitor, and mouse
> between my spare Win98 box and my SuSe 6.4 box.  I can boot the SuSE box
> just fine, use the equipment properly, flip the switch to my Win98 box,
and
> use the equipment properly.  The problem occurs when I switch back to my
> SuSE box.  The keyboard and mouse hang.  I normally have to do a hard
reset
> in order to use my SuSE box again.  Does anyone know what setting I need
to
> make so that my SuSE box doesn't freeze?  Does SuSE just not like KVM
> switches?  Any help is appreciated.
>
>



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

From: Aaron Kulkis <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.advocacy
Subject: Re: Indrema fan site
Date: Tue, 13 Feb 2001 15:19:03 -0500



William Kendrick wrote:
> 
> In comp.os.linux.advocacy Aaron Kulkis <[EMAIL PROTECTED]> wrote:
> <snip>
> : Get a life.
> <~35 line signature snipped>
> 
> Why are you being so negative?

Proper precautions against the various guttersnipe hooligans listed
below.


> 
> -bill!

-- 
Aaron R. Kulkis
Unix Systems Engineer
DNRC Minister of all I survey
ICQ # 3056642


H: "Having found not one single carbon monoxide leak on the entire
    premises, it is my belief, and Willard concurs, that the reason
    you folks feel listless and disoriented is simply because
    you are lazy, stupid people"

I: Loren Petrich's 2-week stubborn refusal to respond to the
   challenge to describe even one philosophical difference
   between himself and the communists demonstrates that, in fact,
   Loren Petrich is a COMMUNIST ***hole

J: Other knee_jerk reactionaries: billh, david casey, redc1c4,
   The retarded sisters: Raunchy (rauni) and Anencephielle (Enielle),
   also known as old hags who've hit the wall....

A:  The wise man is mocked by fools.

B: Jet Silverman plays the fool and spews out nonsense as a
   method of sidetracking discussions which are headed in a
   direction that she doesn't like.
 
C: Jet Silverman claims to have killfiled me.

D: Jet Silverman now follows me from newgroup to newsgroup
   ...despite (C) above.

E: Jet is not worthy of the time to compose a response until
   her behavior improves.

F: Unit_4's "Kook hunt" reminds me of "Jimmy Baker's" harangues against
   adultery while concurrently committing adultery with Tammy Hahn.

G:  Knackos...you're a retard.

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

From: "Nick Knight" <[EMAIL PROTECTED]>
Subject: Utility to Force a "CLOSE_WAIT" Socket Closed?
Date: Tue, 13 Feb 2001 15:19:40 -0500

Hello,

I've read the FAQ's and some technical info on WHY sockets are left in a
CLOSE_WAIT state after one end terminates.  However, I have cases where *I
know* the apps on each end of the socket are closed (they're mine, and
usually one has died unexpectedly).  As it is, I need to now wait 2-3-4-5
minutes before the port to which I need to bind is free.

I have a utility for another OS called "killsock" that will completely
close a socket in any state.  I searched various sources, and found a
script that *might* work on a SUN box, but my issue is mostly with Linux
(Redhat 6.x) and the script makes use of things that don't exist, and a
format for netstat that isn't the same as what I have.

Is there a kill socket utility that will FORCE a socket closed?  Seeing as
my code is at both the server and client ends of the socket, is there
something programatically I can do to close these (I'm already capturing
exceptions and signals ... but there seems to be ways for the app to close
and bypass my code).

Thanks in advance for any help,

Nick
-- 
===========================================================
Nick Knight  <[EMAIL PROTECTED]>       http://nick.secant.com
Senior Software Engineer
Secant Technologies, Inc.             http://www.secant.com
===========================================================


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

From: [EMAIL PROTECTED] (Marc Alcide)
Subject: automated multiple file deleting
Date: Tue, 13 Feb 2001 20:25:19 GMT


I have a certain problem on a linux server. I want to delete multiple
files in several subdirectories of the 'home' directory, but only
those files that have the size between 69000 and 71000 bytes.

Please bear in mind that I do not know a lot about linux

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

From: "Nick Knight" <[EMAIL PROTECTED]>
Subject: Linux Threads - Why are all the file descriptors duplicated?
Date: Tue, 13 Feb 2001 15:26:16 -0500

Are there any experts on Linux threading handy?

In stress-testing some code on Linux recently, I ran into a resource
issue.  It seems that by running a multithreaded (fairly heavily) server
application, massive amounts of file descriptors were being used.  Some
quick checking and it appears that each thread is duplicating all file
descriptors of the parent thread.  This can quickly eat up the entire
resources of our boxes.

Is there a way around this?  Is anyone else having this trouble along
these lines?  Is there a way to suggest a change to this for future Linux
revisions.  Oh.  We're specifically using Redhat 6.x and we've tried it
with the latest versions.

Thanks in advance,

Nick
-- 
===========================================================
Nick Knight  <[EMAIL PROTECTED]>       http://nick.secant.com
Senior Software Engineer
Secant Technologies, Inc.             http://www.secant.com
===========================================================


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

From: Jean-David Beyer <[EMAIL PROTECTED]>
Subject: Re: O'Reilly: SSH book published
Date: Tue, 13 Feb 2001 15:29:20 -0500

Daniel Barrett wrote:
> 
> In article <[EMAIL PROTECTED]>,
> Mark Post <[EMAIL PROTECTED]> wrote:
> >Please don't spam Usenet with commercial announcements of new book
> >publications.
> 
> I can understand your concern.  I posted the announcement here in
> c.o.l.misc because people have been asking SSH questions here that are
> covered in the book.  Some recent threads were:
> 
> Backing up to a remote machine using ssh
> CVS access from behind firewall ???
> imap and ssh
> Scripting SSH
> ssh problems
> ssh rsa fails?
> ssh, scp and batch mode
> sshd authorized_keys
> starting ssh-agent as parent of X session for SSH
> ...
> 
> I thought the announcement would be helpful.  Apologies for missing the
> boat on comp.os.linux.announce.
> 
While I suppose it was posted to the wrong newsgroup, I got the book
because I saw the post, and it just arrived today. I skimmed it and it
looks good.

-- 
 .~.  Jean-David Beyer           Registered Linux User 85642.
 /V\                             Registered Machine    73926.
/( )\ Shrewsbury, New Jersey
^^-^^ 3:25pm up 15 days, 23:53, 4 users, load average: 2.07, 2.20, 2.68

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

From: Jean-David Beyer <[EMAIL PROTECTED]>
Subject: Re: Linux Sucks... well not really
Date: Tue, 13 Feb 2001 15:32:31 -0500

"Peter T. Breuer" wrote:
> 
> Tim Banner <tbanner.bridgec*NOSPAM*@virginnet.co.uk> wrote:
> >> > browser anymore.. IE unfortunately is faster, more stable and renders
> >> Not faster...
> 
> > Yes a lot faster :)  I'm a Linux fan, I even go to my local LUGs on
> 
> What is all this about speed? A browser doesn't take time! It has ages
> to wait for packets from the net (some 10ths of seconds) and then
> if it needs to process anything it takes microseconds. What are you
> people talking about? I use lynx normally, because I prefer to avoid
> silly images, but I see no difference in speed against netscape when
> I use it - nor would I expect to. The processing time is relatively
> trivial. Netscape never maxes out the cpu - or even 10% of it!
> 
It maxes out on my dual 550MHz Pentium-III system, but only under
duress. Most of the time, like now when I am typing, it takes only about
0.5% of my CPU resources (according to top command). But if the news
server screws up in just the right way, it goes up to 50%; i.e., using
up an entire CPU. The only solution is to kill it with a -9 and start it
over. Happens about once a week.

-- 
 .~.  Jean-David Beyer           Registered Linux User 85642.
 /V\                             Registered Machine    73926.
/( )\ Shrewsbury, New Jersey
^^-^^ 3:30pm up 15 days, 23:58, 4 users, load average: 2.08, 2.15, 2.52

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

From: Jean-David Beyer <[EMAIL PROTECTED]>
Subject: scp problem (openSSH/openSSL suite).
Date: Tue, 13 Feb 2001 16:07:08 -0500

While I have openSSH working just fine between my two machines, and I
have even had it work from my nephew's machine hundreds of miles from
here, I have never gotten scp to work. Here is a typical attempt:

valinux:jdbeyer[~]$ scp -v RP4.out touchl:/home/jdbeyer/RP4.out
Executing: host touchl, user (unspecified), command scp -v -t
/home/jdbeyer/RP4.out
SSH Version OpenSSH_2.1.1, protocol versions 1.5/2.0.
Compiled with SSL (0x0090581f).
debug: Reading configuration data /usr/local/etc/ssh_config
debug: Applying options for *
debug: Seeding random number generator
debug: ssh_connect: getuid 500 geteuid 0 anon 0
debug: Connecting to touchl.localdomain [192.168.1.201] port 22.
debug: Seeding random number generator
debug: Allocated local port 812.
debug: Connection established.
debug: Remote protocol version 1.99, remote software version
OpenSSH_2.1.1
debug: Local version string SSH-1.5-OpenSSH_2.1.1
debug: Waiting for server public key.
debug: Received server public key (768 bits) and host key (1024 bits).
debug: Host 'touchl.localdomain' is known and matches the RSA host key.
debug: Seeding random number generator
debug: Encryption type: 3des
debug: Sent encrypted session key.
debug: Installing crc compensation attack detector.
debug: Received encrypted confirmation.
debug: Trying RSA authentication with key 'jdbeyer@valinux'
debug: Received RSA challenge from server.
Enter passphrase for RSA key 'jdbeyer@valinux': 
debug: Sending response to host key RSA challenge.
debug: Remote: RSA authentication accepted.
debug: RSA authentication accepted by server.
debug: Sending command: scp -v -t /home/jdbeyer/RP4.out
debug: Entering interactive session.
bash: scp: command not found
debug: Transferred: stdin 0, stdout 29, stderr 0 bytes in 0.1 seconds
debug: Bytes per second: stdin 0.0, stdout 565.7, stderr 0.0
debug: Exit status 127
lost connection
valinux:jdbeyer[~]$ 

I assume the thing saying "bash: scp: command not found" is trying to
tell me something, but I know not what. If I do whereis scp on the
valinux machine, I get:

valinux:jdbeyer[~]$ whereis scp
scp: /usr/src/openssh-2.1.1p1/scp.1 /usr/src/openssh-2.1.1p1/scp.c
/usr/src/openssh-2.1.1p1/scp.0 /usr/local/bin/scp
valinux:jdbeyer[~]$ 

so it is right there where the install script put it (default location).

If I do the same thing on the touchl machine, I get essentially the same
thing:

touchl:jdbeyer[~]$ whereis scp
scp: /usr/src/openssh-2.1.1p1/scp.1 /usr/src/openssh-2.1.1p1/scp.c
/usr/src/openssh-2.1.1p1/scp.0 /usr/src/openssh/scp.1
/usr/src/openssh/scp.c /usr/src/openssh/scp.0 /usr/local/bin/scp
touchl:jdbeyer[~]$ 

Is bash trying to tell me that scp is not found? Or is bash just passing
along a message from scp that a null command is not found? And if so,
what command should it be trying to do?

So there must be something I am overlooking. Any suggestions?
-- 
 .~.  Jean-David Beyer           Registered Linux User 85642.
 /V\                             Registered Machine    73926.
/( )\ Shrewsbury, New Jersey
^^-^^ 3:55pm up 16 days, 22 min, 5 users, load average: 2.34, 2.14, 2.18

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

From: "James Horvath" <[EMAIL PROTECTED]>
Subject: Mail Server Newbie
Date: Tue, 13 Feb 2001 15:43:03 -0600

I am looking to set up a simple Linux mail server at home to collect email
from a number of POP3 accounts, store them on a "mail hub" machine, and
allow access to those messages from Microsoft Outlook 2000 (on a Windows
2000 Pro machine).

I have Mandrake Linux 7.2 (minimal install) on a Pentium Celeron 400MHz with
32MB RAM.

I have installed sendmail (but haven't gotten too far with configuring it
yet (do I even need this?  Would qmail be a better option for a rookie?)),
and fetchmail (which is able to successfully collect my mail from a variety
of accounts and store it on the linux box).  I setup local DNS on the linux
machine, and can ping the mailhub from the Windows machines.

My question is, what do I need to setup to read my mail from my Windows
machine using Outlook 2000?  I can read it from Linux using Kmail, etc., so
I know the transfer from the POP accounts worked fine.  As stated I can ping
the mailhub (using either the IP address or the name (mailsys.mydomain.com))
from the Windows machine, but Outlook states it can't connect with the
mailhub.  Do I need NIS?  NFS?  Samba?  Sendmail?  Procmail?  Something
else?

TIA,

James



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

From: [EMAIL PROTECTED] (Jan Schaumann)
Subject: Re: automated multiple file deleting
Date: Tue, 13 Feb 2001 21:41:24 GMT

* Marc Alcide wrote:
> 
> I have a certain problem on a linux server. I want to delete multiple
> files in several subdirectories of the 'home' directory, but only
> those files that have the size between 69000 and 71000 bytes.
> 
> Please bear in mind that I do not know a lot about linux

man find

-Jan

-- 
Jan Schaumann <http://www.netmeister.org>

% "How poorly would you rate the UNIX (so-called) user interface?
Unmatched ".

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

From: [EMAIL PROTECTED] (Drew Roedersheimer)
Subject: Re: Intruder
Reply-To: [EMAIL PROTECTED]
Date: Tue, 13 Feb 2001 21:50:28 GMT

On Tue, 13 Feb 2001 19:58:52 GMT, rc wrote:
>I had someone FTP intp the system with a userid Jim and then the messages
>log file said he su'd to ro0t, not root.  How could he do that and what is
>ro0t?
>
>Thanks,
>
>--
>Roberto
>
>

This is probably a question that would be better in a security NG.
That being said, it sounds to me like you might have been cracked.  I'd
check your /etc/passwd file (NIS maps if that applies), and see what
uid ro0t has.  If it's 0, and you didn't put it there, you've been 
rooted...  BTW, the uid field is the 3rd field in /etc/passwd.

root:x:0:0:root:/root:/bin/bash
       ^
       |
      uid

I won't even delve into what to do next if you have been owned, but
suffice it to say that probably the best thing to do first is physically
disconnect the machine from any outside and/or untrusted networks.


Best of luck
-DR

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

From: Emmanuel Beranger <[EMAIL PROTECTED]>
Crossposted-To: comp.windows.x.kde,alt.os.linux.mandrake
Subject: Why does kmix work with kernel 2.2.17 and not 2.2.18 ?
Date: Tue, 13 Feb 2001 22:55:18 -0500

Both kernels are mandrake rpms ...
Under 2.2.18, I get a message box saying "can't write to kmix"

Any idea or log file I should look for ?

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

From: [EMAIL PROTECTED]
Subject: Re: Intruder
Date: Tue, 13 Feb 2001 21:11:32 +0000

rc <[EMAIL PROTECTED]> did eloquently scribble:
> I had someone FTP intp the system with a userid Jim and then the messages
> log file said he su'd to ro0t, not root.  How could he do that and what is
> ro0t?

Ro0t does not exist on any normal system.
It looks like he found an exploit and created a new user with root
privilages called ro0t.

Looks like you need to reinstall.

-- 
______________________________________________________________________________
|   [EMAIL PROTECTED]   |                                                 |
|Andrew Halliwell BSc(hons)| "The day Microsoft makes something that doesn't |
|            in            |  suck is probably the day they start making     |
|     Computer science     |  vacuum cleaners" - Ernst Jan Plugge            |
==============================================================================

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

From: Alan Needleman <[EMAIL PROTECTED]>
Subject: Re: 2.2.17 kernel and usb
Date: Tue, 13 Feb 2001 17:00:44 -0500

> kernel-2.2.17-14 is the latest kernal for the RedHat 7 distro that replaces
> kernel-2.2.16-22 that was found to have a few security holes.  The RedHat
> ftp site (ftp.redhat.com) would have what you need but I am not sure what
> rpm it is in.  Maybe someone else knows.

Thanks. There is also a 6.x 2.2.17-4 kernel rpm. I have since found out
that the cpia_usb module is related to usb cameras which I don't need
(and the error message is an unresolved external reference in that
module). The redhat site says to use the 2.2.16 kernel-header rpm which
upsets VMware. I just downloaded and installled the source for 2.2.17-14
and that took care of that. My USB zip drive now works fine although I
found out how to get it going more or less by chance.

Alan

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


** 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 by posting to comp.os.linux.misc.

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