Linux-Misc Digest #84, Volume #28 Mon, 11 Jun 01 12:13:01 EDT
Contents:
Re: /bin/login cannot be removed ("Peter T. Breuer")
Re: HELP: how to "tar" directory? ("You, Jin-Ho")
Re: 2GB File size limitation (Betastar)
OpenLDAP question (Alex Page)
backup/restore VFAT partition via Linux ("Gratien D'haese (Hewlett-Packard)")
Re: how to disable fsck progress bar? (Paul Thompson)
Re: printer setup ("You, Jin-Ho")
Re: The movie Swordfish and Linus Torvalds (Jan Schaumann)
modprobe at boot time ("����")
Re: backup/restore VFAT partition via Linux ("You, Jin-Ho")
Re: hi (Christopher Albert)
Re: hi ("You, Jin-Ho")
Re: Hard Drive Re-partitioning (Robert Davies)
Re: /bin/login cannot be removed (Robert Davies)
Re: A grep question ("Peter McFadden")
cronjob unreliable ? (Jan =?ISO-8859-1?Q?D=FCnnweber?=)
I don't find generic.h file in linux (jose luis fernandez diaz)
Re: Special Characters (Yvan Loranger)
time to switch to lpRNG? (Christoph Kukulies)
Re: Problem creating VFAT filesystem (Martin Lichtin)
Re: modprobe at boot time (Sebastien Stormacq)
----------------------------------------------------------------------------
From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Subject: Re: /bin/login cannot be removed
Crossposted-To: comp.os.linux.setup
Date: Mon, 11 Jun 2001 12:19:54 GMT
In comp.os.linux.misc Stephen Rank <[EMAIL PROTECTED]> wrote:
> "Peter T. Breuer" <[EMAIL PROTECTED]> writes:
>> In comp.os.linux.misc Michael Heiming <[EMAIL PROTECTED]> wrote:
>> > But assuming from the fact, that the OP
>> > doesn't really know what's going on, it would be better to reinstall
>> > from
>> > scratch, case he really got hacked, applying the latest patches to
>>
>> His distro surely provides him with tools (tripwire? rpm? - does nayone
>> kow what the debian equivalent is, if there is one?) that will
>> check his installation for him.
> The Debian equivalent of Tripwire is, by strange coincedence, Tripwire
> ;) But if the system's been cracked, how can the OP trust any of the
> tools? Including the kernel? Modern rootkits can make themselves
He only needs to be able to trust one of them. Running a rescue cd
and checking the md5sums should be enough.
> very hard to find and (particularly) remove.
Wile anything is possible, this is needless scaremongering. Rootkits
are generally very easy to find once you are looking, because they all
seem to follow the same pattern of inventing hidden directories below /dev
and replacing key executables, which one should normally check at once and
hence find the rootkit.
The hard bit is to know when you should be looking for them.
> Of course, this is _if_ the OP's been cracked. Detecting such a state
> is left as an exercise for the reader :)
The only interesting bit.
Peter
------------------------------
From: "You, Jin-Ho" <[EMAIL PROTECTED]>
Subject: Re: HELP: how to "tar" directory?
Date: Mon, 11 Jun 2001 21:56:17 +0900
> I have used O'Reilly's Linux in a Nutshell book to
> look this up and while I am able to create a .tar.gz
> file, the .tar.gz or .tar cannot be untarred on
> Windows 95 and turns out to be an invalid archive. I
> am creating a .tar.gz for use by a Windows 95 user.
> Please help.
When the .tar.gz files created in linux box are transferred
to windows box by ftp, they can be currupted under ascii mode
transfer. Just set binary mode.
Jin-Ho You
------------------------------
From: [EMAIL PROTECTED] (Betastar)
Crossposted-To:
comp.os.linux.setup,comp.os.linux.x,linux.redhat,linux.redhat.install,linux.redhat.misc,redhat.kernel.general
Subject: Re: 2GB File size limitation
Date: Mon, 11 Jun 2001 12:43:14 GMT
On 11 Jun 2001 07:04:33 -0400, [EMAIL PROTECTED] wrote:
>Specifically, Samba and FTP have big problems with big files--so you
>will probably find that you *still* can't download the file, even
>after following the above instructions.
AH - but I can download them throught Netscape, then, rather than
using a FTP client. That I do know =)
Thanks
Betastar
------------------------------
From: [EMAIL PROTECTED] (Alex Page)
Subject: OpenLDAP question
Date: 11 Jun 2001 06:00:39 -0700
I've been unable to locate a more specific LDAP-related newsgroup, so
I'm posting here in c.o.l.m - if anyone knows somewhere better, please
let me know. I'm using Google's rather unwieldy Usenet interface, so
forgive me :-)
I'm trying to configure an LDAP server for our company. I've worked
out the structure I want on paper, and configured and installed
OpenLDAP. slapd is up and running fairly happily.
However, any time I try to use ldapadd to put some data in the system,
I get errors. I've spent a few days poking around the web for some
simple LDAP resources and HOWTOs, and want to avoid ploughing through
the RFCs if at all possible. Does anyone have any advice or resources
for this sort of thing? Once I get it to work, I'll document it and
put it up on the OpenLDAP FAQ-O-Matic (at http://www.openldap.org ).
My slapd.conf (with comments and stuff removed) looks like:
include /usr/local/etc/openldap/schema/core.schema
pidfile /usr/local/var/slapd.pid
argsfile /usr/local/var/slapd.args
modulepath /usr/local/libexec/openldap
moduleload back_ldbm.la
database ldbm
suffix "dc=solid-state-logic,dc=com"
directory /usr/local/var/openldap-ldbm-ssl
defaultaccess write # Couldn't get authentication to work
nicely
index objectClass,uid,dc eq
I'm trying to add an ldif file which looks like:
dn: ou=IT,dc=solid-state-logic,dc=com
objectclass: organisationalunit
cn: IT Department
dn: uid=alexp,ou=IT,dc=begbroke,dc=solid-state-logic,dc=com
objectclass: person
uid: alexp
givenname: Alex
sn: Page
cn: Alex Page
However, running /usr/local/bin/ldapadd -f my.ldif -x gives me:
adding new entry "ou=IT,dc=solid-state-logic,dc=com"
ldap_add: Object class violation
ldif_record() = 65
I know that this probably means that I've missed out a required
attribute or something, but I'm stumped. Any help?
Cheers,
Alex
------------------------------
From: "Gratien D'haese (Hewlett-Packard)" <[EMAIL PROTECTED]>
Crossposted-To: hp.os.linux
Subject: backup/restore VFAT partition via Linux
Date: Mon, 11 Jun 2001 15:27:20 +0200
Hi,
I'm trying to backup a Windows98 FAT32 partition mounted via
(multi-boot) Linux system with the help of good old tar command.
To restore from scratch I do the following:
# mkdosfs -F 32 /dev/hda1
# mount -t vfat /dev/hda1 /windows/C
# cd /windows/C
# tar xvpf /tmp/windowsC.tar
# cd /
# umount /dev/hda1
# dosfsck /dev/hda1
Reboot & select Windows
==> FAILS
I assume what I tried was over-simplified, and it is much more tricky
than I thought, or it is just not possible with tar at all.
I guess with "dd" command I would have more luck?
Anyone out there with experience in this field with some good advice....
Thanks in advance.
Gratien D'haese
------------------------------
From: Paul Thompson <[EMAIL PROTECTED]>
Subject: Re: how to disable fsck progress bar?
Date: Mon, 11 Jun 2001 13:37:53 GMT
If you mean in the system startup, edit your rc.sysinit.
On 7 Jun 2001 [EMAIL PROTECTED] wrote:
> The man page for fsck describs this option:
>
> -C Display completion/progress bars for those filesys-
> tems checkers (currently only for ext2) which sup-
> port them. Fsck will manage the filesystem check-
> ers so that only one of them will display a
> progress bar at a time.
>
> However, the program bar is on by default. How can I turn it OFF?
>
>
--
------------------------------
From: "You, Jin-Ho" <[EMAIL PROTECTED]>
Subject: Re: printer setup
Date: Mon, 11 Jun 2001 22:46:25 +0900
Chakravarthy K Sannedhi wrote:
>
> I am using Red Hat v7.0 on my computer, which is connected to the local
> network. There is a line printer for the Windows machine, which is also
> connected to the same network.
I assume the Windows machine be Windows 9x or Me.
Using the *printtool* i tried accessing that
> printer. I supplied the hostname of that windows machine,
In addition to the name of the windows machine,
set the IP address of the windows machine.
> printer name, my username and password for that windows machine after choosing the
> "smb/windows 95/98/nt printer" option from the menu.
The printer under the windows machine must be configured to be shared
before.
The password should be same to the one that is set to the shared printer
not the one to the username.
After which I tried to
> test the printer by giving a job.
To test the samba connection to the printer of the windows machine,
try the command like following at the linux box.
[iso]# smbclient //windows-machine/printer-name -I windows-machine-IP
added interface ip=xxx.xxx.xxx.xxx bcast=xxx.xxx.xxx.255
nmask=255.255.255.0
added interface ip=192.168.227.1 bcast=192.168.227.255
nmask=255.255.255.0
Password: xxxxxx <-- printer's password
smb: \> quit
The -I option is optional. If you can see the prompt "smb: \>",
you succeeded in the connection.
Jin-Ho You
------------------------------
From: [EMAIL PROTECTED] (Jan Schaumann)
Subject: Re: The movie Swordfish and Linus Torvalds
Date: Mon, 11 Jun 2001 13:57:18 -0000
* Linus Torvalds wrote:
> In article <[EMAIL PROTECTED]>,
> Fear gan dia <[EMAIL PROTECTED]> wrote:
> >
> >The character's name was Axel Torvalds, and he was supposedly one of the world's
> >top cyber-criminals. If I was Linus I would be talking to a lawyer right now!
>
> Hey, I'd rather just have a signed copy of the thing on DVD ;)
>
> Linus "I think it sounds fun" Torvalds
>From what I've heard, the movie's supposed to suck. Or at least, not be
better than average. Oh well, at least they didn't use your name in
"Antitrust". ;-P
-Jan
--
Jan Schaumann <http://www.netmeister.org>
chown -R us.enemy your_base
------------------------------
From: "����" <[EMAIL PROTECTED]>
Subject: modprobe at boot time
Date: Mon, 11 Jun 2001 22:29:14 +0800
i install a 2940 in my redhat 7.1 box. i have to execute
modprobe aic7xxx
after boot up each time. can i load it automatically? thanks.
------------------------------
From: "You, Jin-Ho" <[EMAIL PROTECTED]>
Crossposted-To: hp.os.linux
Subject: Re: backup/restore VFAT partition via Linux
Date: Mon, 11 Jun 2001 23:27:41 +0900
You have to set up the windows partition bootable.
Boot with Windows startup floppy diskette or cdrom,
and do the command, "sys c:".
Jin-Ho You.
"Gratien D'haese (Hewlett-Packard)" wrote:
>
> Hi,
>
> I'm trying to backup a Windows98 FAT32 partition mounted via
> (multi-boot) Linux system with the help of good old tar command.
>
> To restore from scratch I do the following:
> # mkdosfs -F 32 /dev/hda1
> # mount -t vfat /dev/hda1 /windows/C
> # cd /windows/C
> # tar xvpf /tmp/windowsC.tar
> # cd /
> # umount /dev/hda1
> # dosfsck /dev/hda1
>
> Reboot & select Windows
> ==> FAILS
>
> I assume what I tried was over-simplified, and it is much more tricky
> than I thought, or it is just not possible with tar at all.
>
> I guess with "dd" command I would have more luck?
>
> Anyone out there with experience in this field with some good advice....
>
> Thanks in advance.
>
> Gratien D'haese
------------------------------
From: Christopher Albert <[EMAIL PROTECTED]>
Subject: Re: hi
Date: Mon, 11 Jun 2001 16:33:32 +0200
amod khardekar wrote:
>
> please can anybody can help me please mail any site whre i can get free books on
> linux i want to learn linux i am a beginner
>
> amod
amod,
www.linuxdocs.org
Chris
------------------------------
From: "You, Jin-Ho" <[EMAIL PROTECTED]>
Subject: Re: hi
Date: Mon, 11 Jun 2001 23:34:59 +0900
see http://www.linuxdoc.org
amod khardekar wrote:
>
> please can anybody can help me please mail any site whre i can get free books on
> linux i want to learn linux i am a beginner
>
> amod
------------------------------
From: Robert Davies <[EMAIL PROTECTED]>
Subject: Re: Hard Drive Re-partitioning
Crossposted-To: comp.os.linux.setup
Date: Mon, 11 Jun 2001 14:13:43 +0100
Peter T. Breuer wrote:
> In comp.os.linux.misc Skylar Thompson <[EMAIL PROTECTED]> wrote:
>> I just got a new SCSI hard drive, and am having some trouble
>> repartitioning it. I would
>
> Well, fix your scsi setup then! Something as basic as that not working
> indicates that your scsi system is fouled.
>
> It is usually cabling or termination (lack of). Check the kernel
> messages with dmesg.
Or scsi-id's ;)
One other thing get used to saying create a file system, use mkfs, as
formatting drives is not really a good idea or necessary these days.
M$ have confused you with their 'format' a floppy, which does both.
Rob
PS. It's worth checking a new drive with badblocks before putting data on
it, it's very simple to do, and could save you problems later, recovering
data.
------------------------------
From: Robert Davies <[EMAIL PROTECTED]>
Subject: Re: /bin/login cannot be removed
Crossposted-To: comp.os.linux.setup
Date: Mon, 11 Jun 2001 14:22:28 +0100
Stephen Rank wrote:
> "Peter T. Breuer" <[EMAIL PROTECTED]> writes:
>
>> In comp.os.linux.misc Michael Heiming <[EMAIL PROTECTED]> wrote:
>> > But assuming from the fact, that the OP
>> > doesn't really know what's going on, it would be better to reinstall
>> > from
>> > scratch, case he really got hacked, applying the latest patches to
>>
>> His distro surely provides him with tools (tripwire? rpm? - does nayone
>> kow what the debian equivalent is, if there is one?) that will
>> check his installation for him.
>
> The Debian equivalent of Tripwire is, by strange coincedence, Tripwire
> ;) But if the system's been cracked, how can the OP trust any of the
> tools? Including the kernel? Modern rootkits can make themselves
> very hard to find and (particularly) remove.
>
> Of course, this is _if_ the OP's been cracked. Detecting such a state
> is left as an exercise for the reader :)
This is why to use tripwire properly you have to build it statically, and
store it's database with it's programs on read only media.
That still does not protect you from a kernel module, which could be
altering system calls, in such a way to defeat your tripwire run.
So you really need to do a clean room install and then mount a compromised
systems disk 'mount -o noexec,nosuid,nodev /dev/hd<oldisk> /mnt/cracked.
You can mostly only detect problems, not prove their abscence :)
Rob
------------------------------
From: "Peter McFadden" <[EMAIL PROTECTED]>
Subject: Re: A grep question
Date: Mon, 11 Jun 2001 15:58:49 +0100
"Georges Heinesch" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Which grep (or egrep, fgrep) options do I have to use to extract all
> lines from a file except a lines containing a given string.
>
> # grep "list all lines except" 'foobar'
Probably too late to be of any use, but your could try
grep -v 'foobar' filename
------------------------------
From: Jan =?ISO-8859-1?Q?D=FCnnweber?=
Subject: cronjob unreliable ?
Date: Mon, 11 Jun 2001 18:08:43 +0200
Reply-To: [EMAIL PROTECTED]
i edited my /etc/crontab to have a program
running automatically every 10 minutes, but
obviously it is not working for me. the
entries look like this :
00 * * * * /sbin/jobrunner --option commandlinearg
10 * * * * /sbin/jobrunner --option commandlinearg
20 * * * * /sbin/jobrunner --option commandlinearg
.
.
.
can anybody explain why cron doesn't invoke
the jobrunner for me every ten minutes, when
i configure it this way ?
------------------------------
From: jose luis fernandez diaz <[EMAIL PROTECTED]>
Subject: I don't find generic.h file in linux
Date: Mon, 11 Jun 2001 16:36:23 +0200
Hi,
I have linux RedHat 6.1 on i386. I looked for the file 'generic.h' in
directory '/usr/include' but I didn't find it.
Do anybody know where can I find it ?
Thanks in advance,
Jose Luis.
--
==============================================
Jose Luis Fern�ndez D�az
==============================================
�rea de Telecomunicaciones
tecsidel
C/ Enrique Jardiel Poncela, 6
28016 Madrid
Tel: (+34) 91 353 08 72
mailto:[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Yvan Loranger)
Subject: Re: Special Characters
Date: 11 Jun 2001 15:11:28 GMT
Reply-To: [EMAIL PROTECTED] (Yvan Loranger)
> On Tue, 15 May 2001 11:12:44 -0400, Jason C. Hill
> <[EMAIL PROTECTED]> wrote:
>>How would I reproduce an : � on a Solaris keyboard/OS (Or Linux). In case
>>that doesn't come out correctly, that's the letter e with an ' (accent) mark
>>over the top of it. It's not sufficient enough for me to type e' in order
>>to reproduce it.
It starts with running something like [in /etc/rc.d/rc.local ?]
stty cs8 -istrip -parenb
setfont lat1-16.psfu
loadkeys usintl.map
# loadkeys us.map # revert to default behaviour
You may need to play with ~/.inputrc
set meta-flag on
set convert-flag off
set input-meta on
set output-meta on
"\e[1~": beginning-of-line
"\e[3~": delete-char
"\e[4~": end-of-line
That's for Linux, then type 'e to get � [try `a, "i, ^o, ~n, right-alt comma]
For X, edit XF86Config so you have us_intl for XkbLayout.
You may need to do more :(
--
Merci........Yvan Pour le plein air: Club Vertige
http://www.ncf.ca/vertige
------------------------------
From: Christoph Kukulies <[EMAIL PROTECTED]>
Subject: time to switch to lpRNG?
Date: 11 Jun 2001 15:25:26 GMT
Redhat (6.1) lpd printing has always been troublesome here on me.
lpd_tmp files were cumulating in the spool directories. queues stopped
working. clients and servers didn't match. With some patches silently
lpRNG was introduced changing the user interface to commands like
lpq and such (users started complaining that the queue status wan't displayed
any longer). lpd being not very safe lpRNG made things worse.
So I was hesistant for a while to use lpRNG.
Now I'm in need of better queue control like filters etc. and I'm thinking
of switching to lpRNG again.
What are the risks?
--
Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
------------------------------
From: Martin Lichtin <[EMAIL PROTECTED]>
Subject: Re: Problem creating VFAT filesystem
Date: Mon, 11 Jun 2001 09:38:41 -0600
> > Anyone know what the problem could be here?
> >
> > root# mkfs.msdos -F 32 -I /dev/scd1
> > mkfs.msdos: unable to get drive geometry for '/dev/scd1'
> > mkfs.msdos 2.2 (06 Jul 1999)
>
> What's the -I option for? (It's not in my version of mkdosfs)
-I Normally you are not allowed to use any 'full' fixed disk devices.
mkdosfs will complain and tell you that it refuses to work. This is dif�
ferent when using MO disks. One doesn't always need partitions on MO
disks. The filesytem can go directly to the whole disk. Under other
OSes this is known as the 'superfloppy' format.
> Anyway, is it really /dev/scd1 that you want?
Yes, it's a DVD-RAM drive. I can put a ext2 filesystem on it just
fine. A fat32 often works, but sometimes gives me above error.
Thanks for any ideas,
Martin
------------------------------
From: Sebastien Stormacq <[EMAIL PROTECTED]>
Subject: Re: modprobe at boot time
Date: Mon, 11 Jun 2001 17:54:05 +0200
On SuSE, you have to insert a line (modprobe xxx) in the=20
/etc/rc.d/boot.local file
I guess there is a similar mechanism in RH
Hope this helps
Seb
=C2=FB=C2=FB wrote:
> i install a 2940 in my redhat 7.1 box. i have to execute
> modprobe aic7xxx
> after boot up each time. can i load it automatically? thanks.
>=20
>=20
>=20
------------------------------
** 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
******************************