Linux-Misc Digest #208, Volume #25               Sat, 22 Jul 00 23:13:02 EDT

Contents:
  Re: Can someone recomend a good Linux (not Agent) newsreader for binaries? ("David 
A. Frantz")
  Re: Users and public_html security question. (Akira Yamanita)
  Re: Problems compiling kernel with pgcc 2.95.2 (Brian Foddy)
  Lilo Error 0x10 PLEASE HELP (utMax)
  Re: netscape windows (Ron Nicholls)
  Re: just wondering.. ("David ..")
  Re: Users and public_html security question. (Bob Hauck)
  Re: Can someone recomend a good Linux (not Agent) newsreader for binaries? (David 
Steuber)
  Re: O'Reilly book "Running Linux" useless? ([EMAIL PROTECTED])
  Re: mount hangs - cdrom and floppy (Mike)
  Re: Lilo Error 0x10 PLEASE HELP (Dances With Crows)
  Re: linux frame buffering with matrox g400 (brian moore)
  Re: mount hangs - cdrom and floppy (Mary P)
  Re: suspend? (Dances With Crows)
  Re: Can I pass sockets between processes ([EMAIL PROTECTED])

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

From: "David A. Frantz" <[EMAIL PROTECTED]>
Crossposted-To: comp.emacs.xemacs
Subject: Re: Can someone recomend a good Linux (not Agent) newsreader for binaries?
Date: Sat, 22 Jul 2000 20:53:29 -0500

In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (QuoteMstr) wrote:

> In article <[EMAIL PROTECTED]>, David Steuber wrote:
>>What I would like to do is monitor binary groups served up by my ISP
>>(Bell Atlantic) with a different news reader so that I don't go
>>sucking down all the messages in groups I look at.  Leafnode doese not
>>have enough disk space available to it for all the spool files! ;-)
>>
> 
> Both Pan (Gnome,X) And Slrn are good for binary downloads, alhough the
> former has automatic downloading of multipart articles. With slrn, you
> must tag each one individually.
> 
I would also like to suggest PAN.   It is starting to become very useful, at first 
it was to buggy, but as of version 0.8.1 it is much better.    

It is a GTK based application somewhat similar to Agent but from what I can
 see a much nicer interface.
Dave

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

From: Akira Yamanita <[EMAIL PROTECTED]>
Subject: Re: Users and public_html security question.
Date: Sun, 23 Jul 2000 01:19:18 GMT

Robert Heller wrote:
> 
>   Mats Pettersson <[EMAIL PROTECTED]>,
>   In a message on Sat, 22 Jul 2000 23:21:44 GMT, wrote :
> 
> MP> Hi!
> MP>
> MP> I'm creating users which i allow to have homepages in ~user/public_html
> MP> directory. However to let apache get access to those pages i have to
> MP> allow read for all users on the users home directory.
> MP>
> MP> In other words it seems i have to do a chmod o+r /home/user to get
> MP> access, otherwise when looking at a users homepage i get the error
> MP> "Forbidden you don't have permission to access /~user/ on this server".
> MP>
> MP> I (and the user) don't like this as this allows other users to access
> MP> all their other files.
> MP>
> MP> Have i missed some configuration or is there a workaround?
> MP>
> MP> I'm using RedHat Linux 6.2 kernel 2.2.5-22 and apache 1.3.12
> 
> chmod o-r+x /home/user
> chmod o+rx  /home/user/public_html
> 
> *Should* work.  Just checked:  yes it does:
> <snip>

If the directory isn't going to show a directory index then you
don't need read rights on public_html either.

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

From: Brian Foddy <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux.mandrake
Subject: Re: Problems compiling kernel with pgcc 2.95.2
Date: Sun, 23 Jul 2000 01:28:43 GMT

Marc,

Problem solved...  Your hints did the trick.  It
turns out to be a combination of two problems.

First, since I did the configure on the PentiumII machine,
it configured itself for a default of PPro instructions.
Secondly, the kernel make file has a bug in that while
it uses the standard CFLAGS arguments for all the kernel
modules itself, it does not use these same arguments when it
builds the kernel piggyback program, hence it only passed
-O2 to the compiler, leaving it default to PPro instructions
and hence on the misc.c module a program un-runable by
Pentium computers.

The problem could have also been prevented with a little
better configure documentation and prompting as its not
really clear that it will choose a PPro instruction set
by default bases on the installed computer.
In fact the docs discourage overriding the
default target and don't document what valid options are.
In my case, I actually did the configure on the Pentium
to ensure it picked Pentium as default

Anyway, I'm not looking to assess blame, but rather
posting this message to say thanks and hopefully provide
a clue to other people who might stumble into this in the
future; hence I'm .cc the news groups and pgcc group
to get it into the archives.

Thanks again.
Brian

On Sat, Jul 22, 2000 at 02:39:35PM -0500, Brian Foddy
<[EMAIL PROTECTED]> wrote:
> the gcc source and applied the patch by the instructions given on the
> web site; which a default ./configure may have picked PPro??

Try to run etc/config.sub.. if it outputs something with i686 then gcc
and
pgcc will use ppro-instructions for the runtime libraries (and
everything
else) by default.

> second time I downloaded the binary from the ftp site.  Both installs
> gave the same result.

Never trust something you haven't compiled yourself ;)

> So from reading your posted reply to Krzysztof, is it possible to use
> the same pgcc install to generate optimized code for both my Pentium
and P2?

Yes, just configure it as "i586-something" instead of as
"i686-something".
gcc -v displays the current configuration:

cerebro:~# gcc -v
Reading specs from /usr/lib/gcc-lib/i586-pc-linux-gnu/pgcc-2.95.2/specs
gcc version pgcc-2.95.2 19991024 (release)

> Attached is a .tar.gz that contains the misc.c, and both outputs
> of misc.s you requested.  The only compile option was -O2, plus
> some -D defines (the whole line is in my original post).

Indeed, the pgcc version makes a lot of use of the conditional move
instructions:
+       cmovae %eax,%ecx

However, since you said you call it with -march=pentium this should not
really happen. Strange. Are you sure the switches reach the compiler?

Anyway, configuring pgcc with pentium as default target will solve that
problem.

--
      -----==-                                             |
      ----==-- _                                           |
      ---==---(_)__  __ ____  __       Marc Lehmann      +--
      --==---/ / _ \/ // /\ \/ /       [EMAIL PROTECTED] |e|
      -=====/_/_//_/\_,_/ /_/\_\       XX11-RIPE         --+
    The choice of a GNU generation                       |
                                                         |



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

From: utMax <[EMAIL PROTECTED]>
Subject: Lilo Error 0x10 PLEASE HELP
Date: Sun, 23 Jul 2000 01:30:06 GMT

OK this started  very recently after i reinstalled Redhat 6.2 for like my 
fifth time, the first two reinstallations it worked fine and i was able to 
boot with no rpoblems, but then when i tried to boot with lilo i got the 
Error 0x10. I have tried many different things like formatting my hard 
drive and a lotta other stuff but still i get the same error
i even deleted my windoze.
Please help me I am a newbie at linux and would apreciate any help
Thank you

--
Posted via CNET Help.com
http://www.help.com/

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

From: Ron Nicholls <[EMAIL PROTECTED]>
Subject: Re: netscape windows
Date: Sun, 23 Jul 2000 11:37:59 -1000

Andrew Purugganan wrote:

> [ > I have no problem resizing navigator with the a
> [ > 'corner drag', if I understand what you mean.
> 
> [ I am using enlightenment and gnome and the navigator window
> [ is fixed in size.
> 
> Maybe they start Navigator 'borderless' so you don't get a resize bar.

Ten Four !! That was it- no border

Thanks
-- 
-
-
Regards 
message_ends.

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

From: "David .." <[EMAIL PROTECTED]>
Subject: Re: just wondering..
Date: Sat, 22 Jul 2000 20:28:01 -0500

Dirk Reckmann wrote:
> 
> On Fri, 21 Jul 2000 22:01:30 -0500, David .. <[EMAIL PROTECTED]> wrote:
> >Dirk Reckmann wrote:
> >>
> >>
> >> Well, I'm a little bit surprised, but you're right. The kernel contains
> >> only about one and a half million lines:
> >>
> >> DeepThought:[linux]> find \( -name \*.c -o -name \*.h -o -name \*.S \)  \
> >> > -exec cat {} \; | wc --lines
> >> 1562922
> >
> >That's kind of big isn't it?? Mine only has 92499 lines in it with a
> >custom built kernel.
> 
> Did you count the lines in the compiled kernel??? I've built varius
> custom kernels from my sources, but this does'nt change them,
> i.e. there should be no disapearing lines...
> 
> Or your find invokation could have been wrong, I first forgot the \(
> and \), so I got only the line count of the .S files.
> 
> Or you have only installed the Kernel header files. (Forget it, if you
> built your own kernel, you have of course installed the sources... :-)
> 
> Last try: My kernel is 2.2.9-2, is yours pre-1.3 ??? :-))

 2.2.16 But as I said it is a custom built kernel, stripped down to only
what my system needs. After being compiled there is a lot of the code
that can be removed from the system. About the only thing left on my
system is .h files for the kernel.

You do know about the bug in all kernels prior to 2.2.16 don't you?
-- 
Confucius say: He who play in root, eventually kill tree.
Registered with the Linux Counter.  http://counter.li.org
ID # 123538

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

From: [EMAIL PROTECTED] (Bob Hauck)
Subject: Re: Users and public_html security question.
Reply-To: bobh{at}haucks{dot}org
Date: Sun, 23 Jul 2000 01:43:40 GMT

On Sat, 22 Jul 2000 23:21:44 GMT, Mats Pettersson <[EMAIL PROTECTED]> wrote:

>I'm creating users which i allow to have homepages in ~user/public_html
>directory. However to let apache get access to those pages i have to
>allow read for all users on the users home directory.

You only need execute on the user's home directory (chmod o+x).


>I (and the user) don't like this as this allows other users to access
>all their other files.

Make all users home directories owned by the user and group "users". 
Put all users in "users".  Take away rwx for "users" on the home
directories, but leave execute for "other".

-- 
 -| Bob Hauck
 -| To Whom You Are Speaking
 -| http://www.haucks.org/

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

Crossposted-To: comp.emacs.xemacs
Subject: Re: Can someone recomend a good Linux (not Agent) newsreader for binaries?
From: David Steuber <[EMAIL PROTECTED]>
Date: Sun, 23 Jul 2000 02:00:03 GMT

[EMAIL PROTECTED] (Kai Gro=DFjohann) writes:

' It is quite possible to use several news servers from one instance of
' Gnus, and you can explicitly tell the Agent which news servers should
' be covered by the Agent and which should not be covered.

This sounds good.  This means I can have leafnode as one news server
and server-x as another news server with subscribed groups in each
maintained seperatly?

' Try typing `B' in the Group buffer, then follow the prompts.  You can
' go back to the new server by typing `^' in the Group buffer, then
' hitting `RET' on the right server.  Use `u' to subscribe to the groups
' you like.

Ok, you are confusing me a bit here, but I will play around with it.

' If you don't add the new server to the agent, it will not be covered
' by the agent.  That's what you want, right?

I want to use Leafnode as the NNTP server for discussion groups that I
follow and my ISPs NNTP server for binary groups.  I want some
obviouse distinction between which server serves which groups I
subscribe too.

-- =

David Steuber   |   Hi!  My name is David Steuber, and I am
NRA Member      |   a hoploholic.
http://www.m-w.com/cgi-bin/dictionary?book=3DDictionary&va=3Dhoplite&subm=
it=3DLook+it+up

The problem with AI is that it has a mind of its own
        --- Devon Miller

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

From: [EMAIL PROTECTED]
Subject: Re: O'Reilly book "Running Linux" useless?
Date: Sat, 22 Jul 2000 18:46:36 -0700

On or about 22 Jul 2000 17:25:40 -0500, Robert Love <[EMAIL PROTECTED]> scrivened:

> I got a copy of the Welsh book with my distribution.  Thought it was a
> nice touch.  However, 2nd time I use it I find several errors.  Maybe
> its just old & out of date.  Or it could be full of good stuff and I
> just got unlucky but 50% is not a passing grade.

Which edition of the book?  It's currently in its 3rd edition as I
recall.  There is sufficient change and variance among distributions
that discrepencies may be apparent.

> For example, in Chapter 8, the section on Making Backups tells me that
> my non-rewinding SCSI drive is /dev/nrst0.  I don't have such a
> device.  I do have /dev/nst0.  Is that the same thing?  Then I'm told
> that I can use mt like this:

>   # mt /dev/nrst0 rewind

> That fails.  The man page tells me I need mt -f /dev/nst0 rewind.

Use what works.  "nrst" means "no-rewind scsi tape", "nst" abbreviates
the "r" out of that.   Not sure if/when that changed.  If you do note
changes, check out the feedback section of the book and submit your
remarks to the author or editor as appropriate.

For documentation, refer to books for context, system documentation for
your system specifics, and actual behavior for how things work.  Usually
commands have a -help or --help option which will show switches.  In the
case of device files, you might want to look under the kernel sources
(/usr/src/linux) for some information as to what's significant (hint:
mode numbers, not names).

> If every time I attempt to use this book I have to find corrections
> its going to be slow going.  How good is this book?

My $0.02, using the *1st* edition, is that it is useful in terms of
describing general philosophy and tactics of Linux.  Most of the specific
installation and configuration details have changed significantly.
Sections dealing with X configuration are almost completely historical.
The rest of the book becomes an overview of general system capabilities.

I refer to this book less often than I do references for specific tasks
(networking, programming languages).  I also have Nemeth and Frisch's Unix
system administration texts handy, as well as Kernighan and Pike's _The
UNIX Programming Environment_, which, though *very* dated (early 1980s),
is also quite useful in desribing what the fundamental Unix philosophy
is all about.

-- 
Karsten M. Self <[EMAIL PROTECTED]>     http://www.netcom.com/~kmself
 Evangelist, Opensales, Inc.                    http://www.opensales.org
  What part of "Gestalt" don't you understand?   Debian GNU/Linux rocks!
   http://gestalt-system.sourceforge.net/    K5: http://www.kuro5hin.org
GPG fingerprint: F932 8B25 5FDD 2528 D595 DC61 3847 889F 55F2 B9B0

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

From: [EMAIL PROTECTED] (Mike)
Subject: Re: mount hangs - cdrom and floppy
Reply-To: [EMAIL PROTECTED]
Date: 22 Jul 2000 20:11:44 -0700

[EMAIL PROTECTED] ([EMAIL PROTECTED]):
> Mike <[EMAIL PROTECTED]> wrote:
> 
> >> What entries are there in /etc/fstab?
> 
> > My fstab entries are on noauto
> > /dev/fd0                /mnt/floppy             ext2    owner,noauto    0 0
> > /dev/fd0                /floppy                 vfat    owner,noauto    0 0
> > /dev/cdrom              /cdrom               iso9660    noauto,ro       0 0
> 
> Hmmm ... no "user" access. Are you trying to mount them as root?

Yes.  The odd thing is the other things I can do.  I just made a boot disk, dd
if=boot.img of=/dev/fd0, which I used to upgrade to RH6.2.  However, this
didn't help, attempting to mount either the floppy or the cdrom still hangs.  I
guess it must be something with the kernel, considering the RH boot.img was
able to mount the cdrom.  I would think a prepackaged kernel wouldn't give
difficulties like this.  Or perhaps some library mount uses got corrupted, but
then it mounts /dev/hd[ab] fine on bootup.  The hardware certainly works.

Still not knowing what action to take,
-- 
Mike

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

From: [EMAIL PROTECTED] (Dances With Crows)
Subject: Re: Lilo Error 0x10 PLEASE HELP
Date: 23 Jul 2000 02:32:54 GMT
Reply-To: [EMAIL PROTECTED]

On Sun, 23 Jul 2000 01:30:06 GMT, utMax <[EMAIL PROTECTED]> wrote:
>OK this started  very recently after i reinstalled Redhat 6.2 for like my 
>fifth time, the first two reinstallations it worked fine and i was able to 
>boot with no rpoblems, but then when i tried to boot with lilo i got the 
>Error 0x10. I have tried many different things like formatting my hard 
>drive and a lotta other stuff but still i get the same error

According to the LILO documentation, error 0x10 means "CRC Error".  This
often means that LILO has been installed to a spot on the disk which
contains bad sectors.  The documentation suggests trying to boot again,
booting from a floppy disk and re-running LILO, re-installing Linux,
this time using the "Format and Check" option when it comes time to
format/partition the disk, and as a last resort replacing the hard
drive.

Someone else reported this same problem not too long ago.  It might help
to know the motherboard and hard drive makes/models so we can determine
if there are problems with a specific type of drive or chipset....

-- 
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin/   That which does not kill us
http://www.brainbench.com    /    makes us stranger.
============================/            ==Trevor Goodchild

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

From: [EMAIL PROTECTED] (brian moore)
Subject: Re: linux frame buffering with matrox g400
Date: 23 Jul 2000 02:34:51 GMT

On Tue, 11 Jul 2000 22:37:10 +0200, 
 Otto Wyss <[EMAIL PROTECTED]> wrote:
> > Hi - I'm just curious, why do you need FB with this card? Standard
> > techniques of XFree86 work just perfectly...
> > 
> Since you can use the bigger display also in console mode. Ever heard of
> anyone looking at 24x80 on there 21" display?
> 
> Many graphics cards don't work well with the framebuffer of the 2.2.x
> kernels, you have to use a development kernels.

The G400, though, should work fine.  Just lie and tell the kernel you
have a G200.  (The two are similar enough that for most things the G400
appears as a fast G200 with some added capabilites.)

-- 
Brian Moore                       | Of course vi is God's editor.
      Sysadmin, C/Perl Hacker     | If He used Emacs, He'd still be waiting
      Usenet Vandal               |  for it to load on the seventh day.
      Netscum, Bane of Elves.

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

From: [EMAIL PROTECTED] (Mary P)
Subject: Re: mount hangs - cdrom and floppy
Date: 23 Jul 2000 02:43:38 GMT
Reply-To: [EMAIL PROTECTED]

>> Mike <[EMAIL PROTECTED]> wrote:
>> > On both cdrom and floppy, my mount hangs.  I can play audio cd's and format

As >spamless< suggested, mount has a -v (verbose) mode, so what happens
if you try this:

mount -v -t iso9660 /dev/cdrom /mnt/cdrom

and then (when it won't work)

do this:

tail -f /var/log/messages

which will let you see the last 10 or so messages in your log. I just
tried this and my mount command is working, so /var/log/messages had
three lines telling me hdb had just been mounted with an ISO9660
filesystem. Yours possibly will have something saying what went wrong.

Then maybe we can come up with a solution!

Hope this helps,
Mary P.

-- 
"If there are any gods whose chief concern is man, they cannot be very
important gods."
--Arthur C. Clarke 
    _
   . .
    V
  // \\
 //   \\
  (W W)

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

From: [EMAIL PROTECTED] (Dances With Crows)
Subject: Re: suspend?
Date: 23 Jul 2000 02:46:15 GMT
Reply-To: [EMAIL PROTECTED]

On 22 Jul 2000 23:46:48 GMT, Tomislav Nakic-Alfirevic 
<[EMAIL PROTECTED]> wrote:
>Does anyone know of a tool that logs any r/w operations on a chosen
>partition?

This would most likely be prohibitively expensive in terms of CPU
time... the root partition is accessed dozens of times per second, if
only for libc.  If you could tell us what you need this for, it's
possible that we could tell you of a tool that would do what you want.

>I'd like my disk to go to sleep after several minutes of inactivity,
>but a process seeems to use the disk aproximately every 17 seconds so
>the disk can't go to sleep. I guess it's not a memory caching problem:
>I have 64 MB and also, there are no other users than myself.

syslogd writes to the disk every so often, and update syncs the disks
every 30 seconds by default.  You can change this behavior by editing
/etc/inittab (/sbin/init.d/boot on SuSE systems) and changing the line 
that says "/sbin/update" to "/sbin/update -s NUM -f NUM" where NUM is
a time value in seconds.  Also, read the man page for hdparm to find the
command to sping the drive down after N seconds of inactivity.

>Furthermore, if anyone has any tips on the following subjects, I'd
>be grateful for the help:
>1.) doing something similar to Windows suspend on my linux system,
>2.) is wake-from-suspend possible by a process or a remote login?

1.  Why?  Is this a laptop?  If not, probably not.  If so, it's very
dependent on actual hardware.  If you just want to blank the screen and
have the drives spin down, see above for "update" tweaking, and mess
with hdparm and the X-Server's DPMS options.  (Better yet, turn off the
monitor when you're going to be away from it for a while.)

2.  Dependent on actual hardware.  Wake-On-LAN Ethernet cards are
available, and Wake-On-Modem capability may be present in your
motherboard BIOS.

Keep in mind that modern hard drives are built/made to operate
continuously.  I've had mine running for a month at a time without
problems, and these are cheap-arse IDE drives.  If it's noise you object
to, get a heavier case or put sound-insulating material around the case
you have.

-- 
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin/   That which does not kill us
http://www.brainbench.com    /    makes us stranger.
============================/            ==Trevor Goodchild

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

From: [EMAIL PROTECTED]
Subject: Re: Can I pass sockets between processes
Date: Sun, 23 Jul 2000 03:04:35 GMT

Gast Primus <[EMAIL PROTECTED]> wrote:
> Hi

> This is my problem I hope you can help.

> I have 3 processes A B and C running on a single processor. A writes to B
> via a socket, B reads the info and passes it on to C via a socket. Is it
> possible for B to pass A's socket to C  so they can read and write directly
> returning the socket to B when communication is over.

> References to books, man pages etc would be appreciated.

> Thanks

> Iain

> NB I am running Red hat 5.1 but will upgrade if this helps

"Internetworking with TCP/IP", BSD Socket Version,
Douglas E. Comer and David L. Stevens, Prentice Hall.



-- 

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


** 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 (and comp.os.linux.misc) via:

    Internet: [EMAIL PROTECTED]

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