Linux-Development-Sys Digest #583, Volume #8 Thu, 22 Mar 01 18:13:16 EST
Contents:
Re: Bypassing login prompt? (Kasper Dupont)
Re: How to Kill "unkillable" process (Kasper Dupont)
Driver help required for all Win Printers ..Please Help me! ("LittleFish")
Re: what means pgrp in the task struct ? (Kasper Dupont)
Mmap Latencies and Page Fault times in Linux Kernels (Joe Schmeltzer)
Re: How to Kill "unkillable" process (Josef Moellers)
kernel panic , can someone help (Don Carroll)
Re: How to Kill "unkillable" process (satishk)
sis 900 driver ("perre")
Re: Driver help required for all Win Printers ..Please Help me! ("Thomas Jones")
Re: kernel panic , can someone help ("tlin")
Re: How to Kill "unkillable" process (Roland Smith)
C++ and shell (FLD)
Re: Bypassing login prompt? ("Norm Dresner")
Mod_Rewrite (James Ferguson)
HowTo:Retrieve a list of structures in kernel ("Hoa Do")
----------------------------------------------------------------------------
From: Kasper Dupont <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.security
Subject: Re: Bypassing login prompt?
Date: Thu, 22 Mar 2001 14:11:46 +0000
Paul Haley wrote:
>
> Hello all,
>
> I'm wondering if it's possible to bypass the login prompt or at the very
> least have a login script of some kind to automatically enter a
> login/password on bootup. Please respond via email as well
> ([EMAIL PROTECTED]).
>
> Regards,
> Paul Haley
Are you talkink about a graphical login screen
or a textbase login screen? Do you want to log
in as root or another username.
In any case the solution is to modify
/etc/inittab, but the changes depend on what
to do. To automatically log in as root on tty2
I would change the lines:
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
to
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/usr/bin/open -c2 -w -- /bin/su -l root
3:2345:respawn:/sbin/mingetty tty3
Using another username than root would not
quite work, you would get a prompt but not
access to devices listed in
/etc/security/console.perms
To automatically log in as root on X change
the line:
x:5:respawn:/etc/X11/prefdm -nodaemon
to
x:5:respawn:/usr/bin/X11/startx >/dev/null 2>/dev/null
or as another user something similar to this:
x:5:respawn:/bin/su root -- /usr/bin/X11/startx >/dev/null 2>/dev/null
Again /etc/security/console.perms will not
have any effect.
--
Kasper Dupont
------------------------------
From: Kasper Dupont <[EMAIL PROTECTED]>
Subject: Re: How to Kill "unkillable" process
Date: Thu, 22 Mar 2001 14:25:11 +0000
Martin Collins wrote:
>
> Hi,
>
> just a comment. This behaviour seems a little strange. Issuing a kill -9
> shouldn't result
> in the process being signaled. It should just be wiped by the kernel. After
> all SIGKILL is
> not supposed to be "catchable" at all.
>
> Or am I missing something here?
>
> Martin.
A process catches all signals in kernel mode, the kernel
code then chooses between a number of actions. It can
choose to ignore the signal, deliver the signal, freeze
the process, dump core or just quit by calling do_exit().
With signal 9 the choice is always to call do_exit().
--
Kasper Dupont
------------------------------
From: "LittleFish" <littlefish_au[SPAM ME AT YOUR OWN RISK]@yahoo.com>
Crossposted-To:
comp.os.linux.development.apps,comp.os.linux.security,comp.security.firewalls
Subject: Driver help required for all Win Printers ..Please Help me!
Date: Fri, 23 Mar 2001 00:33:37 +1000
Hi everyone! I am looking for some practical help with lpr and printer
formats. What the problem is is that I have Lexmark 1000 that I can't get to
work with Linux. I have tried every program designed to run this printer. I
used drivers desinged for lpr I have used Cups with the cupsomatic/foomatic
script and driver and it doesn't work. What I want to do is get my output
from PCB which is Postscript and forward it to a script that calls Wine and
a multifunctional program that I am writing in Windows. This program reads
the file type and data and loads it in a large buffer then prints it using
the standard windows printer driver! This will make it possible to run any
WIN Printer!! This will entice more users to Linux and their hardware will
work!
Down to the meaty stuff I have Red Hat 6.2 Intel based sytem Dual
BootWindows 98 168Meg Ram 300Mhz Celeron. What I need to know is if the
output of a linux program that goes to lpr then to the driver is the same
configuration as what Windows sends to it printer driver! I don't expect it
would be however I do need to ask. If it isn't is there conversion software
that converts the format from Linux to the format required by Windows. I
will take a Postscript only converter only for the moment if I have too, as
my main object is to print a Postscript file to a lexmak1000 using wine! Any
pointers to resources would be great! Thanks heaps
LittleFish
--
Remove [SPAM ME AT YOUR OWN RISK] to mail me.
------------------------------
From: Kasper Dupont <[EMAIL PROTECTED]>
Subject: Re: what means pgrp in the task struct ?
Date: Thu, 22 Mar 2001 14:35:55 +0000
Benjamin Lussier wrote:
>
[...]
>
> if I get things right, parent process in a group can reparent their
> childs to other processes of the group, otherwise childs are re-parented
> to the init task
> groups serves obviously to ease process manipulation and give easier
> access rights to process potentially interested in another process data
> (its parent, siblings, etc.. for the more obvious exemples)
>
[...]
It is always the init task who inherrits children
of dead tasks.
You can send a signal to a task group, and it is
used by the shell for job control. The shell can
specify that only one group is allowed to acces
the tty while processes from another group receives
a SIGTSTP signal if they try to.
I think there are also some special rules about
sending signals where you can send signals to
processes in your group even if the UID does not
match. (Correct me if I'm wrong about this.)
--
Kasper Dupont
------------------------------
From: Joe Schmeltzer <[EMAIL PROTECTED]>
Subject: Mmap Latencies and Page Fault times in Linux Kernels
Date: Thu, 22 Mar 2001 05:33:03 -0500
Does Any one know what happened after kernel 2.2.6 to make the Mmap
latencies drop drastically. I am working on some research that involves
benchmarking the linux kernels and comparing. Our Mmap Latencies
dropped from around 5000 microseconds from 2.0.1 to 2.2.6 and after
2.2.6 they dropped to about 2 microseconds. Do any of you know what was
changed in the kernel to cause this.
Similarly, there are some interesting changes in the Page Fault
times. All of our Page fault times were around 50 microseconds, except
for 2.2.0pre3 and 2.2.6 which were around 600 usecs. I admit that there
may have been an error in our benchmark for the Page Fault, but the Mmap
Latency looks like an actual change in the kernel.
http://euclid.nmu.edu/~benchmark/MmapGraph.gif
http://euclid.nmu.edu/~benchmark/PageFaultGraph.gif
Thanks for your help
Joe Schmeltzer
[EMAIL PROTECTED]
------------------------------
From: Josef Moellers <[EMAIL PROTECTED]>
Subject: Re: How to Kill "unkillable" process
Date: Thu, 22 Mar 2001 16:52:32 +0100
Kasper Dupont wrote:
> =
> Martin Collins wrote:
> >
> > Hi,
> >
> > just a comment. This behaviour seems a little strange. Issuing a kill=
-9
> > shouldn't result
> > in the process being signaled. It should just be wiped by the kernel.=
After
> > all SIGKILL is
> > not supposed to be "catchable" at all.
> >
> > Or am I missing something here?
> >
> > Martin.
> =
> A process catches all signals in kernel mode, the kernel
> code then chooses between a number of actions. It can
> choose to ignore the signal, deliver the signal, freeze
> the process, dump core or just quit by calling do_exit().
> With signal 9 the choice is always to call do_exit().
unless of course the task's state is not TASK_INTERRUPTABLE:
(from signal.c:)
if (t->state =3D=3D TASK_INTERRUPTIBLE && signal_pending(t))
wake_up_process(t);
Tasks get their state set to TASK_UNINTERRUPTIBLE when they sleep_on().
-- =
Josef M=F6llers (Pinguinpfleger bei FSC)
If failure had no penalty success would not be a prize
-- T. Pratchett
------------------------------
From: Don Carroll <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: kernel panic , can someone help
Date: Thu, 22 Mar 2001 15:58:28 GMT
stock 2.4.2 kernel
sendmail 8.12beta , did this also with 8.11
tyan motherbd , symbios scsi 160mb
anyone know how to read this
also did it with 2.2.17 mandrake kernel
Mar 22 05:34:09 sm3 kernel: Unable to handle kernel NULL pointer
dereference at virtual address 0000021a
Mar 22 05:34:09 sm3 kernel: printing eip:
Mar 22 05:34:09 sm3 kernel: c01dd88f
Mar 22 05:34:09 sm3 kernel: *pde = 00000000
Mar 22 05:34:09 sm3 kernel: Oops: 0000
Mar 22 05:34:09 sm3 kernel: CPU: 1
Mar 22 05:34:09 sm3 kernel: EIP: 0010:[<c01dd88f>]
Mar 22 05:34:09 sm3 kernel: EFLAGS: 00010286
Mar 22 05:34:09 sm3 kernel: eax: 0000020e ebx: e618aac4 ecx:
00000000 edx: 000005b4
Mar 22 05:34:09 sm3 kernel: esi: 000005b4 edi: 0000020e ebp:
ccbfbf80 esp: ccbfbf20
Mar 22 05:34:09 sm3 kernel: ds: 0018 es: 0018 ss: 0018
Mar 22 05:34:09 sm3 kernel: Process sendmail (pid: 12764,
stackpage=ccbfb000)
Mar 22 05:34:09 sm3 kernel: Stack: e618aac4 000005b4 0000020e c01d9ec2
0000020e e618aac4 00001000 00000000
Mar 22 05:34:09 sm3 kernel: 00000001 0000020e 000010a0 00001000
00000000 880c8400 00000080 0000021b
Mar 22 05:34:09 sm3 kernel: e618aac4 ccbfbf80 00001000 00000000
e67e2260 ffffffea 08131d94 00000a4c
Mar 22 05:34:09 sm3 kernel: Call Trace: [<c01d9ec2>] [<c01329b7>]
[<c0108f57>]
Mar 22 05:34:09 sm3 kernel:
Mar 22 05:34:09 sm3 kernel: Code: 8b 70 0c 85 f6 74 23 c7 40 0c 00 00 00
00 8b 1e 4b 78 0e 8d
------------------------------
From: satishk <[EMAIL PROTECTED]>
Subject: Re: How to Kill "unkillable" process
Date: Thu, 22 Mar 2001 21:53:59 +0530
Hi,
The process must be running in kernel mode . say a system call from
user applications. It must have stuck somewhere and not returning...I
don;t know if kernel code traps sure kill signals. There is no way to do
that .. mabbe take the stack trace and check why the syscall did'nt
return.
Regrd
satya
Ash Bowers wrote:
> This group seemed the most appropriate, so I will ask the question
> here:
>
> How do you get rid of a process which refuses to respond to kill -9
> Without rebooting??????
>
> Presumably this process is waiting for something to finish which
> obviously never will finish!
>
> I have searched many archives and have found many comments on WHY
> processes don't get the signals, but nowhere have I seen a comment on
> whether or not it possible to clear this process without a reboot.
>
> Can anyone help? I don't need a techical manifesto, just a clear "you
> do this" or "it cannot be done" answer.
>
> Thanks In Advance!!!
> Ash Bowers
> abowers at email.co.anson.nc.us
------------------------------
From: "perre" <[EMAIL PROTECTED]>
Subject: sis 900 driver
Date: Fri, 23 Mar 2001 01:42:52 +0800
How to Install the Network Card "SIS900" in RedHat 7.0? Pls help me. I try
more, but i cannot install it.
------------------------------
From: "Thomas Jones" <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux.development.apps,comp.os.linux.security,comp.security.firewalls
Subject: Re: Driver help required for all Win Printers ..Please Help me!
Date: Thu, 22 Mar 2001 18:12:35 GMT
wrong newsgroup.........egghead!
You have just made my "PLONK" file for cross-posting again!
--
Thomas Jones
Cyber-Revolution.org
"LittleFish" <littlefish_au[SPAM ME AT YOUR OWN RISK]@yahoo.com> wrote in
message news:0Lnu6.1387$[EMAIL PROTECTED]...
> Hi everyone! I am looking for some practical help with lpr and printer
> formats. What the problem is is that I have Lexmark 1000 that I can't get
to
> work with Linux. I have tried every program designed to run this printer.
I
> used drivers desinged for lpr I have used Cups with the
cupsomatic/foomatic
> script and driver and it doesn't work. What I want to do is get my output
> from PCB which is Postscript and forward it to a script that calls Wine
and
> a multifunctional program that I am writing in Windows. This program reads
> the file type and data and loads it in a large buffer then prints it using
> the standard windows printer driver! This will make it possible to run any
> WIN Printer!! This will entice more users to Linux and their hardware will
> work!
>
> Down to the meaty stuff I have Red Hat 6.2 Intel based sytem Dual
> BootWindows 98 168Meg Ram 300Mhz Celeron. What I need to know is if the
> output of a linux program that goes to lpr then to the driver is the same
> configuration as what Windows sends to it printer driver! I don't expect
it
> would be however I do need to ask. If it isn't is there conversion
software
> that converts the format from Linux to the format required by Windows. I
> will take a Postscript only converter only for the moment if I have too,
as
> my main object is to print a Postscript file to a lexmak1000 using wine!
Any
> pointers to resources would be great! Thanks heaps
> LittleFish
>
>
>
> --
> Remove [SPAM ME AT YOUR OWN RISK] to mail me.
>
>
------------------------------
From: "tlin" <[EMAIL PROTECTED]>
Subject: Re: kernel panic , can someone help
Date: Thu, 22 Mar 2001 14:03:15 -0700
You should post what you did with the kernel.
Don Carroll <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> stock 2.4.2 kernel
>
> sendmail 8.12beta , did this also with 8.11
>
> tyan motherbd , symbios scsi 160mb
>
> anyone know how to read this
>
> also did it with 2.2.17 mandrake kernel
>
>
> Mar 22 05:34:09 sm3 kernel: Unable to handle kernel NULL pointer
> dereference at virtual address 0000021a
> Mar 22 05:34:09 sm3 kernel: printing eip:
> Mar 22 05:34:09 sm3 kernel: c01dd88f
> Mar 22 05:34:09 sm3 kernel: *pde = 00000000
> Mar 22 05:34:09 sm3 kernel: Oops: 0000
> Mar 22 05:34:09 sm3 kernel: CPU: 1
> Mar 22 05:34:09 sm3 kernel: EIP: 0010:[<c01dd88f>]
> Mar 22 05:34:09 sm3 kernel: EFLAGS: 00010286
> Mar 22 05:34:09 sm3 kernel: eax: 0000020e ebx: e618aac4 ecx:
> 00000000 edx: 000005b4
> Mar 22 05:34:09 sm3 kernel: esi: 000005b4 edi: 0000020e ebp:
> ccbfbf80 esp: ccbfbf20
> Mar 22 05:34:09 sm3 kernel: ds: 0018 es: 0018 ss: 0018
> Mar 22 05:34:09 sm3 kernel: Process sendmail (pid: 12764,
> stackpage=ccbfb000)
> Mar 22 05:34:09 sm3 kernel: Stack: e618aac4 000005b4 0000020e c01d9ec2
> 0000020e e618aac4 00001000 00000000
> Mar 22 05:34:09 sm3 kernel: 00000001 0000020e 000010a0 00001000
> 00000000 880c8400 00000080 0000021b
> Mar 22 05:34:09 sm3 kernel: e618aac4 ccbfbf80 00001000 00000000
> e67e2260 ffffffea 08131d94 00000a4c
> Mar 22 05:34:09 sm3 kernel: Call Trace: [<c01d9ec2>] [<c01329b7>]
> [<c0108f57>]
> Mar 22 05:34:09 sm3 kernel:
> Mar 22 05:34:09 sm3 kernel: Code: 8b 70 0c 85 f6 74 23 c7 40 0c 00 00 00
> 00 8b 1e 4b 78 0e 8d
>
------------------------------
Subject: Re: How to Kill "unkillable" process
From: Roland Smith <[EMAIL PROTECTED]>
Date: 22 Mar 2001 20:22:51 +0100
"Martin Collins" <[EMAIL PROTECTED]> writes:
> Hi,
>
> just a comment. This behaviour seems a little strange. Issuing a kill -9
> shouldn't result
> in the process being signaled. It should just be wiped by the kernel. After
> all SIGKILL is
> not supposed to be "catchable" at all.
It is not catchable by the process, that's true.
> Or am I missing something here?
See line 466 and further in kernel/signal.c (the signal_wake_up
function). If the task is not in the TASK_INTERRUPTABLE state, it is not
woken up on a signal. So the process never _gets_ the signal.
Roland
--
Roland Smith "Traveler, there is no path.
r s m i t h @ x s 4 a l l . n l You make the path as you walk."
http://www.xs4all.nl/~rsmith/
------------------------------
From: FLD <[EMAIL PROTECTED]>
Subject: C++ and shell
Date: Thu, 22 Mar 2001 21:08:16 +0100
I'm making a GUI for a command line tool i often use. til now i've used
the "system" command which works fine, but i'm now interested in getting
the tool output (text) in my program. How can i make it work ?
FLD
------------------------------
From: "Norm Dresner" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.security
Subject: Re: Bypassing login prompt?
Date: Thu, 22 Mar 2001 22:08:23 GMT
An autologin facility exists in SGI's IRIX. Does something like that exist
in Linux?
Norm
Kasper Dupont <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Paul Haley wrote:
> >
> > Hello all,
> >
> > I'm wondering if it's possible to bypass the login prompt or at the very
> > least have a login script of some kind to automatically enter a
> > login/password on bootup. Please respond via email as well
> > ([EMAIL PROTECTED]).
> >
> > Regards,
> > Paul Haley
>
> Are you talkink about a graphical login screen
> or a textbase login screen? Do you want to log
> in as root or another username.
>
> In any case the solution is to modify
> /etc/inittab, but the changes depend on what
> to do. To automatically log in as root on tty2
> I would change the lines:
>
> 1:2345:respawn:/sbin/mingetty tty1
> 2:2345:respawn:/sbin/mingetty tty2
> 3:2345:respawn:/sbin/mingetty tty3
>
> to
>
> 1:2345:respawn:/sbin/mingetty tty1
> 2:2345:respawn:/usr/bin/open -c2 -w -- /bin/su -l root
> 3:2345:respawn:/sbin/mingetty tty3
>
> Using another username than root would not
> quite work, you would get a prompt but not
> access to devices listed in
> /etc/security/console.perms
>
> To automatically log in as root on X change
> the line:
>
> x:5:respawn:/etc/X11/prefdm -nodaemon
>
> to
>
> x:5:respawn:/usr/bin/X11/startx >/dev/null 2>/dev/null
>
> or as another user something similar to this:
>
> x:5:respawn:/bin/su root -- /usr/bin/X11/startx >/dev/null 2>/dev/null
>
> Again /etc/security/console.perms will not
> have any effect.
>
> --
> Kasper Dupont
------------------------------
From: James Ferguson <[EMAIL PROTECTED]>
Subject: Mod_Rewrite
Date: Thu, 22 Mar 2001 14:19:44 -0800
How would I configure Mod_rewrite to allow a trailing # after a slash to
auto send to a search script. Such as www.mywebtours.com/11234
-->search.cgi?11234
Thanks in advance for any help offered.
James F.
------------------------------
From: "Hoa Do" <[EMAIL PROTECTED]>
Subject: HowTo:Retrieve a list of structures in kernel
Date: Thu, 22 Mar 2001 17:17:15 -0500
Hello,
I have a link-list of structures in the Linux kernel. I want to retrieve
this list of structures to a user space program. Do you know how I can
achieve this ?
>From user space program, I can retrieve a single structure via IOCTL(..)
call. But I don't know how to retrieve the whole list with a single IOCTL()
call.
Any help would be appreciated.
Thanks,
HD
------------------------------
** 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 the
comp.os.linux.development.system newsgroup.
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
******************************