Linux-Development-Sys Digest #810, Volume #7     Fri, 28 Apr 00 09:13:16 EDT

Contents:
  Re: MS caught breaking web sites (Sean LeBlanc)
  Re: How legal is it??? ("Mark Graybill")
  Re: System Immutable Request (Kalle Olavi Niemitalo)
  The ARP table ("franck.bonin")
  Re: logging in as root over SSH (Peter Simons)
  Re: This is a FAQ  [Was: Re: cli() & sti()..] (Mathias Waack)
  job control (nicolas delon)
  Re: Struct size and allocate problem! need help. (John B)
  Re: How many pty's (H. Peter Anvin)
  UFS and ext2 (warren)
  Re: How to replace NIC (Anders Larsen)
  Re: bz2 file (Anders Larsen)
  Re: unresolved symbols (Mei)
  proc-info (Axel Hoffmann)
  Re: This is a FAQ  [Was: Re: cli() & sti()..] (Alan Donovan)
  job control suite ... (nicolas delon)
  Re: job control suite ... (Alan Donovan)
  Re: how Linux handles memory management (Kaz Kylheku)
  Re: "Out of memory" after first compile kernel. (Zirong Wang)
  Re: Struct size and allocate problem! need help. (Bernd Strieder)
  guruUDB: Development of a new User DataBase/directory service. (Faldegast)

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

Crossposted-To: 
comp.os.linux.advocacy,comp.os.ms-windows.advocacy,comp.os.ms-windows.nt.advocacy,comp.os.linux.networking,comp.os.linux.security,comp.os.ms-windows.networking.tcp-ip,alt.conspiracy.area51
Subject: Re: MS caught breaking web sites
From: Sean LeBlanc <[EMAIL PROTECTED]>
Date: Fri, 28 Apr 2000 05:26:34 GMT


Couldn't agree more. NT 4.0 workstation is a desktop (or tower :) )
OS by most people's definition. I've been using NT workstation
at jobs I've had since 1995. I've been using it at home since
1996. It has never (under ordinary circumstances)
taken me five minutes to boot or shutdown,
and I have 3 SCSI components in my system. Got news for you:
a similarly loaded setup of RedHat 6.1 and NT 4.0 workstation
take roughly the same time to load; I've timed them some time
ago just out of curiousity...both under a minute, including
time from power on to a logon screen.
To be fair, yes, RedHat has many more services out of the
box than NT has, and I was running the "graphical boot" in
RedHat. 

I'd time it again to get exact seconds, but my current install
would be unfair - Linux is on IDE right now, and WinNT resides
on SCSI. 

I'm not sure why the original claim was even made, it makes
no sense to me.

I've seen NT have problems with weird states and getting
it to shutdown gracefully may be impossible (yesterday I
saw it "lose" connection to domain, apparently, and not
allow login, even though I know domain admin password,
and it supposedly caches that data - odd; had to hard
re-boot, ie, reset button) or lengthy, but
under normal conditions, both the workstation and server
of NT 4.0 start up and shut down WAY under 5 minutes.

M$ products clearly have issues, and I'm not contesting
that, but let's get serious: NT 4.0 is a desktop OS, and
there is no doubt about that. Now, if someone were to say
NT 4.0 server is not a server OS, that might be debatable.
Can't speak for Win2K, haven't seen it used extensively.

"Christopher Smith" <[EMAIL PROTECTED]> writes:

> "Rasputin" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
> > Scott Zielinski wrote:
> > > > If its a "NT replacement" is not on the desktop.  In the real world,
> NT is
> > > > not a desktop OS.
> > > That's absolutly, completely, untrue. Ever hear of "NT Workstation?" If
> > > that isn't a desktop OS....
> >
> > A 'desktop OS' boots in less than 5 minutes. A 'desktop OS' takes less
> > than 5 minutes to shut down. Nuff said.
> 
> Thus easily allowing NT to be a "desktop OS".
> 
> If you've got an NT *Workstation* install that's taking that long to boot
> and shut down, you have serious problems.

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

From: "Mark Graybill" <[EMAIL PROTECTED]>
Crossposted-To: 
alt.comp.lang.learn.c-c++,comp.lang.asm.x86,comp.lang.c++,comp.os.linux.development.apps,microsoft.public.windowsnt.protocol.tcpip,microsoft.public.win32.programmer.tools
Subject: Re: How legal is it???
Date: Fri, 28 Apr 2000 06:09:48 GMT
Reply-To: "Mark Graybill" <[EMAIL PROTECTED]>


Don't you just love newsgroup attorneys?

I would say tort concerns would be the real risk.

I can see keystrokes being no problem, but get into mouse movements and
actions, and you drag the system down.

Besides, if you wanted it to run on NT or 2000 (same as the next NT), you'd
have to write your own Gina (NT security module - the most I will get into -
I'm trying to get back to unix and away from the Macros&!t stuff.)

-Mark
 


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

From: Kalle Olavi Niemitalo <[EMAIL PROTECTED]>
Subject: Re: System Immutable Request
Date: 28 Apr 2000 09:25:53 +0300

apex <[EMAIL PROTECTED]> writes:

> System Immutable is not realy possible with the current implementation.
> This is because (as you all know)
> you can change the flags right back.

If root doesn't have the CAP_LINUX_IMMUTABLE capability, he can't
change the flags.

http://banyan.dlut.edu.cn/news/062299/52.html

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

From: "franck.bonin" <[EMAIL PROTECTED]>
Subject: The ARP table
Date: Fri, 28 Apr 2000 06:57:27 GMT

Hi,

Does anyone know how can network or a char drivers acces (and modify)
the ARP table ?

Franck.


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

From: Peter Simons <[EMAIL PROTECTED]>
Subject: Re: logging in as root over SSH
Date: 28 Apr 2000 08:57:45 +0200

>>>>> Christopher Browne writes:

 > If I can ssh straight in as root, I can do so virtually
 > anonymously, and thus do the damage, and get out, without anyone
 > being able to identify me.

Another advantage of not allowing people to log into a machine as
'root' directly is that a potential hacker can not exploit a
root-password without having access to a user account also. So he
effectively needs to compromise two accounts to become superuser
rather than just one.

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

From: Mathias Waack <[EMAIL PROTECTED]>
Subject: Re: This is a FAQ  [Was: Re: cli() & sti()..]
Date: Fri, 28 Apr 2000 09:34:41 +0200

Alan Donovan wrote:
[ faq for c.o.l.d.s ]

You've choosen a very laborious way to tell us that you'll 
write a FAQ for this group.

SCNR
        Mathias

-- 
Mathias Waack           |     [EMAIL PROTECTED]
Tel.:  +49 621 181 2717  Fax.:  +49 621 181 2713

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

From: nicolas delon <[EMAIL PROTECTED]>
Subject: job control
Date: 28 Apr 2000 09:28:15 +0000

I write a shell who must run under NetBSD, but I'm a fan of
Linux, so I'd like that it could run also under Linux.

So here is my problem :

actually i do the job control, i write few lines are efficient under netbsd
but who doesn't work under linux.

so here is my piece of my code with annotation : 

/*
** exec_cmd.c for  in 
** 
** Made by nicolas delon
** Login   <[EMAIL PROTECTED]>
** 
** Started on  Fri Jan 21 12:31:06 2000 nicolas delon
## Last update Fri Apr 28 09:26:48 2000 nicolas delon
*/

#include "my/my.h"
#include "shell.h"
#include <fcntl.h>
#include <signal.h>

void    exec_cmd(char *cmd[], int bg)
{
  int   pid;
        
  signal(SIGCHLD, waiting);
  if ((pid = fork()) == -1)
    {
      perror("mysh");
      return;
    }
  else if (pid)
    {
      if (bg)
        return;
      else
        {
          setpgid(pid, pid);
          tcsetpgrp(open("/dev/tty", O_RDONLY), pid)
          pause();
          tcsetpgrp(open("/dev/tty", O_RDONLY), getpid())       /* here is the 
mistake, the son die, the father continue 
                                                                   and he reveices a 
SIGTTOU 
                                                                   under Linux (it 
works under NetBSD) */
        }
    }
  else
    {
      usleep(1);
      setpgid(getpid(), getpid());
      if (!bg)
        {
          tcsetpgrp(open("/dev/tty", O_RDONLY), getpid())
        }
      cmd = redirections(cmd);
      if (execvp(cmd[0], cmd) == -1)
        {
          aff_error("mysh: ");
          aff_error(cmd[0]);
          aff_error(": ");
          aff_error("command not found\n");
          exit(0);
        }
    }
}

so if anybody have a solution for this problem ....
-- 
        |            Nicolas DELON              |
        |                                       |
        |          EPITECH 1ere ANNEE           |

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

From: John B <[EMAIL PROTECTED]>
Crossposted-To: 
alt.os.linux,comp.os.linux.development.apps,comp.unix.sco.misc,comp.unix.sco.programmer,comp.unix.unixware.misc,tw.bbs.comp.linux
Subject: Re: Struct size and allocate problem! need help.
Date: 28 Apr 2000 03:50:44 EDT

semicolon after a3 and a4

Maruthi Vinjamuri wrote:

> If you are compiling the following program on Unixware 7.1.0 or
> later systems, then try running cc with the following option with
> cc.
>
> cc -Zp1 <filename>
>
> p1 Selects at least one byte alignment for all structure members;
> or,
>           in other words, include no padding.
>
> So, you should see 10 as the size of struct a.
>
> Jaron wrote:
>
> > Hi,
> >     I encounter a compiling program as below:
> >
> >     struct    a {
> >         unsigned char    a1;
> >         unsigned char    a2;
> >         unsigned short    a3
> >         unsigned short    a4
> >         unsigned long    a5;
> >     };
> >
> > the structure size must be 10 but use sizeof print out is 12...
> > I know this is the alignment problem of structure ..
> > But how to resolve it ?
> > I need to know the compiler option like -xx ?
> > do anyone konw about this ?


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

From: [EMAIL PROTECTED] (H. Peter Anvin)
Subject: Re: How many pty's
Reply-To: [EMAIL PROTECTED] (H. Peter Anvin)
Date: 28 Apr 2000 01:18:46 -0700

Followup to:  <[EMAIL PROTECTED]>
By author:    Anders Larsen <[EMAIL PROTECTED]>
In newsgroup: comp.os.linux.development.system
> 
> : When not in use, each additional set of 256 PTYs occupy
> : approximately 8 KB of kernel memory on 32-bit architectures.
> 
> > I hate to say this but solaris is so easy here, just edit /etc/system
> > to change cnt_pty to what ever number you need and reboot.
> > 
> > Oh well, maybe on a later kernal release this sort of thing will
> > be dealt with.
> 
> See above.
> BTW, it's kernel with two ees.
>               ^
> 

In a future release (2.5 series) this hopefully will either be a
sysctl or fully dynamic.

        -hpa

-- 
<[EMAIL PROTECTED]> at work, <[EMAIL PROTECTED]> in private!
"Unix gives you enough rope to shoot yourself in the foot."

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

From: warren <[EMAIL PROTECTED]>
Subject: UFS and ext2
Date: 28 Apr 2000 08:44:20 GMT

I will setup a File Server. I consider to use Linux ext2 or FreeBSD UFS.
Which one has better performance? Any comment will be appriciated.

    Warren


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

From: Anders Larsen <[EMAIL PROTECTED]>
Subject: Re: How to replace NIC
Date: Fri, 28 Apr 2000 10:18:04 +0200

Mark Graybill wrote:
> 
> It's pretty standard today for NICs to be NE2000 compatible, or at least
> configurable that way.
> 
> Linux supports NE2000 compatible NICs (module 'ne'.)
>
> bbyeung wrote in message ...
> >I have an NIC that needs to be replaced.  The problem is that I'm not sure
> >whether the kernal running on my machine support the new drivers.  In
> >fact, the OS was setup by someone before me and I can't find any
> >reference.  Please advise how can I check my kernal version.

That does not make a NE2000 compatible NIC the best choice, though.
NE2000 is accessed through programmed I/O - no such thing as bus-master DMA
to improve performance - CPU load gets quite high if you have a NE2000
compatible w/ 100Base-T.

A peek into drivers/net/ne.c reveals this comment:

/* Ack! People are making PCI ne2000 clones! Oh the horror, the horror... */

Enough said...

--
cheers
  Anders Larsen
e-mail: alarsen AT baumerident DOT com

Q: What does the CE in Windows CE stand for?
A: Caveat Emptor

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

From: Anders Larsen <[EMAIL PROTECTED]>
Subject: Re: bz2 file
Date: Fri, 28 Apr 2000 10:28:00 +0200

kartika garg wrote:
> 
> Nope I did it again.The length doesn't change neither when I download to windoze

That is, when you download the file to Windblows and download the same file
*directly* to Linux you get the same length?

> nor when I ftp it to linux(using binary mode).Also in windoze it shows the correct
> properties as archive and compressed. I downloaded by right-clicking on the link.

WinDOS shows the properties based on file-name extension (.bz2), not on
contents.
The file could still be corrupt.

Do you have the possibility to bunzip2 the file on Windoze and check the result?
FTP'ing the file from Windog to Linux certainly should not corrupt any file.

Perhaps you could try to fetch the file with Linux using nc or telnet and check
the MIME type offered by the server?
If it turns out to be "text/plain", you simply can't use your Windos browser to
download - in that case you should bully the webmaster until he corrects *his*
problem!

> Anders Larsen wrote:
> 
> > kartika garg wrote:
> > >
> > > But I didn't ftp.I downloaded from the net.surely that should not make a
> > > difference???
> >
> > Have you compared the length of the file on Windoze with that on Linux?
> > (that is, did the file corruption occur as you downloaded to Windblows, or
> > as you FTP'ed the file to linux)
> >
> > If the length did not change as you transferred the file to Linux, the
> > corruption most probably occurred as you downloaded to Windows (in a browser?)
> > You may try right-clicking the link (should force download to disk) instead
> > of loading the thing into the browser window.
> >
> > The problem could also be with the server in question (or with an intermediate
> > proxy); if no MIME type is specified for .bz2 files they might get sent as
> > "plain/text" causing Windblows to perform a lethal LF->CR/LF conversion.
> >
> > OTOH, if the length did indeed change as you FTP'ed from Windows to Linux,
> > then Robert has hit the point.
> >
> > > Robert Schiele wrote:
> > >
> > > > kartika garg wrote:
> > > > >
> > > > > Can you not download .bz2 files to windows.I have noticed that when I
> > > > > download .bz2 files to windows and than ftp it to linux it gives an
> > > > > error--"files are probably corrupt" but if I download them on linux then
> > > > > there is no problem. Can somebody tell me the reason???
> > > >
> > > > Assure, your ftp client is set to binary mode!
> > > > The Windows ftp client is normaly set to ascii mode which will corrupt
> > > > binary code.

--
cheers
  Anders Larsen
e-mail: alarsen AT baumerident DOT com

Q: What does the CE in Windows CE stand for?
A: Caveat Emptor

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

From: Mei <[EMAIL PROTECTED]>
Subject: Re: unresolved symbols
Date: Fri, 28 Apr 2000 10:25:20 +0200
Reply-To: 
[EMAIL PROTECTED]

Aurelie Fonteny ha scritto:
> 
> Hi,
> I'm triing to load a module that I've just written.
> I compiled it with -D__KERNEL__ -DMODULE -O Wall ..., and installed it by
> just doing install - c new_mod.o /lib/modules/$(VER)/net
> Now, when I'm loading it I can't get rid of the unresolved symbols :
> unresolved symbol htonl
> unresolved symbol htons
> unresolved symbol memmove
> unresolved symbol __constant_memcpy
> unresolved symbol __memcpy
> ....
> Does someone know why?
> 

I think you need to compile with -O2 option. This option enables the inline
functions (probably some unresolved symbols are inline functions).

Ciao Mei

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

Date: Fri, 28 Apr 2000 12:25:02 +0200
From: Axel Hoffmann <[EMAIL PROTECTED]>
Subject: proc-info

Hi there!
I have to get some Information 'bout processes (timestamps of certain
processes for entering or leaving the cpu and the  like) and dump this
to a file. Now, why is work like this always done using a daemon and not

straight ahead via the kernel?
Thanks for any suggestions on this.
    Axel


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

From: Alan Donovan <[EMAIL PROTECTED]>
Subject: Re: This is a FAQ  [Was: Re: cli() & sti()..]
Date: Fri, 28 Apr 2000 11:29:10 +0100

Mathias Waack wrote:
> 
> Alan Donovan wrote:
> [ faq for c.o.l.d.s ]
> 
> You've choosen a very laborious way to tell us that you'll
> write a FAQ for this group.
> 
> SCNR
>         Mathias

I feared this would happen. Well, for my own benefit I have started
editing these threads into a Socratic dialog. If anyone has got a
website they wouldn't mind using for this purpose I can send it them as
I make changes to it. It might evolve into a FAQ one day.

alan



-- 
========================================================================
  Alan Donovan     [EMAIL PROTECTED]    http://www.imerge.co.uk
  Imerge Ltd.      +44 1223 875265

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

From: nicolas delon <[EMAIL PROTECTED]>
Subject: job control suite ...
Date: 28 Apr 2000 13:43:13 +0000

i know that this function is too long and bourrin but it's just a test
-- 
        |            Nicolas DELON              |
        |                                       |
        |          EPITECH 1ere ANNEE           |
        |           voudrait devenir            |
        |         Administrateur Linux          |
        | (voila, ca fait moins pretentieux...) |

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

From: Alan Donovan <[EMAIL PROTECTED]>
Subject: Re: job control suite ...
Date: Fri, 28 Apr 2000 13:39:30 +0100

nicolas delon wrote:
> 
> i know that this function is too long and bourrin but it's just a test

And your linux kernel question is...?


-- 
========================================================================
  Alan Donovan     [EMAIL PROTECTED]    http://www.imerge.co.uk
  Imerge Ltd.      +44 1223 875265

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

From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: how Linux handles memory management
Reply-To: [EMAIL PROTECTED]
Date: Fri, 28 Apr 2000 12:46:53 GMT

On Fri, 28 Apr 2000 04:30:05 GMT, ing <[EMAIL PROTECTED]> wrote:
>Hi,
>I don't understand how Linux handles momory management. For example how 
>Linux control the Virtual memory, pagetable and etc.
>Could you give me a basic explanation about this?

It sounds like you might benefit from reading some texbook that describes
virtual memory management in general, like _Computer Organization and
Architecture_ by William Stallings.

-- 
#exclude <windows.h>

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

From: Zirong Wang <[EMAIL PROTECTED]>
Subject: Re: "Out of memory" after first compile kernel.
Date: Fri, 28 Apr 2000 14:51:47 +0200

did you enable the swap ?
check your /etc/fstab, 

Pichet Ratanayant wrote:
> 
> Hi All,
> 
> I am compile kernel follow this step,
> 
> make dep
> make clean
> make bzImage
> 
> After that, I am use "linuxconf" to install kernel, reboot system and
> see following message,
> 
> Out of memory
> -- System halted
> 
> My environment are
> 
> Red Hat Linux 6.0, Pentium II 450, 128M byte of RAM.
> 
> Please help me to fix this problem.
> Thank in advance.
> Pichet R.

-- 
=====================================================================
Zirong Wang    Oce Industries  1, Rue J. Lemoine 94015 Creteil France

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

From: Bernd Strieder <[EMAIL PROTECTED]>
Crossposted-To: 
alt.os.linux,comp.os.linux.development.apps,comp.unix.sco.misc,comp.unix.sco.programmer,comp.unix.unixware.misc,tw.bbs.comp.linux
Subject: Re: Struct size and allocate problem! need help.
Date: Fri, 28 Apr 2000 14:48:23 +0200

Maruthi Vinjamuri wrote:
> >     I encounter a compiling program as below:
> >
> >     struct    a {
> >         unsigned char    a1;
> >         unsigned char    a2;
> >         unsigned short    a3
> >         unsigned short    a4
> >         unsigned long    a5;
> >     };
> >
> > the structure size must be 10 but use sizeof print out is 12...
> > I know this is the alignment problem of structure ..
> > But how to resolve it ?
> > I need to know the compiler option like -xx ?
> > do anyone konw about this ?

How about putting that structure into an char[10] and access the bytes
as needed. This problem usually occurs when exchanging data between
systems with different binary formats. There are issues as network and
host byte order as well. If you aim at portability, try to convert the
data to a portable non-binary format in between the participating
systems. If this is not possible, the char[10] is the ugly last resort,
a typical hack to accomodate to something you have no influence on.

Bernd.

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

From: Faldegast <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,comp.software.config-mgmt
Subject: guruUDB: Development of a new User DataBase/directory service.
Date: Thu, 27 Apr 2000 14:55:17 +0200
Reply-To: [EMAIL PROTECTED]

guruUDB are a open source (=free) software intended to centralise user
administration, and integrate DNS services into the same software that
handles users and group.

Read and comment the draft that will become the specification.

There is also a brief overview in Swedish on our site.

http://www.soft.guru.se/guruUDB/


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


** 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.development.system) 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-Development-System Digest
******************************

Reply via email to