Subject: Linux-Admin Digest #203
From: Digestifier <[email-masked]>
To: [email-masked]
Date: Sun, 16 Oct 94 13:13:31 EDT

Linux-Admin Digest #203, Volume #2               Sun, 16 Oct 94 13:13:31 EDT

Contents:
  Programing using PHIGS
  Cron Problems - Script runs from shell but not cron (Ted Harding)
  [Q] unerase? undelete? (Ted Harding)
  Re: Cron Problems - Script runs from shell but not cron (Brian Kramer)
  Linux T-Shirts! Second Batch of Shirts. (Jean-Paul Chia)
  PASSWD and User Problems (Bob Collie)
  Re: SCSI vs IDE (Mark Lord)
  talkd does NOT work; where to find patches? (Jim Ockers)
  Re: PACKET SNIFFER FOR LINUX (Michael R. Widner)
  HD Timeout problems (Ben Frank)
  /var/spool/mail/xxx perm. probs... (Preston Brown)
  Re: Mystery Chip...AMD (Ian McCloghrie)
  dip, sliplogin and OS/2 (West Suhanic)
  Help setting up ttysnoop (Dan Wold)

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

From:  <[email-masked]>
Subject: Programing using PHIGS
Reply-To: <[email-masked]>
Date: Fri, 14 Oct 1994 15:28:08 GMT

Hi folks
      I am trying to program in X-Windows under linux using Phigs, and am 
successful in to compiling it and getting an executable file, but when I 
execute it I got a run time error saying that my PEX is incompatable. I am 
helpless if any body have done programing in phigs please share your 
experience so I can continue, It is a graphics class project.
later

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

From: [email-masked] (Ted Harding)
Subject: Cron Problems - Script runs from shell but not cron
Date: 16 Oct 1994 07:00:26 -0400
Reply-To: [email-masked] (Ted Harding)

| The version of cron that comes with slackware
| does not support other shells besides bash.
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^** Is this really true?

If so it is in contradiction with the info from "man 5 crontab"
which claims that you can set the shell in the crontab file with
"SHELL=/bin/<shell>". Quote from "man 5 crontab":

       Several  environment variables are set up automatically by
       the crond(8) daemon  from  the  /etc/passwd  line  of  the
       crontab's  owner:  USER, HOME, and SHELL.  HOME and SHELL
       may be overridden by settings in the  crontab;   USER  may
       not.

       (Note:  for  UUCP,  always  set SHELL=/bin/sh, or crond(8)
       will  cheerfully try  to  execute  your  commands   using
       /usr/lib/uucp/uucico.)

The "default" crontab file with SlackWare has "SHELL=/bin/sh".
Maybe the trouble lies here ... ?

Ted.                                     ([email-masked])

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

From: [email-masked] (Ted Harding)
Subject: [Q] unerase? undelete?
Date: 16 Oct 1994 08:00:31 -0400
Reply-To: [email-masked] (Ted Harding)

| Is there any 'unerase' or 'undelete' utility for ext2fs? Accidentally I
| rm'ed a bunch of once useful files, and I wasn't able to recover them...
| I know, some of you are going to say: 'You should be more careful with
| rm and such commands!' but it doesn't really help much. Thanx in advance!
| 
| --
| Dino
| 
Apart from something like the "attic" cache suggested by Frank Brokken,
I don't think there is any such thing (though I have a vague memory of
once seeing something posted .. does anyone know?). You're presumably
thinking along the lines of the DOS "undelete" command which, I think,
was first put out with DR-DOS.

As a general rule, such a facility is unlikly to work reliably with UNIX 
systems because they are constantly doing systems stuff in the background,
so you never know quite where you are, unlike DOS. 

There is one possible desperate resource which I mention without
recommending it. Since Linux normally does a disk "sync" evry 30 seconds,
if you hit the Reset button IMMEDIATELY after doing "rm -r *", you
have a chance of rebooting into a file system where the deletes have not
yet been written to disk. Only problem is, other essential stuff may
also not have been written to disk, but if you're lucky you won't
have any problems that "fsck" can't untangle. If you're unlucky ...
(still if you were in directory "/" when you did "rm -r *", as can
all too easily happen if you've been happily flipping between
virtual consoles, it may be your only chance. Worked for me once ... ).

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

From: Brian Kramer <[email-masked]>
Subject: Re: Cron Problems - Script runs from shell but not cron
Date: 16 Oct 1994 08:04:19 -0400
Reply-To: [email-masked]

On Sun, 16 Oct 1994, Ted Harding wrote:

| > The version of cron that comes with slackware
| > does not support other shells besides bash.
|   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^** Is this really true?
| 
| If so it is in contradiction with the info from "man 5 crontab"
| which claims that you can set the shell in the crontab file with
| "SHELL=/bin/<shell>". Quote from "man 5 crontab":
| 
|        Several  environment variables are set up automatically by
|        the crond(8) daemon  from  the  /etc/passwd  line  of  the
|        crontab's  owner:  USER, HOME, and SHELL.  HOME and SHELL
|        may be overridden by settings in the  crontab;   USER  may
|        not.
| 
|        (Note:  for  UUCP,  always  set SHELL=/bin/sh, or crond(8)
|        will  cheerfully try  to  execute  your  commands   using
|        /usr/lib/uucp/uucico.)
| 
| The "default" crontab file with SlackWare has "SHELL=/bin/sh".
| Maybe the trouble lies here ... ?

Ok, that sounds right.  Let me make a correction.  The following must
be the case.  The cron with linux uses the shell the user is setup.
So it cannot handle more than one type of shell script per user.

| 
| Ted.                                     ([email-masked])
| 

Brian Kramer - Owner/Systems Administrator - [email-masked]
New Jersey Computer Connection - Public Access Unix Site - pluto.njcc.com
Voice: 609-896-2799 - Fax: 609-896-2994 - Dialups: 609-896-3191
Dialup or Telnet to pluto.njcc.com and log in as guest for more information.

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

From: [email-masked] (Jean-Paul Chia)
Crossposted-To: comp.os.linux.misc,comp.os.linux.help,aus.computers.linux
Subject: Linux T-Shirts! Second Batch of Shirts.
Date: 16 Oct 1994 18:50:50 +0800

Here's a description of them, 
"Linux! Not UNIX!" T-Shirts are either, Black on White, Navy Blue on White, 
or White on Black, Long or Short Sleeved T-Shirts. "Linux! Not UNIX!" is
written on the back of the shirt, and on the front left corner a neat litle
"Linux." is printed.

"Linux.. The Choice of a GNU Generation" T-Shirts have the slogan printed in
Black across the back of a Long or Short sleeved, white, T-Shirt. With  
"Linux." printed on the front.

==============================================================================
Please Complete and Email to: [email-masked]
or Fax to +61-9-447-4098 or if you have to.. Mail it to: 
Linux T-Shirts
12 Guinevere Way
Carine WA 6020
Australia
==============================================================================

Name:

Email Address(es):

Mailling Address:

Phone Number or Fax Number:

                        |        Size             | S/L | Quantity | Total |
========================| Medium | Large | XLarge |=====|==========|=======|
Linux! Not UNIX         |        |       |        |     |          |       |
AUS$18 = US$13          |        |       |        |     |          |       |
 Black on White         |        |       |        |     |          |       |
===========================================================================|
Linux! Not UNIX         |        |       |        |     |          |       |
AUS$21.50 = US$15       |        |       |        |     |          |       |
 Blue on White          |        |       |        |     |          |       |
===========================================================================|
Linux! Not UNIX         |        |       |        |     |          |       |
AUS$22.50 = US$16       |        |       |        |     |          |       |
 White on Black         |        |       |        |     |          |       |
===========================================================================|
 GNU Linux.. *          |        |       |        |     |          |       |
AUS$21.50 = US$15       |        |       |        |     |          |       |
 Black on White         |        |       |        |     |          |       |
===========================================================================|
 * Linux: The choice of a GNU generation

Postage within Australia and USA:  
                - Airmail  (within 7 days): 
                                - 1-2 Shirts = AUS$11.20 US$8.30  ________
                                - 3 or more Shirts = AUS$27 US$20 ________
                - Ecn Airmail (7-10 days):
                                - 1-2 Shirts = AUS$9.80 US$7.30   ________
                                - 3 or more Shirts = AUS$21 US$15 ________
                - Seamail (Probably months):
                                - 1-3 Shirts = AUS$6.50 US$5      ________
                                - 3 or more Shirts = AUS$16 US$12 ________

Postage outside US and Australia:
                - Airmail  (within 7 days):
                                - 1-2 Shirts = AUS$13.20 US$9.80  ________
                                - 3 or more Shirts = AUS$29 US$21.50 _____
                - Ecn Airmail (7-10 days):
                                - 1-2 Shirts = AUS$11.80 US$9     ________
                                - 3 or more Shirts = AUS$23 US$16.90 _____
                - Seamail (Probably months):
                                - 1-3 Shirts = AUS$$6.50 US$5     ________ 
                                - 3 or more Shirts = AUS$16 US$12 ________

                        Total(Specify US$ or AUS$):_______________________

There is a Quantity discount for orders over 3 shirts, the discount is,
AUS$1.50/US$1 off every shirt.

For Personal Cheques, and Money Orders or Bank Drafts _NOT_ drawn on an 
Australian bank, there is a ASU$5/US$3.95 service fee, and a 28 day 
clearance period. And they should be made out to:
Jean-Paul Chia, 12 Guinevere Way, Carine WA  6020, Australia.

Visa Card Details (Please mail to [email-masked], fax to:
+61-9-447-4098 or snail mail to the above address.):

Account Number:                                          Expiration Date:

Name on Card:

Card Owner's Adress(If different from above):

Card Owner's Phone Number(If different from above):

Your Name:

==============================================================================

--
        Jean-Paul Chia                      TheWiz @ IRC
        Drasnian Technologies,  Perth, Western Australia
        PH +61-9-447-6261             FAX +61-9-447-4098
        [email-masked], [email-masked]

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

From: [email-masked] (Bob Collie)
Crossposted-To: comp.os.linux.help
Subject: PASSWD and User Problems
Date: 13 Oct 1994 06:21:54 GMT

PLEASE EXCUSE THE CROSSPOST (col.admin, col.help)

I just edited my /etc/passwd file from root and I changed the UUCP user 
from having a password to * and I now have major system troubles.  No 
users are recognized (i.e. via su, login, finger, etc.) on my system 
besides the root user.  What can I do?  Please help, as I am in dire need.

Bob Collie
[email-masked]

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

From: [email-masked] (Mark Lord)
Subject: Re: SCSI vs IDE
Date: 12 Oct 1994 16:53:28 GMT

In article <[email-masked]> [email-masked] writes:
<
<       No, even on systems with one drive SCSI is a better choice than IDE
<unless you are running a single-tasking OS like DOS. It is definately
<possible to get transfer speeds out of IDE that are close to SCSI (but not
<Fast & Wide SCSI). But you are paying for the speed with CPU busy waiting.

Nope.  Just plain false.  No measurable "busy waiting" is used for IDE drives
under linux.  Read/Write operations are interrupt driven, not polled.
Note that the effect of this is unnoticeable under most single-user situations,
since writes are deferred by the buffer-cache, and reads usually imply that
the user is sitting there waiting for the data anyhow.  With lots of processes
running and performing I/O, the general (unproven) opinion is that SCSI really
ought to perform better.  I agree.
-- 
[email-masked]    Mark Lord       BNR Ottawa,Canada       613-763-7482

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

From: [email-masked] (Jim Ockers)
Subject: talkd does NOT work; where to find patches?
Date: Wed, 12 Oct 1994 16:19:24 GMT
Reply-To: [email-masked]

Hello y'all,

I am running slackware 2.0 (kernel 1.0.9) on a 486 with pretty much
generic hardware.  I have had no major problems with any of  the net-
working software EXCEPT for the talk daemon.

I can talk to other users when they are logged into my host, but I
cannot make a talk connection to any other host on the local network.
I have tried this with Sun workstations running  "System V Release 4.0"
of the Sun OS, HP-PA workstations running HP-UX 9.0.5, and PC's running
winsock talk software.

The linux box will receive talk connections from other hosts but always
fails when trying to establish the connection.  Also it always fails when
attempting to initiate a talk connection.  Essentially I can listen but
I can't talk unless the "talkee" is on localhost.

I am 100% confident that the problem is with the Linux talk daemon,
because all of the others can make talk connections amongst themselves
which work quite well.  The only one that will not communicate is linux.

Where can I find the patches to make this work?  Somebody told me that
there were some patches released shortly after Slackware became available.
I have been unable to find them, and would appreciate a pointer in the
right direction.  Thanks!

--
Jim  ([email-masked])                   Ask me about Linux!
PGP public key available upon request, or from my web pages.
GE d? p c++ l++ u++ e++ m++(--) s n-(+) h+ f !g w+ t+ r !y
<a href="http://www.umr.edu/~ockers/">home page</a>

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

From: [email-masked] (Michael R. Widner)
Subject: Re: PACKET SNIFFER FOR LINUX
Reply-To: [email-masked]
Date: Wed, 12 Oct 1994 16:58:16 GMT

Matthew Donadio ([email-masked]) wrote:
: CVL staff member Nate Sammons ([email-masked]) wrote:
: : So, where is one?  I have heard that there is a "cool network monitor" for
: : Linux, and I want to take a look at traffic on my network, and I am
: : one of the "good guys"

: Poke through the INDEX on sunsite.  Either that or get a copy of
: Stevens, _TCP/IP_Illustrated,_Volume_1_ and write your own.  I wrote
: one in about four hours.

You could do that, but why not take the easier and better route and
use tcpdump?  tcpdump3.0 is available on sunsite.unc.edu in
pub/Linux/system/Network/management, and probably in a whole lot of
other places as well.

tcpdump is a good all around ethernet monitor.  I prefer 'snoop' on
Solaris, but I doubt we'll be seeing a linux port of it any time real
soon.

And for all you unethical users out there, hacking telnet/rlogin/ftp
password sniffing into tcpdump is pretty trivial.
-- 
Michael R. Widner
[email-masked]  -  [email-masked]

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

From: [email-masked] (Ben Frank)
Subject: HD Timeout problems
Date: 15 Oct 1994 21:42:31 GMT
Reply-To: [email-masked]

Hi, 
  I keep getting hd timeout errors, here is the exact message:
Oct 15 22:32:58 Satsuma kernel: HD timeout
Oct 15 22:32:58 Satsuma kernel: HD-controller reset
Oct 15 22:32:58 Satsuma kernel: HD: win_result: status = 0xff
Oct 15 22:32:58 Satsuma kernel: HD: win_result: error = 0xff
Oct 15 22:32:58 Satsuma kernel: harddisk I/O error
Oct 15 22:32:58 Satsuma kernel: dev 0341, sector 8
Oct 15 22:32:58 Satsuma kernel: HD-controller reset

Anyone got any ideas? It all started when I put my new hard disk in. 
A seagate ST5660A (540Mb) it's set to 504Mb though; to stop things complaining.
I'm using 1.1.53 but I tried 1.0 and it gave me the same error.
Can anyone help? is anyone having the same problem ?
Thanks

        Ben Frank

__
[email-masked]

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

From: pbrown@PROBLEM_WITH_INEWS_DOMAIN_FILE (Preston Brown)
Subject: /var/spool/mail/xxx perm. probs...
Date: 16 Oct 1994 15:54:28 GMT

For some REALLY strange reason, whenever a new user is created on my 
system and the first piece of mail they ever get is spooled to their 
account, their mail file get created with group ownership of 'users' 
instead of 'mail'.  If i chgrp this, it won't switch back.  (obviously I 
am doing this...we don't need the whole world reading everyone else's 
mail).  This DIDN'T use to happen.  I cannot think of any configuration 
items for smail that I have changed besides editing the config file to 
take out the extra spaces at the end of lines that were messing up the 
headers (this is a well known documented bug in the dist).  So I need 
some ideas as to what is causing this strange thing to happen.

--
___
- Preston Brown, Silliman '98                  [email-masked] -
-   Linux Forever! ftp to: sunsite.unc.edu:/pub/Linux and grab it now!!!   -
-    If you choose not to decide, you still have made a choice -- RUSH    --

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

From: [email-masked] (Ian McCloghrie)
Crossposted-To: comp.sys.ibm.pc.hardware.systems,comp.os.linux.misc
Subject: Re: Mystery Chip...AMD
Date: 14 Oct 1994 10:48:19 -0700

[email-masked] (Joseph Stanley (Joe) Wisniewski) writes:
>AMD had a massive technology trade agreement with Intel that let AMD "copy"
>many chips from Intel, including the x86 series processors, just as Intel
>could copy many chips from AMD, including bit-slice processors, memory chips,

What's more, if I remember correctly, the original reason for this
agreement was that Intel wanted to sell to the government, who won't
buy anything unless there's a second source for it.  (an entirely
sensible rule, if you ask me).

--
Ian McCloghrie    work: [email-masked]     home: [email-masked]
  ____   GCS d-- H s+:+ !g p? au a- w+ v- C++$ UL++++ US++$ P+>++
  \bi/   L+++ 3 E+ N++ K--- W--- M-- V-- -po+ Y+ t+ 5+++ jx R G'''
   \/    tv- b+++ D- B-- e- u* h- f+ r n- y*

The above represents my personal opinions and not necessarily those
of my employer, Qualcomm Inc.

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

From: [email-masked] (West Suhanic)
Subject: dip, sliplogin and OS/2
Date: 14 Oct 1994 15:19:22 GMT

Hi All:

        Would any one know if sliplogin has been ported to OS/2 v2.1 ?
        I am trying to use dip from my Linux box to the slip server at
        work which is an OS/2 machine.

Thanks in advance, [email-masked]

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

From: [email-masked] (Dan Wold)
Subject: Help setting up ttysnoop
Date: 16 Oct 1994 12:34:56 -0400

I've been trying to run ttysnoop-0.11. I got it from sunsite:
        /pub/Linux/utils/terminal/ttysnoop-0.11.tar.gz  

It seemed to compile OK but my problem is with this line from the README:
 "tell your getty/telnetd to execute /sbin/ttysnoops as the login program
(instead of /bin/login)."

For now I'm just trying to use it with telnetd so I'm not concerned with
getty for a serial-line login. My system uses this lines in /etc/inetd.conf:

"telnet  stream  tcp   nowait  root  /usr/sbin/tcpd /usr/sbin/in.telnetd"

I've tried putting /sbin/ttysnoops at the end of this line in several ways
but just ended up messing up my telnetd service. I have a manpage for
telnetd but it doesn't indicate how I tell in.telnetd to use ttysnoops. I
don't have a manpage for in.telnetd.

Thanks for any help!

-Dan
-- 
[email-masked]
Daniel Wold                             239 City Island Ave, Bronx, NY, 10464
finger [email-masked]
Sysop: WORLD CITIZEN BBS  718-885-2346  14.4  24 hrs  FREE  Fidonet  BahaiNet

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

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

You can send mail to the entire list (and comp.os.linux.admin) via:

    Internet: [email-masked]

Linux may be obtained via one of these FTP sites:
    nic.funet.fi				pub/OS/Linux
    tsx-11.mit.edu				pub/linux
    sunsite.unc.edu				pub/Linux

End of Linux-Admin Digest
******************************