From:     Digestifier <Linux-Activists-Request@news-digests.mit.edu>
To:       Linux-Activists@news-digests.mit.edu
Reply-To: Linux-Activists@news-digests.mit.edu
Date:     Mon, 21 Dec 92 06:00:14 EST
Subject:  Linux-Activists Digest #839

Linux-Activists Digest #839, Volume #3           Mon, 21 Dec 92 06:00:14 EST

Contents:
  patch for chmod "bug" (Shane Alderton)
  Troubles reading 360K disks on 360k drive (Giuseppe Zanetti)
  What happened to ps? (John Neil)
  WARNING -- don't open non-present serial ports under 0.99! (Donald J. Becker)
  Re: HELP - How can I activate my middle mousebutton? (Kai Andersen)
  Re: YANUI (Yet another new user inquiry!)? (Kevin Cummings)
  LINUX boot from SCSI drive ? (gloesener@istvax.ist.lu)
  Re: libm.a under SLS 0.98 pl 1 (Charles Hannum)
  Re: Any comments on Fujitsu SCSI drives? (Lupe Christoph)
  Re: Any comments on Fujitsu SCSI drives? (Lupe Christoph)
  Problem with SLS boot disk... (Michael A. Causa)
  Request:  Need Xconfig for ATI VGA Wonder 512K (Paul Lalonde)
  a few questions (Marc Fournier - Admin)
  problem with crt0.o (Larry Stern)
  Re: shell in emacs problem (Andrew J. Cosgriff !)
  Problems with telnet (Alberto Gobbi)

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

From: shanea@extro.ucc.su.OZ.AU (Shane Alderton)
Subject: patch for chmod "bug"
Date: 21 Dec 92 05:45:57 GMT


Linux' chmod currently allows you to set the sgid bit on a file
if you own that file, regardless of whether the file's group is
one of your primary or secondary groups.  This can cause security
problems - for example with mail, where you may own your mail
file but it is group owned by mail.

The following patch can be applied relative to 098p6 (and probably
099 - I haven't actually attempted it, but it looked similar enough)
to prevent this occuring.

Please let me know if there is a problem with the way I have done
this - I make no guarantee that it will work for you, but it certainly
solved my problem.

Regards,
Shane Alderton
shanea@extro.ucc.su.oz.au

===== snip snip ========================================================
--- newlinux/linux/fs/open.c    Sun Nov 29 22:59:47 1992
+++ linux/fs/open.c     Mon Dec 21 15:16:15 1992
@@ -234,4 +234,5 @@
        struct inode * inode;
        struct file * file;
+       int             mask = 07777;
 
        if (fd >= NR_OPEN || !(file = current->filp[fd]))
@@ -243,5 +244,7 @@
        if (IS_RDONLY(inode))
                return -EROFS;
-       inode->i_mode = (mode & 07777) | (inode->i_mode & ~07777);
+       if (!in_group_p(inode->i_gid) && !suser())
+               mask = 05777;
+       inode->i_mode = (mode & mask) | (inode->i_mode & ~mask);
        inode->i_dirt = 1;
        return notify_change(inode);
@@ -252,4 +255,5 @@
        struct inode * inode;
        int error;
+       int             mask = 07777;
 
        error = namei(filename,&inode);
@@ -264,5 +268,7 @@
                return -EROFS;
        }
-       inode->i_mode = (mode & 07777) | (inode->i_mode & ~07777);
+       if (!in_group_p(inode->i_gid) && !suser())
+               mask = 05777;
+       inode->i_mode = (mode & mask) | (inode->i_mode & ~mask);
        inode->i_dirt = 1;
        error = notify_change(inode);

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

From: beppe@sabrina.dei.unipd.it (Giuseppe Zanetti)
Subject: Troubles reading 360K disks on 360k drive
Date: 21 Dec 92 08:52:40 GMT

Hi, linux users

I have some problems reading 360k disks on a 360k drive ... when i try
/dev/fd1*360 (or simply /dev/fd1) i have some sector read errors (but with
MS-dos all is ok) ....

is this a bug in the floppy driver or i'm the only that use this format ?

Giuseppe


-- 
     _/ _/_/  _/_/_/_/                 Giuseppe Zanetti
   _/   ___       _/                   beppe@sabrina.dei.unipd.it
  _/     _/    _/
   _/ _/_/  _/_/_/_/

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

From: neil@alamo.mth.pdx.edu (John Neil)
Subject: What happened to ps?
Date: 17 Dec 92 04:09:17 GMT

I've been using SLS and Linux for about a week now and am really enjoying
having a UNIX box on my desk.  However, in a recent attempt to get the
networking aspects of the  system working (I have an NE1000 card), I needed
to upgrade the 0.98pl5 kernel which came with SLS to the 0.98pl6 kernel.
When I did that, everything which was supposed to use kmem suddenly stopped
working.  Now uptime reports zero load level at all times and ps doesn't
report anything but the column headers.  Is there some trick here, do I need
to upgrade again to 0.99, or is it something simple I've overlooked.

--John  Neil

--
John Neil, Graduate Teaching Assistant           e-mail:  neil@math.mth.pdx.edu
Mathematics Department                         NeXTMail:  neil@dehn.mth.pdx.edu
Portland State University
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

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

From: becker@super.org (Donald J. Becker)
Subject: WARNING -- don't open non-present serial ports under 0.99!
Date: Wed, 16 Dec 1992 17:14:47 GMT

In article <1992Dec16.155632.22190@unislc.uucp> erc@unislc.uucp (Ed Carp) writes:
>I have this serial port problem - I had one serial port in the machine, and
>when I strapped it for COM2 (/dev/ttys1), rebooted, then accessed /dev/ttys0,
>the system locked up.  Is this normal?  Shouldn't the driver have returned
>ENODEV?

Yes, I also noticed this last night -- the problem I used to have with
the alpha serial code has made its way into the distributed kernel!

IF YOU DON'T HAVE THE SPECIFIED SERIAL PORT INSTALLED, YOUR MACHINE
WILL JUST STOP.

-- 
Donald Becker                                  becker@super.org
Supercomputing Research Center
17100 Science Drive, Bowie MD 21114                301-805-7482

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

From: andersen@eis.cs.tu-bs.de (Kai Andersen)
Subject: Re: HELP - How can I activate my middle mousebutton?
Date: Wed, 16 Dec 1992 18:21:41 GMT

I got a solution for this problem via mail.
I think it is so important, that I post this followup.

Some additional notes:
You must start this tiny program in the xinitrc. Tries to call
this program before (e.g. in the /etc/rc) didn't work.
Also it must call again, when you exit and restart X11.

Perhapst somebody can post me, what happen exactly. How works
a 3-button-mouse and how a 2-button-mouse?

Bye,
Kai Andersen.

But now the solution, that I got:

----

From rocket.sanders.com!nation@rocket.sanders.lockheed.com Mon Dec 14 19:57:26 1992
Return-Path: <rocket.sanders.com!nation@rocket.sanders.lockheed.com>
Received: from relay2.UU.NET by bseis.eis.cs.tu-bs.de (4.1/SMI-4.1)
        id AA13232; Mon, 14 Dec 92 19:57:23 +0100
Received: from uunet.uu.net (via LOCALHOST.UU.NET) by relay2.UU.NET with SMTP 
        (5.61/UUNET-internet-primary) id AA17090; Mon, 14 Dec 92 10:35:21 -0500
Received: from rocket.UUCP by uunet.uu.net with UUCP/RMAIL
        (queueing-rmail) id 103418.19821; Mon, 14 Dec 1992 10:34:18 EST
Received: from dopey.sanders.lockheed.com.spcot by rocket.sanders.com (4.1/SMI-4.1)
        id AA18078; Mon, 14 Dec 92 10:30:47 EST
Date: Mon, 14 Dec 92 10:30:47 EST
From: nation@rocket.sanders.com (Robert Nation)
Message-Id: <9212141530.AA18078@rocket.sanders.com>
To: andersen@eis.cs.tu-bs.de
Subject: # button mouse with Linux/X
Status: OR

Maybe this will help you:

Here's how I got my three button microsoft-compatible mouse working 
in 3 button mode:

1. Change the mouse type to mousesystems in xconfig

Mousesystems "/dev/ttys1"
  BaudRate      1200
#  SampleRate   150
#  Emulate3Buttons

2. Compile this program, and call it /usr/bin/mouse3:

#include <assert.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <linux/termios.h>

void main(int argc, char **argv)
{
  int fd;
  int val;
  if(argc!=2)
    {
      printf("Usage: mouse3 device\n");
      exit(1);
    }

  
  assert(fd=open(argv[1],O_RDWR|O_NDELAY));
  val=0;
  ioctl(fd,TIOCMSET,&val);

}

3. Add this lines to /usr/lib/X11/xinit/xinitrc:

xterm -geometry 80x34+0+0  -C -T Console -e /bin/bash&
/usr/bin/mouse3 /dev/ttys1                           <----this is the addtition
exec twm 

----> (Additional note: call it early, as the first program)

4. Startx.

I really don't know quite why it works, but why complain? It seems that
the microsoft 3 button mouse looks like a mousesystems mouse when its in
3 button mode. Also to switch it to three button mode, you need to do
whatever the mouse3 program does, but you have to do it after X  gets
started, since it seems that X's startup code undoes the effect required
to get into 3 button mode.

----> (Additional note: At the beginning of the first movement, the mouse
       get crazy, but it's normal).

                        Regards,
                        Rob Nation
                        Lockheed-Sanders

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

From: cummings@hammer.prime.com (Kevin Cummings)
Subject: Re: YANUI (Yet another new user inquiry!)?
Date: Wed, 16 Dec 1992 18:35:19 GMT

In article <1992Dec14.122821.2266@infodev.cam.ac.uk>, tjrc1@cus.cam.ac.uk (T.J.R. Cutts) writes:
> In article <GHENNIGA.92Dec12000414@ampere.ampere>, ghenniga@NMSU.Edu writes:
> 
> |>    My second question is, is there any SVGA support for my video card,
> |> F1280 (S3 based)? I can't even get mono X support to work on my card. A
> |> 'startx', with X being configured for mono, appears to put my card in
> |> graphics mode but then just locks up my machine, and this IS for mono
> |> support since the color configuration gives me definate error messages and
> |> exits X without locking up.
> 
> You need the S3 server.  This is available at various sites; I got my copy from

Only if he wants to run in color, or wants to run using clocks other than
25MHz and 28MHz, or if he wants the server to take advantage of the accelerated
capabilities of the video card.  He can run the generic vga2 server in
640x480 without too much trouble directly on the F1280.  He cannot however
run the vga256 server.  For that he nedds the X386-S3 driver that you mentioned.

> robots.ox.ac.uk (or maybe it was ftp.robots.ac.uk, I can't remember).  Once

It's on ftp.robots.ox.ac.uk (otherwise known as quickly.robots.ox.ac.uk).

> you've got that, I will pre-empt some other problems you will have:
> 
> 1) Uncompress all your font files

especially the font for default!

> 2) Run mkfontdir

from /usr/X386/lib/X11/fonts run "mkfontdir misc" and "mkfontdir 75dpi".

> 3) Replace your Xconfig fontpath line with that from the supplied Xconfig.mono
> 
> This is what I did, and now have X speeding along at 1024x768 in glorious
> technicolour...

And who could ask for anything more?

=================================================================
Kevin J. Cummings                       ComputerVision Services
20 Briarwood Road                       500 Old Connecticut Path
Framingham, Mass.                       Framingham, Mass.
                                        
Home:  cummings@kjc386.framingham.ma.us Work:  cummings@primerd.Prime.COM

Std. Disclaimer: "Mr. McKittrick, after careful consideration,
                  I've come to the conclusion that your new
                  defense system SUCKS..."   --  War Games
=================================================================

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

From: gloesener@istvax.ist.lu
Subject: LINUX boot from SCSI drive ?
Date: 21 Dec 92 09:12:49 GMT


Hi,

I'am just installing Linux on a PC having a SCSI drive (Linux V0.98) and
now I want to boot Linux from this drive. As I read, PCBOOT is used for this
purpose but in the documentation of PCBOOT theire is no explanation about
the values used to boot from device /dev/sda* (SCSI) only for normal hardisks
/dev/hd*. Can anybody tell me how to boot from my SCSI drive, please.

                                                Gasty Gloesener

-GG-

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

From: mycroft@hal.gnu.ai.mit.edu (Charles Hannum)
Subject: Re: libm.a under SLS 0.98 pl 1
Date: 21 Dec 1992 09:05:40 GMT


In article <1992Dec19.160146.18006@dcc.uchile.cl>
anaraven@dcc.uchile.cl (Andres Aravena Duarte) writes:
>
> I get a message saying 'libm.a: file not found' or so and a lot of
> undef's about math functions (sin, atan, etcetera).

Link with `/lib/libm.so.4'.

-- 
 \  /   Charles Hannum, mycroft@ai.mit.edu
 /\ \   PGP public key available on request.  MIME, AMS, NextMail accepted.
Scheme  White heterosexual atheist male (WHAM) pride!

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

From: lupe@ukw.uucp (Lupe Christoph)
Crossposted-To: comp.periphs.scsi,comp.os.coherent
Subject: Re: Any comments on Fujitsu SCSI drives?
Date: 20 Dec 92 21:23:47 GMT

jaf@jaflrn.UUCP (Jon Freivald) writes:

>stephen@glas.rtsg.mot.com (Stephen Shortland) writes:

>I've got a Fujitsu 320Mb SCSI (don't remember exactly which model) in
>one of my file-servers at work.  It's a Banyan Vines server, which is
>actually a SYSV Unix kernel.  It's a good quick disk that's been taking
>a steady beating without so much as a hickup (About 120 users share data
>on that particular disk).

This must be an M2622SA or FA. It has an average seek time of 12 msec
and a latency of 6.8 msec.
-- 
| ...!unido!ukw!lupe  (German EUNet, "bang")     |  Disclaimer:            |
| lupe@ukw.UUCP       (German EUNet, domain)     |  This is an unofficial  |
| suninfo!alanya!lupe (Sun Germany)              |  opinion of Christoph & |
| Res non sunt complicanda praeter necessitatem. |  Imschweiler Consulting |

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

From: lupe@ukw.uucp (Lupe Christoph)
Crossposted-To: comp.periphs.scsi,comp.os.coherent
Subject: Re: Any comments on Fujitsu SCSI drives?
Date: 20 Dec 92 21:21:57 GMT

stephen@glas.rtsg.mot.com (Stephen Shortland) writes:

>Does anybody out there have any comments on Fujitsu SCSI drives?
>I am thinking of buying a Fujitsu M2618SA 210Mb SCSI drive, and
>would be interested in hearing comments from anybody who has
>had good, or bad, experiences with these drives.

>I plan to use the drive as a second drive on a Dell 486/66Mhz DX2
>ISA machine, using an Adaptec 1542 controller. I will be installing
>Coherent and Linux on the drive, so I am particularly interested in
>hearing from people using these operating systems.

I have no experience with the M261x drives, especially the new M2617
and M2618. I *have* run two (now only one left) M2624SA's. These
are very good drives. Some have been reported emetting a high-pitched
noise. Mine didn't; they were (are) quite quiet :-)

The M262x's are higher capacity than the M2618, and faster. They
also cost a lot more money, the M2622FA (330MB) almost double
the price of the M2618SA (210MB).
-- 
| ...!unido!ukw!lupe  (German EUNet, "bang")     |  Disclaimer:            |
| lupe@ukw.UUCP       (German EUNet, domain)     |  This is an unofficial  |
| suninfo!alanya!lupe (Sun Germany)              |  opinion of Christoph & |
| Res non sunt complicanda praeter necessitatem. |  Imschweiler Consulting |

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

From: mumc@uxa.ecn.bgu.edu (Michael A. Causa)
Subject: Problem with SLS boot disk...
Date: Thu, 17 Dec 1992 04:11:53 GMT

Hi,
        
        I've been trying to get the SLS distribution running on my
machine.  As far as I can tell everything gets installed to hda1 fine,
the problem that I am having is this:  The doinstall program creates the
boot disk and tells me to reboot.  When I boot with the disk it then
reports various things such as memory, etc.  Where I think the problem
is this - While its booting I get the message  

        WD8013 board not found at I/O=280

What is this WD8013 board?  The I/O=280 makes me think that it is trying
to do something with my Sound Blaster board.  If I'm not mistaken the
SB's base address is at 280.  

If this is what it is how can I get the boot disk ignore the SB, if not
the SB then what?  I appreciate any ideas...

My hardware configuration is as follows:

386 DX, 16M ram, 104M Hard Drive, Diamond Speedstar HiColor, 
        Sound Blaster.

e
                                                Thanks very much,
                                                Mike Causa
                                                mumc@uxa.ecn.bgu.edu.

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

From: paul@ramsey.cs.laurentian.ca (Paul Lalonde)
Subject: Request:  Need Xconfig for ATI VGA Wonder 512K
Date: 21 Dec 92 09:37:52 GMT

Subject says it all.  I'm a little bewildered by LINUX (SLS distribution)
at the moment, and configuring X for my video card is just a little out of
my league at the moment!

If someone could Email a copy of Xconfig, it would be appreciated!

Thanks.

Paul

-- 
====================================+=========================================
Paul Lalonde, Dept. of CompSci      |  "C'mon baby, don't fear the Reaper"
Laurentian University - Sudbury/ONT |                           -B.O.C.
----'83-Mustang-GT-5.0L--&--RUSH----+-----------------------------------------

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

From: marc@r-node.gts.org (Marc Fournier - Admin)
Subject: a few questions
Date: 21 Dec 92 07:17:41 GMT

Hi...

        I'm getting ready to install Linux as a replacement for my
existing Unix OS (its getting old, doesn't have as many features as
Linux seems to have) but currently have a couple of worries :)

        The main one is my comm's card...I have an AST 4Port Board
that I currently have to install FAS to use...I hear that someone out
there currently has an AST 4Port Board running...what's involved?

        I'm currently trying to install it on a Laptop (a trial run
before the big one) and seem to be having a few 'problems':

        - the hard drive is old and has bad sectors.  When I set up a
          partition with my old OS, it does surface analysis and sets
          up a 'bad sectors' map and so on...does Linux have something
          similar? 

        - after I finish the doinstall script, I get prompted to put
          in the formatted diskette (to make a boot diskette from),
          which I do, and which it does...no problem...except when I
          reboot...it goes through the 'Loading.....' part, and then
          the screen goes black...no cursor or anything, just
          black...ideas? 

        Please respond by email, as I currently am unable to retain
news for very long (lack of disk space)...and I have the most recent
FAQ, so please do not send that (but if it is something that I did
miss in the FAQ, please point me to it?)

Thanks...

Marc

P.S. I guess that it might make a difference...I'm using the SLS dist.


-- 
Marc G. Fournier      | R-node Public Access Unix running UnixBBS 1.10
Etobicoke, Ontario    | 416-249-5366   24hrs 7 days/week   network email
voice: 249-4230       | shell accounts available  2500+ newsgroups  FREE
marc@r-node.pci.on.ca | Telebit WorldBlazer/SupraModem2400/Cardinal 2400 

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

From: ldstern@rodan.acs.syr.edu (Larry Stern)
Subject: problem with crt0.o
Date: 21 Dec 92 09:44:04 GMT

I have SLS .98p6 running sucessfully on my 386, but on several occasions
when I've tried compiling different Unix applications the compilation
stops with a 'crt0.o' error.  Has anyone else encountered this problem,
and if so, what did you do?
                                
                                        Thanks,
                                        Larry

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

From: andrewc@aurora.cc.monash.edu.au (Andrew J. Cosgriff !)
Subject: Re: shell in emacs problem
Date: 21 Dec 92 08:35:22 GMT

jaffer@zurich.ai.mit.edu (Aubrey Jaffer) writes:

>Linux V0.98  from tsx-11 Dec 8
>emacs18.59   from tsx-11 Dec 8
>When I run a shell (/bin/sh) in a window in emacs (not Xemacs) as root
>or su everything works fine.  When I try it logged in as someone else,
>after every shell command it prints:

>/bin/sh: [328: 2] tcgetattr: Invalid argument

>(The 328 number changes with every invocation).  Additionally,
>isatty() called from a program I run in the shell returns 0.

>I assume that changing the permission on some file will fix this; what
>file???? (i have tried several).

Well, it wouldn't hurt to try a 
chmod -R 755 /usr/local/emacs

And see if it helps...

(I think emacs uses 'env' for shells, by the way - maybe that's it...)


Enjoy !

Cos !

-- 
===============================================================================
 * Andrew J. Cosgriff ! *                   #include <std_witty_quote.h>
#define HERE cc.monash.edu.au               #include <std_disclaimer.h>
Hassle me at :      andrewc@aurora.HERE ; andrewc@lindblat.HERE ; cos@yoyo.HERE

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

From: gobbi@sg1502.chemie.uni-marburg.de (Alberto Gobbi)
Subject: Problems with telnet
Date: 21 Dec 92 10:03:49 GMT

Hi 
I use linux 0.99pl5 with ne2000 driver witout fpu and scsi onm an 486 33mhz noname
with telnet i have a problem:
after a few seconds or a few minutes the connection to any foreign host is closed with
the message:
connection closed by foreign host.
with 0.98 i did not have this problem. Any ideas?

p.s. can anyone send me a copy of the manfile for ftpaccess?


Thanks Alberto Gobbi

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


** 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: Linux-Activists-Request@NEWS-DIGESTS.MIT.EDU

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

    Internet: Linux-Activists@NEWS-DIGESTS.MIT.EDU

Linux may be obtained via one of these FTP sites:
    nic.funet.fi				pub/OS/Linux
    tsx-11.mit.edu				pub/linux
    tupac-amaru.informatik.rwth-aachen.de	pub/msdos/replace

The current version of Linux is 0.98pl6 released on December 2, 1992

End of Linux-Activists Digest
******************************
