Linux-Misc Digest #810, Volume #27 Tue, 8 May 01 14:13:03 EDT
Contents:
Re: fdisk without restart (Dicky)
Re: RedHat 7.1 shared memory problem? (Chris Leahy)
Re: how to write a backup script? ([EMAIL PROTECTED])
Re: DHCP and Road Runner blues ([EMAIL PROTECTED])
which library is getpid() in? (Yidao Cai)
Re: Q: TCP stealth mode for dialup only? (Robert Lynch)
Re: Do I need /usr/local, /opt, /tmp and /var partitions? (Lee Allen)
problem in installing the glibc files (arava phani kumar)
Re: Q: TCP stealth mode for dialup only? (Paul Kimoto)
Re: problem in installing the glibc files (Matthias)
Running from a RAM Disk ("Mondrain")
Re: cdrecord only works with SCSI drives? (Bill Unruh)
Network sniffer (Jonathan Kemp)
Re: Quick question: how to copy files *and* directories? (Elf Sternberg)
Information on installation of Debauch ("Natacha Joseph")
On Cloudy Days NFS Mount fails (Neal Rhodes)
Re: Q: TCP stealth mode for dialup only? (Sean)
how to mount a /dev/fd0u1760 formatted floppy (Detlef Weitz)
Re: Running from a RAM Disk ([EMAIL PROTECTED])
wanted: initrd with static sh,dd,mount and insmod program (Detlef Weitz)
Time question (Warren Bell)
rh7.1 and ppp gnome applet (David Mehringer)
----------------------------------------------------------------------------
From: Dicky <[EMAIL PROTECTED]>
Subject: Re: fdisk without restart
Date: Wed, 09 May 2001 00:11:22 +0800
but how other distribution installation disk do?
for example, the Redhat installation can partition
and then format the harddisk without reboot
the machine. How can they do that ?
Thanks
Dicky
Eric en Jolanda wrote:
> > >Is there any method that I don't need to
> > >reboot the machine after fdisk a new partition
> > >and can format and use it ?
> >
> > yes
> >
> > edit /etc/fstab to reflect where you want to mount the new partition (see
> > man 5 fstab) and then mount -a
> >
>
> No!
> Don't try this if fdisk mentions to reboot.
> (Well trying to mount it wont hurt, running mkfs is more dangerous)
>
> You can alter the partitiontable on a disk that has no other partitions
> mounted.
> Then the kernel will be able to update the table correctly.
> If you changed a partitiontable, check /proc/partitions to see if the change
> came through. If so, no need to reboot, if it's not there, reboot. Do not
> attempt to run mkfs unless you're sure the kernel uses the same table as you
> do.
>
> Eric
------------------------------
From: Chris Leahy <[EMAIL PROTECTED]>
Subject: Re: RedHat 7.1 shared memory problem?
Date: Tue, 08 May 2001 12:01:27 -0400
Paul Kimoto wrote:
Thanks for the answer, sorry bout the html
Chris
> In article <[EMAIL PROTECTED]>, Chris Leahy wrote:
> > Did I leave something out of my kernel for shared memory or is top just
> > not working properly with the 2.4.x kernel?
> > This figure remains 0 no matter how long the system is up.
> >
> > Mem: 126672K av, 69420K used, 57252K free, 0K shrd, 4340K
> > buff
>
> 2.4.* kernels always report 0 for shared memory now (see /proc/meminfo)
> even when memory is shared.
>
> > --------------4B197205A8C6CCAC66D7967B
> > Content-Type: text/html; charset=us-ascii
>
> Please do not post text/html to Usenet.
>
> --
> Paul Kimoto
> This message was originally posted on Usenet in plain text. Any images,
> hyperlinks, or the like shown here have been added without my consent,
> and may be a violation of international copyright law.
--
==============================================================
Christopher Leahy | [EMAIL PROTECTED]
UNIX Systems Administrator | http://www.unitedmessaging.com
United Messaging Inc. | Voice (610)699-1058
==============================================================
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: how to write a backup script?
Crossposted-To:
comp.os.linux,comp.os.linux.networking,comp.os.linux.questions,comp.os.linux.security,tw.bbs.comp.network,tw.bbs.comp.unix,tw.bbs.comp.xwindow
Date: Tue, 08 May 2001 16:17:05 GMT
Here's an encrypted dump across the network.
dump 0au -h 0 -b 64 -f - /home | gpg -r backup --encrypt - | rsh
doubledare '(cat > /scratch/home.dump.gpg)'
In comp.os.linux.networking Erez Avraham <[EMAIL PROTECTED]> wrote:
: Greeting
: here is a script i wrote to backup my /etc dir and send it to my ftp
: dir every night. each backup file is named according to the date:
: ####################################################################
: tar czf `date -I`.etc.tar.gz /etc
: sleep 60
: # create a cfg file with username and password, and chmod it to 400
: ncftpput -f login.cfg ftp.yourDomain.com /erez/linux/backup `date
: -I`.etc.tar.gz rm `date -I`.etc.tar.gz
: #####################################################################
: On Tue, 24 Apr 2001 14:13:41 +1000, Frank Ranner <[EMAIL PROTECTED]>
: wrote:
:>percy wrote:
:>>
:>> hi,
:>> who can help me to write a script to backup the system?
:>> now , i can use tar and gzip to backup a directory. i need use ftp to send
:>> to another host. but i don't know how to use script to use ftp command to
:>> send to another host. please help me!
:>>
:>> Percy
:>>
:>> --
:>> [EMAIL PROTECTED]
:>tar is capable of sending to another system on its own like so:
:> tar -cvf diamond:junk.tar x
:>diamond.galaxy.org.au: No route to host
:>tar: diamond\:junk.tar: Cannot open: Input/output error
:>tar: Error is not recoverable: exiting now
:>
:>Of course it would have worked better had diamond been switched on. The
:>point is
:>that tar did try to send the data to host diamond.
:>
:>Unfortunately this scheme relies on rsh to work, and root is precluded
:>from using
:>this mechanism without some jiggery-pokery.
:>
:>Another way is pipe the output of tar through ssh to your destination
:>system. By setting
:>up the appropriate keys, it is possible to do a password-free transfer.
:>
:>Another scheme is to use rsync. This utility also allows backup across
:>the network,
:>but reduces the traffic by only transmitting changes.
:>
:>Regards, Frank Ranner
--
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: DHCP and Road Runner blues
Crossposted-To:
comp.os.linux.x,alt.linux.redhat,alt.linux,alt.os.linux,comp.os.linux.networking,comp.os.linux.setup
Date: Tue, 08 May 2001 16:19:34 GMT
In comp.os.linux.networking william crowell <[EMAIL PROTECTED]> wrote:
: also, you must not connect the modem via a hub. it must be connected
: DIRECTLY to your nic.
You can connect with a hub with the proper cable. But the option below is
probably better.
: furthermore, why buy more ethernet addresses? put a second nic in your
: machine and use ip masquerade. set up a hub on the second nic and make the
: ip address on the second nic the default gateway for the lan. make the rr
: nic the default gateway for your linux box. you can run a zillion computers
: on the lan side through the linux box. note that this violates the
: acceptable use policy.
Exactly.
--
------------------------------
From: Yidao Cai <[EMAIL PROTECTED]>
Subject: which library is getpid() in?
Date: Tue, 08 May 2001 11:08:54 -0500
Reply-To: [EMAIL PROTECTED]
When I compile my program in C, there is no complaint.
But when I use g++, it complains that getpid() undeclared.
cai
--
email: [EMAIL PROTECTED]
------------------------------
From: Robert Lynch <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: Q: TCP stealth mode for dialup only?
Date: Tue, 08 May 2001 09:23:49 -0700
Mark Watson wrote:
>
> When I run Linux (SuSE 7.0), I do not run inetd and
> I don't run apache on port 80. If I do an nmap type port
> scan from another machine, all my ports are closed
> and unavailable, which is what I want (I can use the
> internet, and minimize my exposure to anyone gaining
> access to my PC).
>
> I would like to go a step further and run in stealth mode
> so that when script kiddies do SYN scans (etc.), my TCP
> stack will not send any acknowledgements, effectively
> making my PC invisible on the net.
>
> I would very much appreciate suggestions for doing this the
> easiest way possible, and still have a reasonably secure
> system. (Also, why isn't this the default setup for Linux
> distributions for end-users who do not want to run services?)
>
> Thanks in advance for any information!
>
> -Mark
>
> --Mark Watson
> --Java consulting, Open Source and Content: www.markwatson.com
I am doing something like this. If you are willing or can run a
2.4.x kernel, you can use the configuration I have documented at:
http://home.pacbell.net/rmlynch/firewall/firewall.html
HTH. Bob L.
--
Robert Lynch Berkeley CA USA [EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Lee Allen)
Subject: Re: Do I need /usr/local, /opt, /tmp and /var partitions?
Reply-To: [EMAIL PROTECTED]
Date: Tue, 08 May 2001 16:25:41 GMT
On Mon, 7 May 2001 16:48:52 -0700, "Solar Eclipse" <[EMAIL PROTECTED]>
wrote:
>Advantage to making such partitions:
>If you must reinstall the OS, you won't lose the data in those partitions.
>Disadvantage:
>The size of the partitions is inflexible and if you end up finding that you
>put too much into /var and /opt and not enough into /usr/local and /tmp, you
>might find yourself very frustrated.
>My first time installing Linux, I made all these partitions as recommended
>and ended up regretting it for the above reason. I had all kinds of space
>in partitions I didn't even know about and in no time ran out of space for
>my MP3s!
>I suggest you keep it down to one or two partitions plus a partition for
>swap space.
>Back up your data often (a good idea in general...though I myself don't
>follow it) and it won't matter so much if you lose the information that
>would have been protected by being in their own partitions.
>And yet, I am but an egg when it comes to Linux, and I encourage you to get
>a second opinion from somebody who knows more.
>However, that has been my experience.
>-A
Good answer, to which I would add the following advantages to separate
partitions:
A misbehaving program could fill up /var (too many log entries) or
/tmp (too many temp files). It's nice when this doesn't render your /
(root) filesystem useless.
Similarly, if your system should crash or be powered down during use,
the more frequently modified filesystem is more likely to be
corrupted. So maybe /var gets damaged but / is okay.
And I will amplify the disadvantage given by -A: you will not allocate
space to these filesystems correctly, and one of them will fill up
when others are nearly empty.
>"wroot" <[EMAIL PROTECTED]> wrote in message
>news:9d777o$4if$[EMAIL PROTECTED]...
>> Hi,
>>
>>
>> Does it really make sense to create /usr/local or /opt or /tmp or /var?
>> If I run Debian Potato or Redhat6.2 and install
>> KDE2 or other software that is ahead of its distribution in /opt or
>> /usr/local (separate partition) instead of installing it with all other
>> software, will I be
>> a) more happy
>> b) less happy?
>>
>> I'm asking this because it's not trivial to me how Debian, for example,
>> will update Pototo if I have KDE2 on it.
>>
>> Thanks
>>
>> Wroot
>
>
------------------------------
From: arava phani kumar <[EMAIL PROTECTED]>
Subject: problem in installing the glibc files
Date: Tue, 08 May 2001 16:30:10 -0000
Iam Phani,
i have a problem in installing the glibc files.the system is crashing.CAn
you help me out in this
--
Posted via CNET Help.com
http://www.help.com/
------------------------------
From: [EMAIL PROTECTED] (Paul Kimoto)
Subject: Re: Q: TCP stealth mode for dialup only?
Date: 8 May 2001 12:36:33 -0400
Reply-To: [EMAIL PROTECTED]
In article <hhUJ6.19$[EMAIL PROTECTED]>,
Mark Watson wrote:
> When I run Linux (SuSE 7.0), I do not run inetd and
> I don't run apache on port 80. If I do an nmap type port
> scan from another machine, all my ports are closed
> and unavailable, which is what I want (I can use the
> internet, and minimize my exposure to anyone gaining
> access to my PC).
>
> I would like to go a step further and run in stealth mode
> so that when script kiddies do SYN scans (etc.), my TCP
> stack will not send any acknowledgements, effectively
> making my PC invisible on the net.
I think that you can do this by running a 2.4.* kernel with netfilter, and
DROPping incoming packets that aren't ESTABLISHED or RELATED. See the
Linux 2.4 Packet Filtering HOWTO
http://netfilter.samba.org/unreliable-guides/packet-filtering-HOWTO/
(e.g., section 5).
--
Paul Kimoto
This message was originally posted on Usenet in plain text. Any images,
hyperlinks, or the like shown here have been added without my consent,
and may be a violation of international copyright law.
------------------------------
From: Matthias <[EMAIL PROTECTED]>
Subject: Re: problem in installing the glibc files
Date: Tue, 8 May 2001 18:35:52 +0200
arava phani kumar wrote:
> Iam Phani,
> i have a problem in installing the glibc files.the system is crashing.CAn
> you help me out in this
>
Not with this amount of information.
--
Go Open Source and build software that doesn't crash even when it's hit
by an U.S. Navy submarine piloted by rich civilians.
[Seen at freshmeat.net's editorials.]
------------------------------
From: "Mondrain" <[EMAIL PROTECTED]>
Subject: Running from a RAM Disk
Date: Tue, 08 May 2001 12:44:59 -0500
If this has been discussed before, all the better, then somebody could
please point to where the FAQ or Summary is.
I'm contemplating running my firewall (and/or) mail server exclusively
from RAM. I get some 512 MB of RAM then boot off CD. The kernel I build
for that machine and burn to bootable CD, and the root file system is
also put unto the CD.
So, my question is: why would that not work?
Assumption 1: Power is not an issue. Only concern is failure of devices.
Some more worrying however, is that I heard that RAM is unreliable.
Supposedly, if the machine ran for long enough, I would start seeing
loads of bit errors. Is this true - could this be circumvented with ECC
RAM?
BTW: My motive is to silence the machine completely. I want no fans. The
CPU can be passively cooled (as long as I don't use something like a PII
or higher, the HDD is not installed, and the power supply can be bought
as "low noise" (in which case my fridge is louder). Two more words: "home" and
"DSL".
Any comments?
,,
mondrain
------------------------------
From: [EMAIL PROTECTED] (Bill Unruh)
Subject: Re: cdrecord only works with SCSI drives?
Date: 8 May 2001 16:46:33 GMT
In <[EMAIL PROTECTED]> Ryan Joseph <[EMAIL PROTECTED]> writes:
>I thought that cdrecord was supposed to work with almost all types of
>ATAPI/IDE
>drives as well - or did I just misread somewhere?
Nope, just did not read the README.linux that came with cdrecord.
cdrecord only works with scsi, but an ATAPI drive can be made to look
like a scsi drive with the ide-scsi drivers.
------------------------------
From: [EMAIL PROTECTED] (Jonathan Kemp)
Crossposted-To:
comp.security.firewalls,;,comp.os.linux.security,;,comp.os.linux.networking,;
Subject: Network sniffer
Date: Tue, 08 May 2001 17:11:14 GMT
Hi all,
We are looking for a pretty good network sniffer to be able to monitor
our network. We have around 30 PCs, running Linux, WinNT, Win2K, MAC
OS 9... from the basic workstation to the big Oracle database server.
The best for us would probably be a Win2K sniffer, since all the
workstations are running win2K...but we could manage to use anything
else.
So that's it, to make a short story, we are simply looking for some
advices on choosing a good network sniffer.
Thanks for the help
Jonathan Kemp
Capella Technologies
------------------------------
From: [EMAIL PROTECTED] (Elf Sternberg)
Subject: Re: Quick question: how to copy files *and* directories?
Date: 8 May 2001 17:01:23 GMT
In article <[EMAIL PROTECTED]>
[EMAIL PROTECTED] (3FE) writes:
>> > I want--in a single command--to copy a directory ***and all files and
>> > subdirectories within that directory*** to another location.
Assuming that both directories exist and you're already in the origin
directory:
tar cf - . | ( cd /path/to/target/dir; tar xvf - )
Elf
--
Elf M. Sternberg, rational romantic mystical cynical idealist
http://www.halcyon.com/elf/
Fast food restaurants are like gay bathhouses in San Francisco,
places where people go to engage in high-risk behaviors.
- Greg Critser
------------------------------
Reply-To: "Natacha Joseph" <[EMAIL PROTECTED]>
From: "Natacha Joseph" <[EMAIL PROTECTED]>
Subject: Information on installation of Debauch
Date: Tue, 8 May 2001 13:21:29 -0400
Hi !
sorry if i repeat my question but i did not recived any help. Maybe i'm not
on the good newsgroup ! If it's that, tell me where to go please !!
I used Linux RedHat 6.2 for 3-4 months now, so i'm a newbie !
I have to found some memory leaks problems in my program and some people
suggest me some product like Debauch.
My problem is that I really don't know how to install it. There's nothing
in the README file to help me.
Can somebody please help me or at least tell me where I can get some help ?
Thanks a lot
Natacha
[EMAIL PROTECTED]
------------------------------
Date: Tue, 08 May 2001 13:43:11 -0400
From: Neal Rhodes <[EMAIL PROTECTED]>
Subject: On Cloudy Days NFS Mount fails
I've got two 5.0.2 systems with NFS volumes exported, which are mounted
by each other.
I've got a Linux 6.2 system trying to get into the same game, mounting
the SCO drives.
Sometimes the mount goes away, and it would seem that nothing will
bring it back. The error from the linux side is:
mount: mdpatl2:/u/stp failed, reason given by server: Permission denied
The SCO syslog says:
7 16:45:05 mdpatl2 mountd[420]: mount request: getfh failed on /u/stp:
Invalid argument
I've tried eliminating arguments from the mount command on the
linux side, to no avail.
/bin/mount -t nfs -o exec,dev,suid,rw medzilla:/u/prod /medprod
#/bin/mount -t nfs -o exec,suid,rw medzilla:/u/prod /medprod
#/bin/mount -t nfs -o exec,rw medzilla:/u/prod /medprod
#/bin/mount -t nfs -o rw medzilla:/u/prod /medprod
#/bin/mount -t nfs medzilla:/u/prod /medprod
#/bin/mount -t nfs medzilla:/usr /medprod
In a few days it might start working again. Ideas?
--
==============================================================================
Neal Rhodes MNOP Ltd (770)-
972-5430
President Lilburn (atlanta) GA 30247 Fax:
978-4741
[EMAIL PROTECTED]
http://www.mnopltd.com/
------------------------------
From: Sean <[EMAIL PROTECTED]>
Subject: Re: Q: TCP stealth mode for dialup only?
Date: Tue, 08 May 2001 18:36:09 +0100
The reason stealth mode is not the default setup, is because the tcp/ip
protocol specifies that you respond to any packets you receive. If you
decide not to do so, that is your own business, but you shouldn't expect
your Linux distro to go against the way the internet works by default!
Sean
Mark Watson wrote:
<snip>
>
> I would very much appreciate suggestions for doing this the
> easiest way possible, and still have a reasonably secure
> system. (Also, why isn't this the default setup for Linux
> distributions for end-users who do not want to run services?)
>
> Thanks in advance for any information!
>
> -Mark
>
> --Mark Watson
> --Java consulting, Open Source and Content: www.markwatson.com
------------------------------
From: Detlef Weitz <[EMAIL PROTECTED]>
Subject: how to mount a /dev/fd0u1760 formatted floppy
Date: Tue, 08 May 2001 19:43:37 +0200
Reply-To: [EMAIL PROTECTED]
hi,
i'm using suse linux,
and i created (fdformat) an 1760KB Floppy,
but how to mount?
thx
maen
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: Running from a RAM Disk
Date: Tue, 08 May 2001 17:52:27 GMT
"Mondrain" <[EMAIL PROTECTED]> writes:
> If this has been discussed before, all the better, then somebody could
> please point to where the FAQ or Summary is.
>
> I'm contemplating running my firewall (and/or) mail server exclusively
> from RAM. I get some 512 MB of RAM then boot off CD. The kernel I build
> for that machine and burn to bootable CD, and the root file system is
> also put unto the CD.
>
> So, my question is: why would that not work?
> Assumption 1: Power is not an issue. Only concern is failure of devices.
Are you putting it on a UPS? Even there, power _is_ an issue, as
UPSes aren't _perfectly_ reliable. [Aside: The only way I'd be
anywhere near prepared to call UPSes reliable, under paranoid
circumstances, would be if the system has _TWO_ power supplies, either
of which could be unplugged or _replaced_ without necessitating a
shutdown...]
> Some more worrying however, is that I heard that RAM is unreliable.
> Supposedly, if the machine ran for long enough, I would start seeing
> loads of bit errors. Is this true - could this be circumvented with
> ECC RAM?
A few bits going wonky should be enough to cause a problem
necessitating rebooting. ECC should diminish the likelihood somewhat,
but it's not magical :-(.
> BTW: My motive is to silence the machine completely. I want no
> fans. The CPU can be passively cooled (as long as I don't use
> something like a PII or higher, the HDD is not installed, and the
> power supply can be bought as "low noise" (in which case my fridge
> is louder). Two more words: "home" and "DSL".
One suggestion: Don't run the mail server there. If the box _does_ go
down, and has no writable storage, anything queued will be lost. I'd
want to run the mail server on a machine that _does_ have a disk
drive.
And quite frankly, I suspect you'd be better served by getting
something like the NetLink DSL router. It's small, cheap, quiet, and
behaves more like an appliance, which is what it sounds like you want.
If you were seriously prepared to spend the bucks to have 512MB of ECC
RAM, I'd suggest downgrading to 64MB of RAM, and get a CompactFlash
card with IDE interface to store /var on. CF cards are silent (which
you want) but also provide persistent storage (which you probably also
want).
--
(reverse (concatenate 'string "ac.notelrac.teneerf@" "454aa"))
http://vip.hyperusa.com/~cbbrowne/resume.html
``Lisp has jokingly been called "the most intelligent way to misuse a
computer". I think that description is a great compliment because it
transmits the full flavor of liberation: it has assisted a number of our
most gifted fellow humans in thinking previously impossible thoughts.''
-- "The Humble Programmer", E. Dijkstra, CACM, vol. 15, n. 10, 1972
------------------------------
From: Detlef Weitz <[EMAIL PROTECTED]>
Subject: wanted: initrd with static sh,dd,mount and insmod program
Date: Tue, 08 May 2001 19:49:06 +0200
Reply-To: [EMAIL PROTECTED]
hi,
it seems that i'm not able to build an initrd.
i need it to load an modul (doc.o) for flash-ram,
mounting the cdrom,
dd a root-fs (from cd) to the flash,
changing real-root (/proc/dev...)
and leave.
dd will not run, maybe not statically,
so maybe anybody has the dd program statically linked,
or a complete initrd (runnable).
insmod dd seems to work,
who can help
thx
maen
------------------------------
From: Warren Bell <[EMAIL PROTECTED]>
Subject: Time question
Date: Tue, 08 May 2001 11:03:09 -0700
Is it standard practice to keep the bios time at GMT and then have your
system time adjust from that, or should you keep your bios time at your
local time?
------------------------------
From: David Mehringer <[EMAIL PROTECTED]>
Subject: rh7.1 and ppp gnome applet
Date: Tue, 8 May 2001 13:06:19 -0500
I just installed RH7.1 and am having problems with the RH gnome ppp dialup
connection applet. I can connect OK, but the applet claims I am not
connected (which means that I cannot disconnect using it). Also, the
bandwidth usage graph remains blank. No problems like this with the version
of this applet that shipped with 7.0; I thought that was great. Anyone
having similar problems? Anyone have a solution?
Thanx.
--
David Mehringer, Ph.D. University of Illinois
[EMAIL PROTECTED] National Center for Supercomputing
Research Scientist, Applications/Department of Astronomy
Software Applications Developer, 1002 W. Green St.
BIMA Data Archivist Urbana, IL 61801 USA
voice: 217 244 5468 fax: 217 244 7638
http://monet.astro.uiuc.edu/~dmehring/dmehring.html
------------------------------
** 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
******************************