Linux-Misc Digest #504, Volume #25               Sun, 20 Aug 00 11:13:02 EDT

Contents:
  Re: Troubleshooting ([EMAIL PROTECTED])
  Re: Midnight commander and rpm packages browsing problems (Marc D. Williams)
  Re: Regaining control of a process ("Peter T. Breuer")
  Re: Regaining control of a process (Eugene Kang)
  find command (Lily Fu)
  Files installed by Mandrake ? (Richard Kimber)
  Re: Problem with user account (Thomas Booms EDV)
  Re: Configuring the internet ([EMAIL PROTECTED])
  Re: Installing 2nd hard disk ([EMAIL PROTECTED])
  Re: Installing 2nd hard disk ([EMAIL PROTECTED])
  Re: Problems uninstalling gtk+ ([EMAIL PROTECTED])
  Re: Installing 2nd hard disk ([EMAIL PROTECTED])
  Re: find command (Paul Kimoto)
  Re: find command (jeff)
  JDK v1.3 for Linux Problems (Amit Kulkarni)
  Re: LILO re-install question (jeff)
  Re: Dual NICs of same type? (Donald Becker)

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

From: [EMAIL PROTECTED]
Subject: Re: Troubleshooting
Date: Sun, 20 Aug 2000 11:57:30 GMT

In article <Pine.LNX.4.21.0008191937280.9605-
[EMAIL PROTECTED]>,
  "Andrew N. McGuire " <[EMAIL PROTECTED]> wrote:
>
> Some sadistic yet unrelated things to do:
>
> touch -- -r\ \*
>
> Then have a beginner remove the file. :-)

Quite sadistic, unfortunatly we have a timelimit ;)

> mkdir ..\[space]
>
> One of those great cracker tricks, it correlary being:
>
> mkdir .,
>
> These are great places to put exploit binaries and SUID root shells.
> At least these are some of the tricks I found while admin'ing an ISP.
> Crackerz love ISP's for some reason.  I hate Crackerz.

I guess an ISP is a prime target, getting others accounts would be a
nice cover if you want to hack/crack something else.

I read a very interesting story about it at http://www.rootprompt.org
The feature is called "cracked!".

> More on topic, munging the passwd file is always classic.  As is
playing
> tricks with ld.so, such as incorrectly setting an incorrect
LD_LIBRARY_PATH
> and screwing up /etc/ld.so.conf.  Have a user mess up their terminal
by say,

Yes, the problem is that the workshop will be a one day happening so
show_them_ were_to_look errors would be better :-)

> cat'ing /bin/login, then make em recover.. (echo CTRL+v CTRL+o).
Another good

I tried that one out, hmm strange, do you know the reason for the
corrupt display ?

> one is to rm /etc/group.  Or hose /etc/fstab.. Ahh hell the
possibilities are
> endless.

The attendees isn't that good with Linux/Unix so I have to keep it on a
reasonable level ;)
Thanks for the tips though.

/Fredrik


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

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

From: [EMAIL PROTECTED] (Marc D. Williams)
Subject: Re: Midnight commander and rpm packages browsing problems
Reply-To: [EMAIL PROTECTED]
Date: Sun, 20 Aug 2000 12:21:49 GMT

On Sun, 13 Aug 2000 09:54:34 -0300, Mad@Spammers wrote:
>Hi Folks!
>
>I use mc to browse through rpm packages' directory structure. It works
>fine with mc4.5.40 but newest versions don't allow for this: they only
>show basic info on the package (header, install and upgrade scripts
>links etc) but no directories and files. I've tried to figure out the
>command mc issues to rpm to do this but seemingly they are identical.
>Does somebody know what should I change to retrieve the old behaviour in
>newer mc versions?
>
In the rpm extension file you'll have something like this around line
150:

     INFO/SIZE)          rpm -qp --qf "%{SIZE} bytes\n" "$1" > "$3"; exit 0;;
     CONTENTS.cpio)      rpm2cpio "$1" > "$3"; exit 0;;
esac   

I keep the old stuff around for just such an occasion.
Change the above to:

     INFO/SIZE)       rpm -qp --qf "%{SIZE} bytes\n" "$1" > "$3"; exit 0;;
     *)
         TMPDIR=/tmp/mctmpdir.$$
         mkdir $TMPDIR || exit 1
         cd $TMPDIR
         rpm2cpio "$1" | cpio -iumd --quiet "$2" >/dev/null
         mv "$2" "$3"
         cd /
         rm -rf $TMPDIR;;
esac
    

The INFO/SIZE and esac lines are there just for reference.
Anyhind, this allows you to see/browse/whatever a tarball in a src.rpm
or the directory structure in ix86 rpm.
As a Slackware user I find I need to get a binary rpm package sometimes
but would like to see/read what's in it or extract a single file for an 
ldd test.
Of course I could convert it to a Slackware package in mc also but still...

-- 
>>ANIME SENSHI<<

Marc D. Williams
[EMAIL PROTECTED]
http://www.oldskool.org/~tvdog/ -- DOS Internet & Tandy 1000
http://www.geocities.com/SiliconValley/Platform/8269/ -- Win3.x Makeover

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

From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Subject: Re: Regaining control of a process
Date: 20 Aug 2000 12:26:16 GMT

Eugene Kang <[EMAIL PROTECTED]> wrote:
: How do I regain control of a process that I lost control of when I got
: disconnected? the process shows up in ps with a ? as the controlling
: terminal. The process wasn't screened. 

Send it a kill -1, or -15 or -9. That'll teach it. What do you mean by
"regain control"? (not that I think you know ..!)

Peter

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

From: Eugene Kang <[EMAIL PROTECTED]>
Subject: Re: Regaining control of a process
Date: 20 Aug 2000 12:49:14 GMT

Peter T. Breuer <[EMAIL PROTECTED]> wrote:
> Eugene Kang <[EMAIL PROTECTED]> wrote:
> : How do I regain control of a process that I lost control of when I got
> : disconnected? the process shows up in ps with a ? as the controlling
> : terminal. The process wasn't screened. 
> 
> Send it a kill -1, or -15 or -9. That'll teach it. What do you mean by
> "regain control"? (not that I think you know ..!)

I don't want to kill it, I want to be able to control it again. It got detached
when I got disconnected from the net. It's now just sitting there, without
being attached to any terminal. 


thanks anyway. :)


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

From: Lily Fu <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: find command
Date: Sun, 20 Aug 2000 10:21:09 -0400

Hi,

I use 'find' command quite often on Unix, however,
the 'find' command on my redhat 6.1 linux doesn't
seem producing the right output:

I want to find all files with .cgi extension under cgi-bin/
directory, so I use the following command:

cd cgi-bin
find . -name *.cgi -print

it only lists  whatever/dir/index.cgi
and I know I have may other *.cgi files such as search.cgi, compare.cgi
the above find command does not lists the search.cgi etc.
what's wrong with my find command?

Thanks,

Lily



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

From: [EMAIL PROTECTED] (Richard Kimber)
Subject: Files installed by Mandrake ?
Reply-To: [EMAIL PROTECTED]
Date: Sun, 20 Aug 2000 14:31:37 GMT

Mandrake offers different levels of install, including a
'developers' option.  I did a 'regular' install, but now
realise that I would have been better off with the developer
option.

Does anyone know where I can find a list of the rpms that
are installed for each of the options?

I would like to add the necessary files to bring my system
up to the developer standard, without doing a re-install.

- Richard Kimber.

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

From: Thomas Booms EDV <[EMAIL PROTECTED]>
Subject: Re: Problem with user account
Date: Sun, 20 Aug 2000 16:33:48 +0200

Tom Williams wrote:

> In article <[EMAIL PROTECTED]>,
>   Thomas Booms EDV <[EMAIL PROTECTED]> wrote:
> > Hi all,
> >
> > when I log on with a user name at the server machine there's no prob.
> If
> > I will log on with the same name from a workstation which imported via
> > nfs some file systems I cannot log on.
> >
> > I use SuSE Linux 6.2. In /etc/passwd and /etc/shadow there's no entry
> > with the user name I will log on.
> >
> > I understand why I cannot log in on the workstation, but I don't
> > understand why I can do it at the server machine.
> >
> > Any ideas?
> >
> > Thanks in advance for your help.
> >
> > Thomas
> >
> >
>
> Are you trying to login as "root"?

Yes. That runs wonderful.

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


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

From: [EMAIL PROTECTED]
Subject: Re: Configuring the internet
Date: Sun, 20 Aug 2000 15:01:52 +0100

WME <[EMAIL PROTECTED]> did eloquently scribble:
>> I do
>> not see why you can't dial up.

> I can dialup, but after password verification, I get "The pppd daemon died
> unexpectedly"

>>   One quick question, about the "username" and "remote username",
>> are you sure that you don't mean "name" and "remotename", if so
>> then 'man pppd', which would probably be a good idea anyway.

> Yes, it's "username" and "remote username". What difference does it make,
> it's probably the same thing. What does it mean? Why do we have two?

Because Linux is a multi-user system, and many different users may want to
connect to the same ISP account. (A family, for example).

They'll all have different usernames on the local machine.
(I only have two on mine, root and spike1)

So, say usernames mum, dad, sister and owner want to connect to the same ISP
account, those would be the usernames... The remote username would be the
same. As would the password for the ISP.

-- 
______________________________________________________________________________
|   [EMAIL PROTECTED]   | "Are you pondering what I'm pondering Pinky?"   |
|Andrew Halliwell BSc(hons)|                                                 |
|            in            | "I think so brain, but this time, you control   |
|     Computer Science     |  the Encounter suit, and I'll do the voice..."  |
==============================================================================

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

From: [EMAIL PROTECTED]
Subject: Re: Installing 2nd hard disk
Crossposted-To: comp.os.linux.hardware,comp.os.linux.help
Date: Sun, 20 Aug 2000 15:13:32 +0100

Peter T. Breuer <[EMAIL PROTECTED]> did eloquently scribble:
> In comp.os.linux.help Hiawatha Bray <[EMAIL PROTECTED]> wrote:
> : The drive on my Linux box is full.  I have an old HD I can put in, but I
> : don't know how to configure Linux to recognize it and partition it
> : correctly.  How is this done?  Thanks.

> Put drive in box. Boot system. Type fdisk /dev/hdb (or whatever) to
> partition it. Run mke2fs  on the partitions after one reboot.
> You have to reboot unless someone has worked out a way to get the
> kernel to rescan the table ...

Reboot? Why? All you need to do is mount it.
(You'll have to shut down to put the drive in of course, but once it's
there, there should be no need for a reboot).

When you've done the fdisk/mke2fs, you need to decide where to mount the
partition...

For example, my second hard disk contains the /var/spool directory and is
mounted there.

Copy all the files from the old directory structure to the new partition.
Then add the new partition to /etc/fstab, remove the old directory structure
and mount the new partition on the old (now empty) directory (mount point). 

No idea why a reboot is neccesary...
-- 
______________________________________________________________________________
|   [EMAIL PROTECTED]   | "I'm alive!!! I can touch! I can taste!         |
|Andrew Halliwell BSc(hons)|  I can SMELL!!!  KRYTEN!!! Unpack Rachel and    |
|            in            |  get out the puncture repair kit!"              |
|     Computer Science     |     Arnold Judas Rimmer- Red Dwarf              |
==============================================================================

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

From: [EMAIL PROTECTED]
Subject: Re: Installing 2nd hard disk
Crossposted-To: comp.os.linux.hardware,comp.os.linux.help
Date: Sun, 20 Aug 2000 15:24:16 +0100

Peter T. Breuer <[EMAIL PROTECTED]> did eloquently scribble:
> In comp.os.linux.help Dances With Crows <[EMAIL PROTECTED]> wrote:
> : BTW, Peter, I've done "fdisk /dev/hdb", "mke2fs /dev/hdb{1,5,6,7,9}",
> : "mount /dev/hdb1 /mnt/somewhere", and "cp -a /usr/local /mnt/somewhere"
> : without rebooting or anything. Everything worked.  This was with kernel 
> : 2.2.10....

> What I'm getting at is that bit in the boot sequence where it lists
> the partition table for each ide device it finds. I don't think that
> code sequence gets repeated. 

It doesn't need to get repeated.
You add the new partition to /etc/fstab.
You mount the new partition manually, and *ding* it's there.
All that sequence at the start does is check the current partitions in
/etc/fstab and mount them.

> The only chance you'd get to run it would
> be when every single partition on that disk was dismounted, and fdisk
> or someone issued a pleading ioctl to the kernel. 

Eh? I don't quite know WHAT you're thinking!
The whole point of the mount command is to allow for an extendable
filesystem without the need to reboot!


-- 
______________________________________________________________________________
|   [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: [EMAIL PROTECTED]
Subject: Re: Problems uninstalling gtk+
Date: Sun, 20 Aug 2000 14:40:48 +0100

Stefan Viljoen <[EMAIL PROTECTED]> did eloquently scribble:
> Hi!

> How do I uninstall an old gtk+ (non RPM) version of gtk so that I can
> install a new one? I. e. how do I totally remove gtk+ and install the newer
> version? I already have the new version, installing it doesn't help as I
> have a depending application (xmms) that keeps on detecting the old version
> (1.2) in the ./configure step and then refuses to finish so I can make it,
> even though I have the new version of gtk+ (1.3) installed.

Have you still got the old versions makefile?
If so, simple make uninstall.

This might not be a good idea though...

The other alternative is to find the old gtk-config script.
(And remove it)

-- 
______________________________________________________________________________
|   [EMAIL PROTECTED]   | "I'm alive!!! I can touch! I can taste!         |
|Andrew Halliwell BSc(hons)|  I can SMELL!!!  KRYTEN!!! Unpack Rachel and    |
|            in            |  get out the puncture repair kit!"              |
|     Computer Science     |     Arnold Judas Rimmer- Red Dwarf              |
==============================================================================

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

From: [EMAIL PROTECTED]
Subject: Re: Installing 2nd hard disk
Crossposted-To: comp.os.linux.hardware,comp.os.linux.help
Date: Sun, 20 Aug 2000 15:26:21 +0100

Hiawatha Bray <[EMAIL PROTECTED]> did eloquently scribble:
> I tried this, but the copied /usr on my new larger disk seems to be missing
> files.  When I try to run programs like Midnight Commander, they don't work
> any more.  I went back to /etc/fstab and restored the mount for my original
> /usr partition, and everything went back to normal.  Could the cp -a command
> be the wrong one for copying everything?  Thanks.

I'm not sure, but I don't know if cp -a deals with sym links, so that might
be your problem...

I've seen people talk of using tar to perform a complete filesystem
transfer.

(Can't remember the exact invokation though)
-- 
______________________________________________________________________________
|   [EMAIL PROTECTED]   | "Are you pondering what I'm pondering Pinky?"   |
|Andrew Halliwell BSc(hons)|                                                 |
|            in            | "I think so brain, but this time, you control   |
|     Computer Science     |  the Encounter suit, and I'll do the voice..."  |
==============================================================================

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

From: [EMAIL PROTECTED] (Paul Kimoto)
Subject: Re: find command
Date: 20 Aug 2000 10:49:58 -0500
Reply-To: [EMAIL PROTECTED]

In article <[EMAIL PROTECTED]>, Lily Fu wrote:
> I use 'find' command quite often on Unix, however,
> the 'find' command on my redhat 6.1 linux doesn't
> seem producing the right output:
>
> I want to find all files with .cgi extension under cgi-bin/
> directory, so I use the following command:
>
> cd cgi-bin
> find . -name *.cgi -print
>
> it only lists  whatever/dir/index.cgi
> and I know I have may other *.cgi files such as search.cgi, compare.cgi
> the above find command does not lists the search.cgi etc.

If you have an entry named "index.cgi" in ".", then the shell will expand
the *.cgi bit into idnex.cgi, and so you will run "find . -name index.cgi
-print".  When using wildcards with find(1), you should always protect them
with quote marks:

$ find . -name '*.cgi' -print

(If this is not the problem, are any of the desired files in directories
referenced by symbolic links?)

-- 
Paul Kimoto
Disclaimer: Other than explicit citations of URLs, hyperlinks appearing
in this article have been inserted without the permission of the author.

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

From: [EMAIL PROTECTED] (jeff)
Subject: Re: find command
Date: 20 Aug 2000 14:52:30 GMT
Reply-To: [EMAIL PROTECTED]

On Sun, 20 Aug 2000 10:21:09 -0400, Lily Fu <[EMAIL PROTECTED]> wrote:
>Hi,
>
>I use 'find' command quite often on Unix, however,
>the 'find' command on my redhat 6.1 linux doesn't
>seem producing the right output:
>
>I want to find all files with .cgi extension under cgi-bin/
>directory, so I use the following command:
>
>cd cgi-bin
>find . -name *.cgi -print
>
>it only lists  whatever/dir/index.cgi
>and I know I have may other *.cgi files such as search.cgi, compare.cgi
>the above find command does not lists the search.cgi etc.
>what's wrong with my find command?
>
>Thanks,
>
>Lily

Try...  find . -name "*.cgi" -print

-jeff

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

From: Amit Kulkarni <[EMAIL PROTECTED]>
Subject: JDK v1.3 for Linux Problems
Date: Sun, 20 Aug 2000 10:00:25 -0500

I just installed JDK 1.3 on my Slackware box.  I've built a simple, test
Java program but can't get it to compile (although I can compile it on
other machines).  Here's the error I get:

bash-2.03$ javac ExamplProgram.java

/usr/local/jdk1.3/bin/javac: /usr/bin/head: No such file or directory
/usr/local/jdk1.3/bin/javac: /usr/bin/cut: No such file or directory
/usr/local/jdk1.3/bin/i386/native_threads/javac: error in loading shared
libraries: libjvm.so: cannot open shared object file: No such file or
directory


I can't find any file/directory called head or cut on my machine.

Thanks for any help,

Amit


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

From: [EMAIL PROTECTED] (jeff)
Subject: Re: LILO re-install question
Date: 20 Aug 2000 14:59:04 GMT
Reply-To: [EMAIL PROTECTED]

On Sun, 20 Aug 2000 12:56:05 +0100, Neuhoff <[EMAIL PROTECTED]> wrote:
>I accidentally installed LILO in my MBR, disabling my
>pre-installed Partition Magic Boot Manager. Upon de-installing
>LILO the MBR got restored, however I am now unable to boot
>into Linux (which is located on hda7 partition) from the PM Boot
>Manager.
>I need the Boot Manager because there are other OSs such as Windows,
>OS/2,
>PC-DOS etc. on various partitions, into which I boot as needed for my
>work.
>
>How can I make my already installed Red Hat Linux 6.2 bootable again
>from
>the Boot Manager? Can I somehow install LILO on my Linux root
>partition, and if so, how?
>
>Juergen Neuhoff


Sounds like you need to install LILO back into the Linux partition.  Make
sure that /etc/lilo.conf has a line like...
  boot = /dev/hda2
(or whatever the Linux partition is), and run...
  lilo.

-jeff

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

From: [EMAIL PROTECTED] (Donald Becker)
Crossposted-To: comp.os.linux.hardware,comp.os.linux.networking
Subject: Re: Dual NICs of same type?
Date: Sun, 20 Aug 2000 15:09:07 GMT

In article <[EMAIL PROTECTED]>,
Clifton T. Sharp Jr. <[EMAIL PROTECTED]> wrote:
>L Slade wrote:
>> > 3c905s are PCI cards.  PCI cards have their IRQs and I/O addresses
>> > auto-configured by the BIOS so they don't step on each other's I/O
>> > ports, assuming you have the BIOS "I have a PnP OS" option set to NO.
>> > PCI cards can share IRQs as well.
>
>Sort of. I played a lot last week when I installed my second Linksys
>LNE100TX. The only configuration that didn't work was when the BIOS
>assigned the same IRQ to both cards; then eth1 wouldn't work at all.

PCI cards can share an interrupt line.
ISA cards cannot share an interrupt line.

A PCI card cannot share an interrupt line with an ISA card.

See
   http://www.scyld.com/expert/irq-conflict.html
if you are having a problem.

-- 
Donald Becker                           [EMAIL PROTECTED]
Scyld Computing Corporation             http://www.scyld.com
410 Severn Ave. Suite 210               Beowulf Clusters / Linux Installations
Annapolis MD 21403

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


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