Linux-Misc Digest #279, Volume #27                Sun, 4 Mar 01 09:13:03 EST

Contents:
  Re: newbie: md5 + C + /etc/shadow (Dave Vandervies)
  Re: Test if mount was a sucess from shell script? (Michael Heiming)
  Re: Shutdown Linux without a keyboard (Andreas Schweitzer)
  SUSE 7.0 Installation trouble.... (FrOgGy)
  Re: Test if mount was a sucess from shell script? ("Peter T. Breuer")
  Re: looking for a HOWTO on shell scripting (Monte Milanuk)
  Re: newbie: md5 + C + /etc/shadow (Martin Ambuhl)
  Re: LILO and second master hard-disk ("Eric en Jolanda")
  Re: Linux and connection to the Internet (Uwe Malzahn)
  Re: Linux and connection to the Internet (Arctic Storm)
  Re: 2 NICs on 1 machine. (Bit Twister)
  How do I s/w unblank screen? ([EMAIL PROTECTED])
  Re: News/leafnode setup-micro HOWTO (chris)
  Re: IPTables doesn't work (nor IPCHAINS) for kernel 2.4.1 ("Gene Heskett")
  rpm up2date (xxxxxxxxx)
  Re: SUSE 7.0 Installation trouble.... ("Roy Batty")
  Re: Test if mount was a sucess from shell script? ("Roy Batty")
  Re: 2 NICs on 1 machine. ("Rick Goh")
  Re: Unable to boot 2.4.2 ("Justin R. Smith")
  Re: Test if mount was a sucess from shell script? (Lee Webb)
  Re: 2 NICs on 1 machine. (Arthur Pedyczak)
  Re: MS to Enforce Registration - or Else (Stuart Krivis)
  Re: 2 NICs on 1 machine. ("John Gill")
  USB Scanner with SuSE 7.1 (Shakes)

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

From: [EMAIL PROTECTED] (Dave Vandervies)
Crossposted-To: comp.lang.c
Subject: Re: newbie: md5 + C + /etc/shadow
Date: 4 Mar 2001 06:30:10 GMT

In article <97oog6$pg7$[EMAIL PROTECTED]>,
Michal Kolesar <[EMAIL PROTECTED]> wrote:
>Hi,
>
>I am newbie to C. I have a question.
>How is possible to generate from plain text to the encrypted
>md5 (or I think that it is md5) password looking like /etc/shadow password?

The C language (which is what we discuss here in comp.lang.c) doesn't
have direct support for MD5; you'll have to find the algorithm for it
(if a web search doesn't turn anything up, you could try asking about
it in sci.crypt, but make sure you read their FAQ first to see if it
answers your question) and then implement that algorithm yourself.
(If your system uses MD5 passwords, and you have access to the source
code for its library, you might be able to cheat by looking at the source
for the crypt() function that most unices and clones thereof have.)

If, once you've found the algorithm, you run into problems with
implementing it in C, show us your code and tell us what the problem is,
and we'll try to help you fix it - answering questions about C is one
of the things we _do_ do here.


dave

-- 
Dave Vandervies                           [EMAIL PROTECTED]
Coming up next in Dan Pop's occasional series of implementations of standard
library functions in strictly conforming ISO C:        signal()
                                         --Richard Heathfield in comp.lang.c

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

Date: Sun, 04 Mar 2001 08:36:20 +0100
From: Michael Heiming <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup
Subject: Re: Test if mount was a sucess from shell script?

Ken Williams wrote:

> I'm trying to mount a drive before I do something, does anyone know how I can
> test to see if the mount was sucessfull from a bash shell script?
>
> Thanks.

Hello,

you could use something like this:

if ! grep "/your_mountpoint" /etc/mtab > /dev/null;then echo "is not
mounted";else echo  "is mounted";fi

Good luck

Michael Heiming



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

From: [EMAIL PROTECTED] (Andreas Schweitzer)
Subject: Re: Shutdown Linux without a keyboard
Date: 4 Mar 2001 08:10:40 GMT
Reply-To: [EMAIL PROTECTED]

In article <[EMAIL PROTECTED]>, Marius wrote:
>I know that there are possibilities with ups programmes (for example 
>greenpower). They check the serial port and shut the machine down when 
>Powerfail is indicated.

I remember there being a program call jslaunch, which stands
for JoystickLaunch. It uses the joystick port as trigger for
shutdowns etc. I guess faking a joystick button should not
be too complicated :-)

Andreas

-- 
                       Andreas Schweitzer
             http://dilbert.physast.uga.edu/~andy/
        This post is brought to you by VIM, slrn and FreeBSD

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

Subject: SUSE 7.0 Installation trouble....
From: [EMAIL PROTECTED] (FrOgGy)
Date: Sun, 04 Mar 2001 08:14:40 GMT

I have a new amd 800mhz with 256megs of ram, i am tryin to install SUSe7.0, 
and i boot it up with the floppy, then it loads the first disk into the 
RamDisk, and then after its done loading into Ramdisk, the scroller just goes 
to the next line and blinks.... and the computer idles... I waited for about 
5min and figured nothing was going to happen so i presssed Alt+F4 and it was 
scrolling (KMOD: failed to exec /sbin/modprob -s -k binfmt-464,errno=8) it 
never stopped scrolling that... i was wondering if there is a reason why SUse 
isn't instaling into my computer... i have an A7v(asus 7 socket A) 
motherboard, and i don't know what to do to get it to install.. the program 
is on 4 cd's which were downloaded as ISO's, and now it isn't working... plz 
help.

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

From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup
Subject: Re: Test if mount was a sucess from shell script?
Date: Sun, 4 Mar 2001 08:53:15 +0100

In comp.os.linux.misc Ken Williams <[EMAIL PROTECTED]> wrote:
> I'm trying to mount a drive before I do something, does anyone know how I can 
> test to see if the mount was sucessfull from a bash shell script?

the return value from mount will tell you. So will the text output from
mount (but reading /proc/mounts directly will be preferable).

Peter

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

Date: Sat, 03 Mar 2001 21:36:14 -0700
From: Monte Milanuk <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.questions
Subject: Re: looking for a HOWTO on shell scripting

How about the Bash-scripting-HOWTO at the Linux Documentation Project? 
;)

Monte

John Gill wrote:
> 
> I know shell scripting is fairly basic to Linux / Unix, but I am looking for
> a good source to learn some of the basics, along with Cron setup.  I am
> looking for Bash shell.
> 
> Thanks,
> 
> -- John


====== Posted via Newsfeeds.Com, Uncensored Usenet News ======
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
=======  Over 80,000 Newsgroups = 16 Different Servers! ======

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

From: Martin Ambuhl <[EMAIL PROTECTED]>
Crossposted-To: comp.lang.c
Subject: Re: newbie: md5 + C + /etc/shadow
Date: Sun, 04 Mar 2001 08:20:43 GMT

Dave Vandervies wrote:
> 
> In article <97oog6$pg7$[EMAIL PROTECTED]>,
> Michal Kolesar <[EMAIL PROTECTED]> wrote:
> >Hi,
> >
> >I am newbie to C. I have a question.
> >How is possible to generate from plain text to the encrypted
> >md5 (or I think that it is md5) password looking like /etc/shadow password?

[ ... ]

> If, once you've found the algorithm, you run into problems with
> implementing it in C, show us your code and tell us what the problem is,
> and we'll try to help you fix it - answering questions about C is one
> of the things we _do_ do here.

Don't be too sure of that.  Whenever posters start asking about 
/etc/shadow passwords -- and this is hardly the first time -- flags
should go up about malicious users or crackers.  Those of us who have
been around awhile are very wary about helping people do malicious
or illegal things.

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

From: "Eric en Jolanda" <[EMAIL PROTECTED]>
Subject: Re: LILO and second master hard-disk
Date: Sun, 4 Mar 2001 09:27:46 +0100

> > You're joking, right?
> > Numbering is done on order of appearance.
>
> Nope.
> Their numbering is affected by connection and setting of master/slave
> jumper.

No doubt it is affected by this, as this determines the order in which
the drives are detected.

> > you will never have 0x82 without 0x81,
> > and no guarantee that your BIOS will call hda 0x80.
> > If you choose in your BIOS to boot from hdb, chances
> > are, that it will be 0x80
>
> Just where do you choose to do the remapping, in BIOS or in lilo.

I remap only in lilo, I never touch the detection chain in the BIOS.
It would only confuse things.

> You can do it in anyone, or you can drive the system crazy by doing it
> inconsistently in both.

Yep, tends to be a problem in mixed IDE/SCSI systems

> Computers tend to be simpletons, they follow well defined orders.

Indeed,
I suppose the orders are: check IDE0(master/slave)->IDE1(master/slave)
and number in order of appearance.(BIOS changes will affect this)

Eric






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

From: [EMAIL PROTECTED] (Uwe Malzahn)
Subject: Re: Linux and connection to the Internet
Date: Sat, 3 Mar 2001 15:24:51 +0100

In article <[EMAIL PROTECTED]>,
        <[EMAIL PROTECTED]> writes:
> I'm new to Linux, just installed it on one of my Pentium machines.  What 
> is the best way to get Internet access from this Linux box?

Modem?

-- 
It ain't the size, it's...  no, it's the size.

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

From: Arctic Storm <[EMAIL PROTECTED]>
Subject: Re: Linux and connection to the Internet
Date: Sun, 04 Mar 2001 09:51:48 GMT

> I'm new to Linux, just installed it on one of my Pentium machines.  What
> is the best way to get Internet access from this Linux box?

Eventhough you're new to Linux, you can't be new to computers.  What is 
your question, exactly?  How do you normally connect to internet, on your 
Windows computer?  Same way will apply to Linux.  Whether you choose DSL or 
56k modem will depend on other issues, not whether you use Linux or Windows.
RedHat is easy for a beginner, so that may be a good start.


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

From: [EMAIL PROTECTED] (Bit Twister)
Crossposted-To: alt.os.linux,comp.os.linux.networking,comp.unix.programmer
Subject: Re: 2 NICs on 1 machine.
Reply-To: [EMAIL PROTECTED]
Date: Sun, 04 Mar 2001 09:52:16 GMT

Helps if you provide what distro and release level you are using
when you post questions to the news groups. Different distros
have different commands, files, and links to files. Even happens
between release levels of the same distribution.



To make sure you do not have a security problem:
Create a user account on Client.
Log in as the user and 
        telnet -l user Client
to verify telnet is working.
If still afu, check that you have enabled telnet in /etc/inetd.conf


On Sun, 4 Mar 2001 12:53:03 +0800, Rick Goh <[EMAIL PROTECTED]> wrote:
>Hello all,
>On Client node, I have 2 NICs:
>1. 192.168.1.10
>2. 192.168.1.20
>
>Server node is connected to Client via a 100mpbs (full-duplex per port)
>switch.
>1. 192.168.1.1
>
>However, from Server, i can't seem to be able to telnet or ftp into Client.
>Please take into account i have inet started and also configured /etc/hosts
>, /etc/hosts.allow.
>
>Do i need to configure other files? Am i missing anything here?


-- 
The warranty and liability expired as you read this message.
If the above breaks your system, it's yours and you keep both pieces.
Practice safe computing. Backup the file before you change it. 
Do a,  man command_here or cat command_here, before using it.

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

From: [EMAIL PROTECTED]
Subject: How do I s/w unblank screen?
Date: 4 Mar 2001 10:12:31 GMT

Dear Newsgroup.

I'm running RH7.0 and X/KDE2.1 with "Display Energy Saving". Is there
any way I can unblank the screen without touching the kb or mouse?

(I.E. if I want the screen to go on when some event occurs.)

/TIA, Jim


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

From: chris <[EMAIL PROTECTED]>
Subject: Re: News/leafnode setup-micro HOWTO
Reply-To: [EMAIL PROTECTED]
Date: Sun, 4 Mar 2001 11:41:28 +0000

Robert,

I recently went through the same process without taking notes and without 
mailing my experiences to the newsgroup.

I appreciate your mail and will refer to it, undoubtedly, as I am about to 
configure another new machine.

Many thanks for your energies in posting this guide.

Chris

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

Date: 4 Mar 2001 4:23:37 -0500
From: "Gene Heskett" <[EMAIL PROTECTED]>
Subject: Re: IPTables doesn't work (nor IPCHAINS) for kernel 2.4.1
Crossposted-To: comp.os.linux.networking,comp.os.linux.security

Gene Heskett sends Greetings to Scott Nolde;

 SN> I've built several 2.4.1 kernels using the following RedHat packages:
 SN> gcc-2.96-69
 SN> glibc-2.2-12

I failed miserably the last time I tried 2.96-69 on a 2.2.18 kernel.
I've noted there is a -74 now available, and saw a -75 version come, and
go in 10 minutes time.  I've not yet tried the -74 version here.

 SN> which came from the updates.redhat.com ftp site.  Always use the updated
 SN> RPMs.

 SN> The kgcc code has been integrated into gcc-2.2-12.

??????????  Clarification please, since gcc-2.2-12 would be truely
jurrasic.

 SN> - Scott

Cheers, Gene
-- 
  Gene Heskett, CET, UHK       |Amiga A2k Zeus040, Linux @ 500mhz 
        email gene underscore heskett at iolinc dot net
#Amiga based X10 home automation program EZHome, see at:#
 <http://www.thirdwave.net/~jimlucia/amigahomeauto>
This messages reply content, but not any previously quoted material,
is © 2001 by Gene Heskett, all rights reserved.
-- 


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

From: [EMAIL PROTECTED] (xxxxxxxxx)
Subject: rpm up2date
Date: Sun, 04 Mar 2001 11:49:30 GMT



i've some trouble about installing some rpm packages
i receive the message below
only packages with major numbers <= 3 are supported by this version of
RPM


how can i up2date rpm3.x to rpm4.x 


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

From: "Roy Batty" <[EMAIL PROTECTED]>
Subject: Re: SUSE 7.0 Installation trouble....
Date: Sun, 4 Mar 2001 12:57:07 +0100

I guess the floppy is physically damaged. Try re-create
it. You should also be able to boot from the first CD-ROM
(if your computer supports this). Try this first.
- Roy

"FrOgGy" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> I have a new amd 800mhz with 256megs of ram, i am tryin to install
SUSe7.0,
> and i boot it up with the floppy, then it loads the first disk into the
> RamDisk, and then after its done loading into Ramdisk, the scroller just
goes
> to the next line and blinks.... and the computer idles... I waited for
about
> 5min and figured nothing was going to happen so i presssed Alt+F4 and it
was
> scrolling (KMOD: failed to exec /sbin/modprob -s -k binfmt-464,errno=8) it
> never stopped scrolling that... i was wondering if there is a reason why
SUse
> isn't instaling into my computer... i have an A7v(asus 7 socket A)
> motherboard, and i don't know what to do to get it to install.. the
program
> is on 4 cd's which were downloaded as ISO's, and now it isn't working...
plz
> help.



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

From: "Roy Batty" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup
Subject: Re: Test if mount was a sucess from shell script?
Date: Sun, 4 Mar 2001 12:59:00 +0100


Use something like this:

#/bin/bash
if mount /cdrom then
  echo success
else
 echo failure
fi

- Roy

"Ken Williams" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> I'm trying to mount a drive before I do something, does anyone know how I
can
> test to see if the mount was sucessfull from a bash shell script?
>
> Thanks.



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

From: "Rick Goh" <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.os.linux.networking,comp.unix.programmer
Subject: Re: 2 NICs on 1 machine.
Date: Sun, 4 Mar 2001 21:00:08 +0800

255.255.255.0

Using Linux Mandrake 7.2 with kernel 2.2.17


"andylow" <[EMAIL PROTECTED]> wrote in message
news:97sj6v$391$[EMAIL PROTECTED]...
> What is the netmask you have applied for the 2 IP addresses?
>
> Andy
>
>



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

From: "Justin R. Smith" <[EMAIL PROTECTED]>
Subject: Re: Unable to boot 2.4.2
Date: Sun, 04 Mar 2001 13:02:50 GMT

In article <[EMAIL PROTECTED]>, "Sahan
Amarasekera" <[EMAIL PROTECTED]> wrote:

n the /Documentation/Changes file it says:
> 
> The recommended compiler for the kernel is egcs 1.1.2 (gcc 2.91.66), and
> it should be used when you need absolute stability. You may use gcc
> 2.95.2
> instead if you wish, although it may cause problems.
> 
> ----
> Sahan Amarasekera
> 
> to email me, remove animal in email address:
> [EMAIL PROTECTED]


Thank you!. I recompiled with kgcc, which is egcs 2.91
and still get the same problem...

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

From: [EMAIL PROTECTED] (Lee Webb)
Crossposted-To: comp.os.linux.setup
Subject: Re: Test if mount was a sucess from shell script?
Date: 4 Mar 2001 13:04:15 GMT
Reply-To: [EMAIL PROTECTED]

On Sun, 04 Mar 2001 07:07:05 GMT, Ken Williams wrote:
>I'm trying to mount a drive before I do something, does anyone know how I can 
>test to see if the mount was sucessfull from a bash shell script?
>
>Thanks.

#!/bin/sh
mount /dev/hda1 /mnt/win_c > /dev/null 2>&1
if [ $? -eq 0 ]; then
    echo "Fine"
else
    echo "Something went wrong"
fi

Try to mount the drive & pipe mount's messages to /dev/null.
Then, test the result by looking in $? 0 = good.

Lee.

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

From: Arthur Pedyczak <[EMAIL PROTECTED]>
Subject: Re: 2 NICs on 1 machine.
Date: Sun, 04 Mar 2001 13:28:01 GMT

Rick Goh wrote:
> 
> Hello all,
> On Client node, I have 2 NICs:
> 1. 192.168.1.10
> 2. 192.168.1.20
> 
> Server node is connected to Client via a 100mpbs (full-duplex per port)
> switch.
> 1. 192.168.1.1
> 
> However, from Server, i can't seem to be able to telnet or ftp into Client.
> Please take into account i have inet started and also configured /etc/hosts
> , /etc/hosts.allow.
> 
> Do i need to configure other files? Am i missing anything here?
> 
> Regards.

Rick,
It will be easier to help you if we know :

1. can you ping one box from the other ?
2. when you try to telnet, what error message (if any ) do you get?
3. what does the syslog on the machine you're connecting to say?

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

From: [EMAIL PROTECTED] (Stuart Krivis)
Crossposted-To: comp.os.linux.advocacy
Subject: Re: MS to Enforce Registration - or Else
Date: 4 Mar 2001 08:44:29 -0500
Reply-To: [EMAIL PROTECTED]

On Tue, 27 Feb 2001 21:00:22 +0000, Edward Rosten <[EMAIL PROTECTED]> wrote:
>>> The fact is that after the government privatised the railways, safety
>>> went down the tube and they're having to bail out the company that owns
>>> th railways with more public money.
>> 
>> Lousy management is its own reward.
>> 
>> Of course, since you guys have become sooooooo fucking socialist, all of
>
>Yeah, sure. Whatever.
>
>> your best managers left LONG ago for the United States.
> 
>So its come down to "my country is better than yours" arguments. This is
>my last word on this thread.

I suppose we can throw in a gratuitous mention of Nazi conspiracies and
Hitler.

Ooops! I guess I killed the thread. :-)

All discussions on Usenet will, no matter the original
topic, devolve into an argument about one or more of a couple dozen
recurring themes. These themes have been floating around the net for
years and show no signs of dying.

All discussions will become cross-posted to more and more irrelevant
newsgroups. If left unchecked, they would be cross-posted to every
single newsgroup eventually.


-- 



Stuart Krivis


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

From: "John Gill" <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.os.linux.networking,comp.unix.programmer
Subject: Re: 2 NICs on 1 machine.
Date: Sun, 04 Mar 2001 13:58:50 GMT

Dumb question, but are the ftp and telnet services running on the client ?

-- JJG

"Rick Goh" <[EMAIL PROTECTED]> wrote in message
news:3aa1c802$[EMAIL PROTECTED]...
> Hello all,
> On Client node, I have 2 NICs:
> 1. 192.168.1.10
> 2. 192.168.1.20
>
> Server node is connected to Client via a 100mpbs (full-duplex per port)
> switch.
> 1. 192.168.1.1
>
> However, from Server, i can't seem to be able to telnet or ftp into
Client.
> Please take into account i have inet started and also configured
/etc/hosts
> , /etc/hosts.allow.
>
> Do i need to configure other files? Am i missing anything here?
>
>
> Regards.
>
>
>
>
>
>
>



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

From: Shakes <[EMAIL PROTECTED]>
Subject: USB Scanner with SuSE 7.1
Date: Sun, 4 Mar 2001 15:03:25 +0100

Hi,
I have the folowing Question:

How can I use my USB Scanner with SuSE Linux 7.1?

Scanner: Agfa SnapScan 1212u
Kernel: 2.4.2 with USB Support build in

The Scanner is found as a USB-Device at start up.

-- 
CU
Shakes
________________________________
Send with KNode 0.4 (KDE 2.1) for Linux

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


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