Re: XFree86 logging

2001-04-24 Thread Willi Dyck
On Mon, Apr 23, 2001 at 03:00:07PM -0700, Chris Majewski wrote:
 Well, if you don't  find a nicer solution, you could write  a bit of C
 code to read the /var/log/X*.log file and copy it to one of the syslog
 facilities. See also the syslog manpage. 

That's not the problem. There are no X* files in /var/log/!

MfG/Regards, Willi

P.S.: No need to Cc or To me. I am subscribed to this list :)

-- 
...is a registered (#210445) user of:Debian 2.2r3 GNU/Linux
icq# 49564994###AIM: wdyck###GnuPG-Key:  1024D/8BFCA69B
Fingerprint: DAD2 E564 B725 E6A3 5A0F  1497 4411 F30F 8BFC A69B


pgpn5LsltYOYX.pgp
Description: PGP signature


XFree86 logging

2001-04-23 Thread Willi Dyck
Hi *,

how to enable XFree86 4.0.2/syslogd to log msgs from XFree86?
TIA
MfG/Regards, Willi

-- 
...is a registered (#210445) user of:Debian 2.2r3 GNU/Linux
icq# 49564994###AIM: wdyck###GnuPG-Key:  1024D/8BFCA69B
Fingerprint: DAD2 E564 B725 E6A3 5A0F  1497 4411 F30F 8BFC A69B


pgpJhev20qLaH.pgp
Description: PGP signature


Re: XFree86 logging

2001-04-23 Thread Chris Majewski
Well, if you don't  find a nicer solution, you could write  a bit of C
code to read the /var/log/X*.log file and copy it to one of the syslog
facilities. See also the syslog manpage. 

-chris

Willi Dyck [EMAIL PROTECTED] writes:

 Hi *,
 
 how to enable XFree86 4.0.2/syslogd to log msgs from XFree86?
 TIA
 MfG/Regards, Willi
 
 -- 
 ...is a registered (#210445) user of:Debian 2.2r3 GNU/Linux
 icq# 49564994###AIM: wdyck###GnuPG-Key:  1024D/8BFCA69B
 Fingerprint: DAD2 E564 B725 E6A3 5A0F  1497 4411 F30F 8BFC A69B



What is rnews - why is it logging in my system?

2001-04-12 Thread Aaron Brashears
I'm getting a strange log entry in my system, that happens every 14
minutes past the hour. I checked my chrontab and chron.d to make sure
there's no unknown service running - but all I have is exim,
postgresql, and logcheck and the standard daily, weekly, monthly
scripts.

Here's what a sample line looks like:

Apr 11 07:14:01 garrison rnews: rejected connection What server?

'garrison' is the hostname of the machine. It's connected 24/7 to the
net so it looks like someone is trying to make a news connection, but
whoever is logging this activity (ippl?) isn't telling me where it's
coming from so I can't block them.

What's going on?



iptables logging?

2001-04-11 Thread Adam James
Hi all,

This is just something that's getting slightly annoying - iptables is refusing
to log to /var/log/*. Runnning dmesg I can see all the iptables reports, so its
logging to the kernel, just syslog is ignoring it (?).

My /var/log/messages entry in /etc/syslog.conf is as follows:

*.=info;*.=notice;*.=warn;\
auth,authpriv.none;\
cron,daemon.none;\
mail,news.none  -/var/log/messages

What do I need to add so syslog passes the iptables messages into the log?

Many thanks for any help,

Adam James

-- 
The true Southern watermelon is a boon apart, and not to be mentioned with
commoner things.  It is chief of the world's luxuries, king by the grace of God
over all the fruits of the earth.  When one has tasted it, he knows what the
angels eat.  It was not a Southern watermelon that Eve took; we know it because
she repented.
-- Mark Twain, Pudd'nhead Wilson's Calendar




Re: iptables logging?

2001-04-11 Thread Gregory T. Norris
If you're tracking unstable, make sure you have the klogd package
installed. It was recently split out from sysklogd, and since apt-get
doesn't handle Recommends...

On Thu, Apr 12, 2001 at 12:22:57AM +0100, Adam James wrote:
 Hi all,
 
 This is just something that's getting slightly annoying - iptables is refusing
 to log to /var/log/*. Runnning dmesg I can see all the iptables reports, so 
 its
 logging to the kernel, just syslog is ignoring it (?).
 
 My /var/log/messages entry in /etc/syslog.conf is as follows:
 
 *.=info;*.=notice;*.=warn;\
   auth,authpriv.none;\
   cron,daemon.none;\
   mail,news.none  -/var/log/messages
 
 What do I need to add so syslog passes the iptables messages into the log?
 
 Many thanks for any help,
 
 Adam James


pgpJeJaQ6JyMm.pgp
Description: PGP signature


logging make config

2001-03-24 Thread Darryl Röthering
I have a question about makeconfig on the kernel. I am a habitual logger, 
but I don't know how to log the build of a new kernel. What I really want is 
to get not only the stdout and stderr (which I get by redirection (21), 
but also the stdin, so I can get a recording of all the choices I make on 
the configuration. Is there a way I can get all of this in one file?


Regards,

Darryl

Original Message Follows
From: Felix Natter [EMAIL PROTECTED]
To: debian-user@lists.debian.org
Subject: Re: configure summary
Date: 24 Mar 2001 15:37:33 +0100

Daniel de los Reyes [EMAIL PROTECTED] writes:

 I uncommented a line in a configure.in and now I get this error at some
 point of the configuration process:

 checking if large file support can be enabled no
 checking configure summary
 configure: error: summary failure. Aborting config make: ***
 [build-stamp] Error 1

 What is a configure summary?

try to look in config.log, maybe it's in there.

--
Felix Natter


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact 
[EMAIL PROTECTED]



_
Get your FREE download of MSN Explorer at http://explorer.msn.com



Re: logging make config

2001-03-24 Thread Ilya Martynov
 DR == Darryl RЖthering [EMAIL PROTECTED] writes:

DR I have a question about makeconfig on the kernel. I am a habitual
DR logger, but I don't know how to log the build of a new kernel. What I
DR really want is to get not only the stdout and stderr (which I get by
DR redirection (21), but also the stdin, so I can get a recording of
DR all the choices I make on the configuration. Is there a way I can get
DR all of this in one file?

use script. From man:

SCRIPT(1)UNIX Reference Manual   SCRIPT(1)

NAME
 script - make typescript of terminal session

SYNOPSIS
 script [-a] [file]

DESCRIPTION
 Script makes a typescript of everything printed on your terminal.  It is
 useful for students who need a hardcopy record of an interactive session
 as proof of an assignment, as the typescript file can be printed out lat-
 er with lpr(1).

-- 
Ilya Martynov
AGAVA Software Company, http://www.agava.com



Re: logging make config

2001-03-24 Thread Moritz Schulte
Darryl Röthering [EMAIL PROTECTED] writes:

 I have a question about makeconfig on the kernel. I am a habitual
 logger, but I don't know how to log the build of a new kernel. What I
 really want is to get not only the stdout and stderr (which I get by
 redirection (21), but also the stdin

You don't really want to redirect the stdin, because that would
mean, 'make config' wouldn't wait for input from the terminal, but
from what you've redirected it to.

But, have a look at 'script' - it does what you want.

 , so I can get a recording of all the choices I make on the
 configuration.

You know, that all the configuration choices are in the file .config
in the kernel source tree?
Then, you can also use something nicer like 'make menuconfig'. :)

hth,
moritz
-- 
Moritz Schulte [EMAIL PROTECTED] http://www.chaosdorf.de/moritz/
Debian/GNU supporter - http://www.debian.org/ http://www.gnu.org/
GPG fingerprint = 3A14 3923 15BE FD57 FC06  B501 0841 2D7B 6F98 4199



qmail logging (and in which package is accustamp)

2001-03-13 Thread Arcady Genkin
Having replaced exim with qmail yesterday, I'd like to deal with the
loggin issues, since qmail's logging is quite verbose.  I notice that
it logs seemingly identical information to all of the:

/var/log/syslog
/var/log/mail.info
/var/log/mail.log

and it logs identical error messages to both:

/var/log/mail.warn
/var/log/mail.err

I find this to be a bit excessive.  A look at /etc/init.d/qmail shows
three options of handling the logging, the default one being the one
that produces all this stuff.  What are you guys using to keep the
mail logs sane?

Also, one of the options offers to pipe the logging info through
`accustamp' program.  I cannot find in which package the program is.
A google search reveals that it comes as part of `qmailanalog'
package, but it seems that this one is not available as a deb or a
deb-src package (correct me if I'm wrong).

p.s. Why is the default configuration of a newly-installed qmail (from
package) TOTALLY EMPTY?  Not even a me file: qmail-send refuses to
start without it.  Also, anyone know why the auto-configuration
scripts that come with qmail distribution are excluded from the
package?  They are referenced to all over the documentation...

Thanks for any input,
-- 
Arcady Genkin
Nostalgia isn't what it used to be.



Re: qmail logging (and in which package is accustamp)

2001-03-13 Thread Nathan E Norman
On Tue, Mar 13, 2001 at 08:35:44AM -0500, Arcady Genkin wrote:
 Having replaced exim with qmail yesterday, I'd like to deal with the
 loggin issues, since qmail's logging is quite verbose.  I notice that
 it logs seemingly identical information to all of the:
 
 /var/log/syslog
 /var/log/mail.info
 /var/log/mail.log
 
 and it logs identical error messages to both:
 
 /var/log/mail.warn
 /var/log/mail.err

You can fix this by editing /etc/syslog.conf to taste.  See man
syslog.conf.  But read on ...
 
 I find this to be a bit excessive.  A look at /etc/init.d/qmail shows
 three options of handling the logging, the default one being the one
 that produces all this stuff.  What are you guys using to keep the
 mail logs sane?

Don't use splogger at all ... use multilog.  Multilog and friends are
part of the daemontools suite; there's an installer pkg in unstable or
it's easy enough to compile and install if you follow the directions
found at http://cr.yp.to/

To get qmail all set up with multilog I like this page:
http://www.flounder.net/qmail/qmail-howto.html
 
 Also, one of the options offers to pipe the logging info through
 `accustamp' program.  I cannot find in which package the program is.
 A google search reveals that it comes as part of `qmailanalog'
 package, but it seems that this one is not available as a deb or a
 deb-src package (correct me if I'm wrong).

accustamp is outdated.  If you want tai timestamps you need to use
tai64n which is in daemontools ... might as well use multilog if you
install daemontools and avoid syslog altogether.
 
 p.s. Why is the default configuration of a newly-installed qmail (from
 package) TOTALLY EMPTY?  Not even a me file: qmail-send refuses to
 start without it.  Also, anyone know why the auto-configuration
 scripts that come with qmail distribution are excluded from the
 package?  They are referenced to all over the documentation...

I didn't have much luck with the qmail installer package so I compiled
it myself and am quite happy with it.

-- 
Nathan Norman - Staff Engineer | A good plan today is better
Micromuse Inc. | than a perfect plan tomorrow.
mailto:[EMAIL PROTECTED]   |   -- Patton


pgpDQYm1OkKLy.pgp
Description: PGP signature


Logging FTP

2000-12-12 Thread andreas palsson
Hello.

Does anyone know if FTP-transfers/connections are logged?

I tried to find any logging info in the syslog/daemon.log but it seems
like it doesn't log anything.
Also the documentation in /usr/doc/ftpd did not gave any hints either.


Regards...
Andreas

PS: please CC any answers directly to me.



Re: Logging FTP

2000-12-12 Thread Leen Besselink
 Does anyone know if FTP-transfers/connections are logged?

I'll try to answer this.

 
 I tried to find any logging info in the syslog/daemon.log but it seems
 like it doesn't log anything.

sure it does (kinda) the only it logs in the file /var/log/syslog:
Dec 12 22:45:00 debian in.ftpd[4509]: connect from 127.0.0.1

It's not much but it does do it ;)

That's all the really small and standard ftp (hardly even a) server does.
If you want/need logging try installing something like:
- wu-ftpd
- proftpd
- probably more
You can do all sorts of things with any of those.



Off Topic Apache-logging question

2000-11-07 Thread Jeff Green
If anyone is on an Apache list that this seems appropriate to please
forward it there or reply to me with the list name, I do not know of
one.

In my Apache log files with Referrer and User-Agent turned on a
significant proportion (around 25%) of the referer logs appear as -.
Can anyone tell me what causes this? I need to know whether these are
likely to follow the same pattern as completed references or if there is
a particular reason that skews the data. They are easily the largest
group of referers and misinterpreting them could cause us to make some
very serious errors.

Jeff Green



Re: Off Topic Apache-logging question

2000-11-07 Thread brian moore
On Tue, Nov 07, 2000 at 11:38:43PM +, Jeff Green wrote:
 If anyone is on an Apache list that this seems appropriate to please
 forward it there or reply to me with the list name, I do not know of
 one.
 
 In my Apache log files with Referrer and User-Agent turned on a
 significant proportion (around 25%) of the referer logs appear as -.
 Can anyone tell me what causes this? I need to know whether these are
 likely to follow the same pattern as completed references or if there is
 a particular reason that skews the data. They are easily the largest
 group of referers and misinterpreting them could cause us to make some
 very serious errors.

It means the client didn't provide a 'Referer' header.

That could either be that they navigated directly (or from bookmarks) or
that their client doesn't feel like telling you that information (or that
they have something between them and you that strips it).

-- 
CueCat decoder .signature by Larry Wall:
#!/usr/bin/perl -n
printf Serial: %s Type: %s Code: %s\n, map { tr/a-zA-Z0-9+-/ -_/; $_ = unpack
'u', chr(32 + length()*3/4) . $_; s/\0+$//; $_ ^= C x length; } /\.([^.]+)/g; 



Q: syslog-ng remote logging.

2000-10-05 Thread Andreas Rabus

Greetings, 

sitting in my box, checking my logs... 
and trying to log from Host A to Host B with tcp i always get some strange
error Messages when starting my syslog-ng with option -d:

Error Creating AF_INET socket (Operation now in progress)

The log are setup up as in the demo configuratuion in the  doc dir.
src on host B allows tcp from host A, host A has destinations woth tcp.

Host A ist a woody, Host B a potato.

Is this a bug or am i that stupid?

Thanks in advance,

ar

-- 

[ampersand online agentur]
[andreas rabus]
[programmierung]

theresienstraße 29 / IV
80333 münchen
tel 0 89 - 28 67 72 - 27
fax 0 89 - 28 67 72 - 21
[EMAIL PROTECTED]
http://www.ampersand.de




Re: Q: syslog-ng remote logging.

2000-10-05 Thread Mike Fedyk
Andreas Rabus wrote:
 
 Greetings,
 
 sitting in my box, checking my logs...
 and trying to log from Host A to Host B with tcp i always get some strange
 error Messages when starting my syslog-ng with option -d:
 
 Error Creating AF_INET socket (Operation now in progress)
 
 The log are setup up as in the demo configuratuion in the  doc dir.
 src on host B allows tcp from host A, host A has destinations woth tcp.
 
 Host A ist a woody, Host B a potato.
 
 Is this a bug or am i that stupid?
 
 Thanks in advance,
 
 ar
 
 --
 
 [ampersand online agentur]
 [andreas rabus]
 [programmierung]
 
 theresienstraße 29 / IV
 80333 münchen
 tel 0 89 - 28 67 72 - 27
 fax 0 89 - 28 67 72 - 21
 [EMAIL PROTECTED]
 http://www.ampersand.de
 
 --
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null

Find this in your /etc/init.d/sysklogd and make it similar on your receiving
machine.

# Options for start/restart the daemons~
#   For remote UDP logging use SYSLOGD=-r~
#~
SYSLOGD=-r~

BTW, this is from a potato box.
-- 

Mike Fedyk   They that can give up essential liberty
Information Systems   to obtain a little temporary safety
Match Mail Productions Inc.   deserve neither liberty nor safety.
[EMAIL PROTECTED]   Ben Franklin



Re: logging interaction between minicom and modem - solved

2000-09-11 Thread alice
On Wed, 06 Sep 2000 18:11:13 PST [EMAIL PROTECTED] wrote:

 Hmm, that's odd I tried to set up wvdial just now and it's saying
 that
 /dev/mouse is linked to ttyS0, and sure enough it does seem to 
  could this be causing some of my problems? Is that something 
 that's safe to manually unlink or is there probably some program 
 that set that that I should have a chat with I know I have gpm 
 running, is that likely to have done it? The odd thing is I don't even 
 use a serial mouse, I use a bus mouse so it doesn't
 seem to make sense to have /dev/mouse pointing to a
 serial port does it?
 
 anyways, if this sets off any lights or rings any bells for anyone,
 please
 share :)
 
 -Alice
 
yep, that was it. rm /dev/mouse and now chat's a happy camper 

(tried to send this email this weekend and got a message about debian-
user's mailbox being full so my apologies if this shows up twice)

-Alice
Alice M. Pinard
Casco Indemnity Company
[EMAIL PROTECTED] 



Re: logging interaction between minicom and modem - solved

2000-09-09 Thread alice
On Wed, 06 Sep 2000 18:11:13 PST [EMAIL PROTECTED] wrote:

 Hmm, that's odd I tried to set up wvdial just now and it's saying
 that
 /dev/mouse is linked to ttyS0, and sure enough it does seem to could
 this be causing some of my problems? Is that something that's safe to
 manually unlink or is there probably some program that set that that I
 should have a chat with I know I have gpm running, is that likely to
 have done it? The odd thing is I don't even use a serial mouse, I use a
 bus
 mouse so it doesn't seem to make sense to have /dev/mouse pointing to a
 serial port does it?
 
 anyways, if this sets off any lights or rings any bells for anyone,
 please
 share :)
 
 -Alice
 
yep, that was it. rm /dev/mouse and now chat's a happy camper 

-Alice


-
This message sent using EMUmail -- http://www.emumail.com
-

Jumping through hoops to get E-mail on the road? 
You've got two choices: Join the circus, or use MollyMail.

Molly Mail -- http://www.mollymail.com




Re: logging interaction between minicom and modem

2000-09-06 Thread Rino Mardo
On Tue, Sep 05, 2000 at 09:22:12AM -0400 or thereabouts, [EMAIL PROTECTED] 
wrote:
 Is there a way to log the interaction between minicom and modem 
 similar to what chat sends to ppp.log and syslog? 
 
 Ever since I upgraded to potato last weekend chat hasn't gotten along 
 with my modem (external 57600 USR sportster) 
 

yeah ppp scripts are annoying.  i use wvdial at home and it works with any
distro (that i've tried).

www.worldvisions.ca



---

Who's watching the watchmen?

ICQ: 15096825



Re: logging interaction between minicom and modem

2000-09-06 Thread alice


Date sent:  Tue, 5 Sep 2000 16:06:24 +0200
From:   Harald Thingelstad [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject:Re: logging interaction between minicom and modem
Send reply to:  [EMAIL PROTECTED]

 
 On Tue, 05 Sep 2000 15:22:12 you wrote:
  Is there a way to log the interaction between minicom and modem 
  similar to what chat sends to ppp.log and syslog? 
  
  Ever since I upgraded to potato last weekend chat hasn't gotten along 
  with my modem (external 57600 USR sportster) 
  
  when I look in ppp.log or syslog I see things about chat sending it a 
  AT or ATZ and expecting an OK and instead getting an alarm.
  
  
 ...
  -Alice (yes, we have some potato we have some potato today...)
  
 
 I've had similar problems after updrading to potato.
 
 Used pppconfig both before and after, and my solution was to delete all the
 config files (/etc/ppp/peers/*, /etc/chatscripts/*, are there any more?), 
 possibly
 purge and reinstall the necessary packages (memory is fading) and set up the
 connections from scratch again.
 Something seems to go wrong when using slink setup with potato pppconfig.
 And that's my two cents.
 
 Harald
 
 
hmmm, tried moving the /etc/chatscripts and /etc/ppp directories to 
places the computer wouldn't look for them and removed and 
reinstalled ppp and pppconfig

still not able to dial in with chat 

maybe I'll bite the bullet and load wvdial but I'd really like it if I could 
figure out what was up and go back to using a script, it's much more 
flexible... I'd say it was a modem issue except that the modem 
behaves just fine with anything but chat... 
 
 


Alice M. Pinard
Casco Indemnity Company
[EMAIL PROTECTED] 



logging interaction between minicom and modem

2000-09-05 Thread alice
Is there a way to log the interaction between minicom and modem 
similar to what chat sends to ppp.log and syslog? 

Ever since I upgraded to potato last weekend chat hasn't gotten along 
with my modem (external 57600 USR sportster) 

when I look in ppp.log or syslog I see things about chat sending it a 
AT or ATZ and expecting an OK and instead getting an alarm.

if I use minicom I can dial in fine, and run pppd after quitting minicom 
without resetting the modem, but I'd rather not use this as a long-term 
solution, so I was wondering if there was some way I could see if 
minicom is sending different commands to the modem than chat is to 
see if I need to be using different commands (or it could be that 
minicom dials when one tells it to dial whether the modem sent an OK 
after initialization or not) 

other odd things the first couple of days after I upgraded I was able 
to connect using ppp-calling-chat if I removed the ppp package and 
re-added it this is odd and moreso because that hasn't worked 
other than those first two times

I've tried removing the potato version of the ppp package and 
reinstalling the old version of ppp that I was using under slink but that 
doesn't seem to help

(oh, my kernel is 2.2.9. Occasionally I've gotten complaints about my 
module dependency file being newer than my module configuration file 
during this whole process... at some point while in the 'try anything' 
stage I recompiled my kernel, and changed ppp from being in kernel 
to being a module it didn't seem to make any difference but one 
never knows what difference it might have made that I'm not seeing)

please let me know if there's any other information I could provide 
that would shed light on this. Again, I'm hoping that if there's some 
way to see what minicom is telling the modem the same way I can 
with chat then maybe I can get chat to say those things instead.

-Alice (yes, we have some potato we have some potato today...)



Re: logging interaction between minicom and modem

2000-09-05 Thread Harald Thingelstad

On Tue, 05 Sep 2000 15:22:12 you wrote:
 Is there a way to log the interaction between minicom and modem 
 similar to what chat sends to ppp.log and syslog? 
 
 Ever since I upgraded to potato last weekend chat hasn't gotten along 
 with my modem (external 57600 USR sportster) 
 
 when I look in ppp.log or syslog I see things about chat sending it a 
 AT or ATZ and expecting an OK and instead getting an alarm.
 

...
 -Alice (yes, we have some potato we have some potato today...)
 

I've had similar problems after upgrading to potato.

Used pppconfig both before and after, and my solution was to delete all the
config files (/etc/ppp/peers/*, /etc/chatscripts/*, are there any more?), 
possibly
purge and reinstall the necessary packages (memory is failing) and set up the
connections from scratch again.
Something seems to go wrong when using slink setup with potato pppconfig.
And that's my two cents.

Harald





Re: logging interaction between minicom and modem

2000-09-05 Thread John Hasler
Harald writes:
 Something seems to go wrong when using slink setup with potato pppconfig.
 And that's my two cents.

This is the first I've heard of this.  Pleas file a bug against pppconfig
detailing as muxh as you can reconstruct of what you did and what happened.


-- 
John Hasler
[EMAIL PROTECTED] (John Hasler)
Dancing Horse Hill
Elmwood, WI



Term colors / Logging on ttys ?

2000-08-28 Thread Oliver Schoenknecht
 Montag, 28. August 2000 / 09:20 Uhr

Hey everyone,

instead of the typical gray color of my foreground I want to use a
Matrix-green foreground... I know that I can do this with the setterm
-foreground green-command, but may I enable this at boot time for all
virtual ttys ?

Besides I want to put my /var/log/messages- and /var/log/maillog-files
in style of the tail -f-command on tty11 and tty12 - also enabled at
boot time - is this possible as well ?

Any help is welcome :-) !

--
Mit freundlichem Gruss  [EMAIL PROTECTED]
Oliver Schoenknecht Join us at http://www.kapa.de

KOSTENLOS! Online-Auktion bei KAPA! 
Teilnahme unter: http://www.flohmarkt.kapa.de




Re: Term colors / Logging on ttys ?

2000-08-28 Thread Kai Weber
+ Oliver Schoenknecht [EMAIL PROTECTED]:

 Besides I want to put my /var/log/messages- and /var/log/maillog-files
 in style of the tail -f-command on tty11 and tty12 - also enabled at
 boot time - is this possible as well ?

If you use potato you should have a look at /etc/syslog.conf. There is a
commented part ( I like to have ...) which shows you an example like
this:

*.=debug/dev/tty10

Kai.
-- 
+ mailto:[EMAIL PROTECTED] + http://www.tu-ilmenau.de/~bond/



more on syslogd remote logging

2000-08-03 Thread [EMAIL PROTECTED]
ok, i got syslogd working it is recieving log entries from my router, now
im curious how i would redirect those to a dedicated file? i tried various
things in /etc/syslog.conf and the log file is empty still. I'd like to
redirect everything from 10.10.10.1 to /var/log/dsl.log

sample log entries:

Aug  2 15:26:25 10.10.10.1 000:23:31:30 ATMInfo   Wan0 Up, 640
Kbps Down, 544 Kbps Up, 340 Baud^M 
Aug  2 15:26:25 10.10.10.1 000:23:31:30 ATMInfo   Wan0 Up*,
+11.3 dB TX Power, +18.7 dB Rem TX Power, 42 dB RX Gain, No Change
Margin^M 
Aug  2 15:26:25 10.10.10.1 000:23:31:30 PPPInfo   PPP Up Event
on wan0-0^M 
Aug  2 15:26:25 10.10.10.1 000:23:31:30 ATMInfo   Wan0 Up*, 23
dB Line Quality^M 
Aug  2 15:26:40 10.10.10.1 000:23:31:45 SERIAL Info   Serial
Connection Timeout^M 
Aug  2 15:28:05 10.10.10.1 000:23:33:10 PPPInfo   PPP Down
Event on wan0-0^M 

any ideas ??

thanks!

nate


:::
http://www.aphroland.org/
http://www.linuxpowered.net/
[EMAIL PROTECTED]
10:38pm up 16 days, 6:05, 1 user, load average: 0.00, 0.00, 0.00



Re: more on syslogd remote logging

2000-08-03 Thread Robert Waldner
On Wed, 02 Aug 2000 22:45:59 PDT, [EMAIL PROTECTED] writes:
ok, i got syslogd working it is recieving log entries from my router, now
im curious how i would redirect those to a dedicated file? i tried various
things in /etc/syslog.conf and the log file is empty still. I'd like to
redirect everything from 10.10.10.1 to /var/log/dsl.log

I *think* you´ll need another syslogd to be able to judge about the 
*source* of an entry, IIRC the normal one is only able to distinguish 
by type.

Try the syslog-ng - package, might be just what you want.

hth,
rw



Re: more on syslogd remote logging

2000-08-03 Thread John Pearson
On Wed, Aug 02, 2000 at 10:45:59PM -0700, [EMAIL PROTECTED] wrote
 ok, i got syslogd working it is recieving log entries from my router, now
 im curious how i would redirect those to a dedicated file? i tried various
 things in /etc/syslog.conf and the log file is empty still. I'd like to
 redirect everything from 10.10.10.1 to /var/log/dsl.log
 
 sample log entries:
 
 Aug  2 15:26:25 10.10.10.1 000:23:31:30 ATMInfo   Wan0 Up, 640
 Kbps Down, 544 Kbps Up, 340 Baud^M 
 Aug  2 15:26:25 10.10.10.1 000:23:31:30 ATMInfo   Wan0 Up*,
 +11.3 dB TX Power, +18.7 dB Rem TX Power, 42 dB RX Gain, No Change
 Margin^M 
 Aug  2 15:26:25 10.10.10.1 000:23:31:30 PPPInfo   PPP Up Event
 on wan0-0^M 
 Aug  2 15:26:25 10.10.10.1 000:23:31:30 ATMInfo   Wan0 Up*, 23
 dB Line Quality^M 
 Aug  2 15:26:40 10.10.10.1 000:23:31:45 SERIAL Info   Serial
 Connection Timeout^M 
 Aug  2 15:28:05 10.10.10.1 000:23:33:10 PPPInfo   PPP Down
 Event on wan0-0^M 
 
 any ideas ??
 

Use /etc/syslog.conf to control where logging goes.
This allows you to specify things by facility and priority.

Your router should allow you specify the syslog facility used
for messages, probably with a config statement like
logging facility local3

if it's a Cisco (it's on the documentation CD which you should have).

Edit /etc/syslog.conf to add a line like this:

local3.*  -/var/log/dsl.log

If you want quick console access to the messages and aren't 
too fussed about other peopel seeing them, you can also 
use a line like
local3.*  /dev/tty12

to direct them to an unused vt as well.

You may also want to add local3.none to some of the other lines, if
they use a wildcard for the facility and you don't want those lines
to catch messages from your router.

Then run
# /etc/init.d/sysklogd reload

and tell your router to use syslog facility local3 (or whatever you
chose).


John P.
-- 
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://www.mdt.net.au/~john Debian Linux admin  support:technical services



Re: more on syslogd remote logging

2000-08-03 Thread Mark Brown
On Wed, Aug 02, 2000 at 10:45:59PM -0700, [EMAIL PROTECTED] wrote:

 things in /etc/syslog.conf and the log file is empty still. I'd like to
 redirect everything from 10.10.10.1 to /var/log/dsl.log

The standard syslog doesn't support that, although I don't know about
others.  If you need the separate logs you'll have to either find a
syslogd replacement that does what you want or post-process based on the
host field in the logfile(s).  If you're processing the logs you may
find it easier to create a catchall log that gets everything written to
it and start from there.

-- 
Mark Brown  mailto:[EMAIL PROTECTED]   (Trying to avoid grumpiness)
http://www.tardis.ed.ac.uk/~broonie/
EUFShttp://www.eusa.ed.ac.uk/societies/filmsoc/


pgpHPSCg4ya92.pgp
Description: PGP signature


Re: more on syslogd remote logging

2000-08-03 Thread [EMAIL PROTECTED]
ok, i did see some stuff on it when using syslog-ng, i'll play around more
with that tomorrow night -- thanks!!

nate

On Thu, 3 Aug 2000, Mark Brown wrote:

brooni On Wed, Aug 02, 2000 at 10:45:59PM -0700, [EMAIL PROTECTED] wrote:
brooni 
brooni  things in /etc/syslog.conf and the log file is empty still. I'd like 
to
brooni  redirect everything from 10.10.10.1 to /var/log/dsl.log
brooni 
brooni The standard syslog doesn't support that, although I don't know about
brooni others.  If you need the separate logs you'll have to either find a
brooni syslogd replacement that does what you want or post-process based on the
brooni host field in the logfile(s).  If you're processing the logs you may
brooni find it easier to create a catchall log that gets everything written to
brooni it and start from there.
brooni 
brooni -- 
brooni Mark Brown  mailto:[EMAIL PROTECTED]   (Trying to avoid grumpiness)
brooni http://www.tardis.ed.ac.uk/~broonie/
brooni EUFShttp://www.eusa.ed.ac.uk/societies/filmsoc/
brooni 

:::
http://www.aphroland.org/
http://www.linuxpowered.net/
[EMAIL PROTECTED]
10:38pm up 16 days, 6:05, 1 user, load average: 0.00, 0.00, 0.00



Logging printer usage

2000-07-17 Thread Cory Rudder
Hello, Has anyone had to log printer usage? I am trying to locate a package
that would be capable of such. All it needs to do is  simply pass PS traffic
from one nic to another, after asking the user to enter a job number or
such. I have considered using a proxy package for this, but it seems to be
overkill for such a simple task. Any suggestions would be appreciated.

Thanks 
Cory



Re: Logging

2000-05-29 Thread kmself
On Thu, May 25, 2000 at 08:34:30PM +0200, Tamas Nagy wrote:
 Could you recommend any good online documentation about the logging under
 Linux?

What sort of logging in particular?  While there are some standards for
logging under Linux (such as the use of /var/log for system logs), and
some logging is bundled through, say, sysklogd, logging of itself isn't
a centralized system function.

For general system logs, see general system documentation, including
Unix and Linux references such as Nemeth et al, Frisch, and Welsh.

For specific application logging, see application documentation, eg:
apache, diald, etc.

For security, refer to a security site describing what sorts of things
you might want to look for.

-- 
Karsten M. Self kmself@ix.netcom.com 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


pgpC2fwwI3KJE.pgp
Description: PGP signature


IP firewall packet logging

2000-05-26 Thread Jay Kelly
Is IP firewall packet logging available in kernel 2.2.12?



Re: IP firewall packet logging

2000-05-26 Thread Ron Rademaker
Yes, just add a -l to the end of your ipchains rule and it willbe logged
in syslog..

Ron Rademaker

On Fri, 26 May 2000, Jay Kelly wrote:

 Is IP firewall packet logging available in kernel 2.2.12?
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 



Logging

2000-05-25 Thread Tamas Nagy
Could you recommend any good online documentation about the logging under
Linux?

TIA,
Tamas




reading/logging boot messages

2000-05-22 Thread Kelly Corbin
Is there a way to view/log boot messages besides those generated by the
kernel i.e. besides dmesg?  I believe my modules are not loading
correctly at boot.  Thanks

Kelly Corbin
[EMAIL PROTECTED]



Re: reading/logging boot messages

2000-05-22 Thread Oswald Buddenhagen
 Is there a way to view/log boot messages besides those generated by the
 kernel i.e. besides dmesg?  I believe my modules are not loading
 correctly at boot.  Thanks
 
look at /var/log/kern.log - at least on potato module output it there.

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
If Windows is the answer, I want the problems back!



Re: reading/logging boot messages

2000-05-22 Thread David Wright
Quoting Kelly Corbin ([EMAIL PROTECTED]):
 Is there a way to view/log boot messages besides those generated by the
 kernel i.e. besides dmesg?  I believe my modules are not loading
 correctly at boot.  Thanks

Shift-PageUp (and PageDown)

Cheers,

-- 
Email:  [EMAIL PROTECTED]   Tel: +44 1908 653 739  Fax: +44 1908 655 151
Snail:  David Wright, Earth Science Dept., Milton Keynes, England, MK7 6AA
Disclaimer:   These addresses are only for reaching me, and do not signify
official stationery. Views expressed here are either my own or plagiarised.



Re: reading/logging boot messages

2000-05-22 Thread Oswald Buddenhagen
 Quoting Kelly Corbin ([EMAIL PROTECTED]):
  Is there a way to view/log boot messages besides those generated by the
  kernel i.e. besides dmesg?  I believe my modules are not loading
  correctly at boot.  Thanks
 
 Shift-PageUp (and PageDown)
 
but note, that this works only, if the virtual console was not switched,
so if {x,k,w,g}dm is run, this will be impossible.

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
If Windows is the answer, I want the problems back!



Re: reading/logging boot messages

2000-05-22 Thread Colin Watson
Kelly Corbin [EMAIL PROTECTED] wrote:
Is there a way to view/log boot messages besides those generated by the
kernel i.e. besides dmesg?  I believe my modules are not loading
correctly at boot.  Thanks

Use Ctrl-S to pause the output and scroll up and down with Shift-PageUp
and Shift-PageDown. Ctrl-Q will restart the output.

-- 
Colin Watson [EMAIL PROTECTED]



Re: How do I stop my machine logging on to IP every 5 minutes?

2000-05-15 Thread Bernd Harmsen


Phillip Deackes wrote:

 OPEN: 62.136.66.48 - 192.168.1.10 UDP, port: 513 - 513

 On consulting /etc/sevices I can see that port 513 is used for whod.


I donßt know what whod is, but I´ve stopped this using the following commands 
in my
/etc/isdn/device.ippp0

#At the end of the Start section
#Output Firewall, dont allow connection to Port 137-139 and 513 with UDP
#TCP is allowed.
ipfwadm -O -p accept
ipfwadm -O -a deny -P udp -S 0.0.0.0/0 137:139
ipfwadm -O -a deny -P udp -S 0.0.0.0/0 513

#in the Stop section
#Delete Firewall Rules
ipfwadm -O -f

Depend on your kernel version you may use ipchains or then ipwadm/ipchains 
wrapper.
Ipchains ist the newer method of kernel 2.2.x

Good luck,
Bernd






How do I stop my machine logging on to IP every 5 minutes?

2000-05-13 Thread Phillip Deackes
I have recently changed to an Internet Provider where I do not have to
pay telephone charges on a timed basis, so I decided to initiate dial on
demand on my system since I have an ISDN line.

Everything works very nicely except that my system logs onto the
Internet every 5 minutes or so. I suspect Exim, but am not sure what to
change to stop it. I collect mail manually using Fetchmail and have it
passed on to Exim for distribution using .forward.

Maybe the problem is not Exim.

Any ideas? I am using Potato.

Many thanks.


--
Phillip Deackes
Using Storm Linux 2000



Re: How do I stop my machine logging on to IP every 5 minutes?

2000-05-13 Thread Phillip Deackes
Further to my previous post, I have discovered the cause of the
connections, but do not know how to stop them. I set isdnctrl to give me
a more verbose log and on doing dmesg | xless I could see the following
immediately before every auto connection:

OPEN: 62.136.66.48 - 192.168.1.10 UDP, port: 513 - 513

On consulting /etc/sevices I can see that port 513 is used for whod.

OK. Progress, but what is whod and do I need it? I have looked at the
docs and man page, but am none the wiser. I do not have a network - my
machine is standalone apart from an ISDN connection to the Internet
using an internal ISDN card.

Thanks again.


--
Phillip Deackes
Using Storm Linux 2000



Re: How do I stop my machine logging on to IP every 5 minutes?

2000-05-13 Thread John Foster
Phillip Deackes wrote:
 
 I have recently changed to an Internet Provider where I do not have to
 pay telephone charges on a timed basis, so I decided to initiate dial on
 demand on my system since I have an ISDN line.
 
 Everything works very nicely except that my system logs onto the
 Internet every 5 minutes or so. I suspect Exim, but am not sure what to
 change to stop it. I collect mail manually using Fetchmail and have it
 passed on to Exim for distribution using .forward.
 
 Maybe the problem is not Exim.
 
 Any ideas? I am using Potato.
===
Might look at pppupd if you have it installed.
I saw a similar problem listed a day or so ago on this list,  I had a
similar problem with a dial-up connection about a year ago.
John Foster
[EMAIL PROTECTED] 
ICQ# 19460173



Re: How do I stop my machine logging on to IP every 5 minutes?

2000-05-13 Thread Dave Sherohman
Phillip Deackes said:
 Everything works very nicely except that my system logs onto the
 Internet every 5 minutes or so. I suspect Exim, but am not sure what to
 change to stop it. I collect mail manually using Fetchmail and have it
 passed on to Exim for distribution using .forward.

Perhaps I've misunderstood you, but the normal operation of fetchmail is to
pass retrieved messages on to an MTA (such as exim) listening on
localhost:25.  You don't have to use .forward for this - if you're using
.forward to have exim pass messages back to itself, I would expect your mail
to get caught in a loop.  (Possibly infinite or possibly just redundant; I'm
not sure whether exim is smart enough to detect that it's just forwarded a
message to itself and not forward that message again.)  If you're not running
your own DNS, exim would then bring the link back up at each iteration in an
attempt to look up the IP address of the machine it's forwarding to.
(Assuming you're using the hostname instead of 'localhost'.  My experience
has been that exim ignores /etc/hosts and goes straight to DNS even if
/etc/resolv.conf says to do otherwise.)

-- 
Two words: Windows survives. - Craig Mundie, Microsoft senior strategist
So does syphillis. Good thing we have penicillin. - Matthew Alton
Geek Code 3.1:  GCS d- s+: a- C++ UL++$ P L++ E- W--(++) N+ o+ !K
w---$ O M- !V PS+ PE Y+ PGP t 5++ X+ R++ tv- b++ DI D G e* h+ r++ y+



boa logging

2000-05-08 Thread r3ck
Is there a way to tell boa not to log local connections?  I
use boa  dwww quite heavily to browse local documentation and
access_log gets filled with this stuff.  I'd still like to log
external connections but it seems that it's both or nothing.


Logging out from serial login

2000-04-30 Thread Robert Norris
Hi all,

I've been setting up a ppp-over-null-modem connection for a friend's Palm, and
its working great, except for one point.

I've created a user called 'palm', with shell /etc/ppp/ppplogin which looks like
this:

#!/bin/sh
mesg n
stty -echo
/usr/bin/sudo /usr/sbin/pppd nodetach passive local noauth crtscts 
192.168.1.1:192.168.1.2

I start the connection from the Palm then run 'getty -L 57600 ttyS0. The Palm
connects and everything works fine.

When I disconnect from the Palm, getty ends as expected and pppd shuts down,
but for some reason the 'palm' user doesn't release ttyS0. The permissions are
still set to

crw---1 palm dip4,  64 Apr 30 09:45 /dev/ttyS0

when it should be

crw-rw1 root dialout4,  64 Apr 30 09:50 /dev/ttyS0

Also, fingering 'palm' says

On since Sun Apr 30 09:45 (EST) on ttyS0

Why doesn't the user get logged out?

Regards,
Rob.


pgpUOI8fT2Nw7.pgp
Description: PGP signature


Re: Logging out from serial login

2000-04-30 Thread Oswald Buddenhagen
 When I disconnect from the Palm, getty ends as expected and pppd shuts down,
 but for some reason the 'palm' user doesn't release ttyS0. The permissions are
 still set to
 
you disconnect? i assume, that this means only disconnect, but
not log out. if so, then you have no problem: this is intended behaviour
(at least to some point). so it is theoretically possible to reconnect
and continue the session after some time. however, this will possibly
conflict with the getty ...
as i don't have practical experience with that, all this could be
perfect nonsense. *g*

in short: log out before disconnecting. (press ctrl-d at the shell prompt)

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Linux - the last service pack you'll ever need.



Re: Logging out from serial login

2000-04-30 Thread Robert Norris
 you disconnect? i assume, that this means only disconnect, but
 not log out. if so, then you have no problem: this is intended behaviour
 (at least to some point). so it is theoretically possible to reconnect
 and continue the session after some time. however, this will possibly
 conflict with the getty ...

I press disconnect on the Palm, which causes pppd on the Linux side to exit,
followed by the ppplogin script (the login 'shell'). Obviously this script
exiting isn't enough to actually log out.

Regards,
Rob.


pgpm9f65Jgn8t.pgp
Description: PGP signature


Interested in /etc/init.d/rc /etc/init.d/rcS logging?

2000-04-24 Thread uaca

Take a look at http://pusa.uv.es/~ulisses/debian

Comments/suggestions wanted

Thanks

Ulisses
Debian/GNU Linux: a dream come true
-
Computers are useless. They can only give answers.Pablo Picasso


Re: logging password changes

2000-04-03 Thread Ben Collins
On Mon, Apr 03, 2000 at 04:50:09PM +, Jim Breton wrote:
 Running current potato and I have the following in /etc/pam.d/passwd:
 
 password required   pam_cracklib.so retry=3 minlen=6 difok=4
 password required   pam_unix.so use_authtok md5
 
 This works well for logging password-changing failures and related
 messages.  However when a password change is *successful,* nothing is
 sent to syslog.
 
 How can I set that up?  I've been using
 http://www.us.kernel.org/pub/linux/libs/pam/Linux-PAM-html/pam-6.html as
 a reference for the module arguments but it appears to be a bit stale.
 
 I tried adding the following line to the end of the stack:
 sessionrequiredpam_unix.so
 
 which did log password changes but it wrote too much crap to the logs
 because it sent a log entry as soon as I ran passwd as well as another
 one when passwd exited:
 
 Apr  3 12:39:06 atw PAM-warn[6608]: service: passwd [on terminal:
 unknown]
 Apr  3 12:39:06 atw PAM-warn[6608]: user: (uid=0) - test [remote:
 [EMAIL PROTECTED]
 Apr  3 12:39:16 atw PAM-warn[6608]: service: passwd [on terminal:
 unknown]
 Apr  3 12:39:16 atw PAM-warn[6608]: user: (uid=0) - test [remote:
 [EMAIL PROTECTED]
 
 leaving me with 4 mostly-useless lines in the logs.
 
 slink used to log successful password changes, I just am not totally
 familiar with PAM yet (getting there though).

Install libpam-doc, which is more up-to-date and probably more complete
than the above address. Adding session to the passwd pam.d file doesn't
seem like the right solution. The PAM library itself should log when the
authentication tokens are updated or changed.

-- 
 ---===-=-==-=---==-=--
/  Ben Collins  --  ...on that fantastic voyage...  --  Debian GNU/Linux   \
` [EMAIL PROTECTED]  --  [EMAIL PROTECTED]  --  [EMAIL PROTECTED] '
 `---=--===-=-=-=-===-==---=--=---'


Re: logging password changes

2000-04-03 Thread Ben Collins
Package: libpam-modules
Severity: important

On Mon, Apr 03, 2000 at 08:35:13PM +, Jim Breton wrote:
 On Mon, Apr 03, 2000 at 01:31:34PM -0400, Ben Collins wrote:
  Install libpam-doc, which is more up-to-date and probably more complete
  than the above address. Adding session to the passwd pam.d file doesn't
  seem like the right solution. The PAM library itself should log when the
  authentication tokens are updated or changed.
 
 
 OK I looked at the stuff in libpam-doc but it turns out to be the same
 date as the documents on the URL I mentioned.
 
 I did mess with this some more and I got it to work the way I want by
 substituting the pam_pwdb module:
 
 password required   pam_cracklib.so retry=3 minlen=6 difok=4
 password required   pam_pwdb.so use_authtok md5 
 
 Is there any chance of making this the default (assuming I didn't just
 open up any gaping security holes)?  I notice that pam_pwdb is part of a
 different package which may make this difficult.
 
 Or, maybe better syslog support can be added to the pam_unix module?

The latter would be the better choice. PWDB is not used by default in
Debian because of it's complexities, lack of conforming to standards, and
generally because it is not very good.

I've filed this as a bug against libpam-modules so that it can be fixed
for potato before release.

Thanks,
 Ben

-- 
 ---===-=-==-=---==-=--
/  Ben Collins  --  ...on that fantastic voyage...  --  Debian GNU/Linux   \
` [EMAIL PROTECTED]  --  [EMAIL PROTECTED]  --  [EMAIL PROTECTED] '
 `---=--===-=-=-=-===-==---=--=---'


more complete logging of the boot process?

2000-03-04 Thread mac
Is there a way to get a more complete log of the text that scrolls by during 
the boot sequence?  I'd like to catch some warnings/diagnostics that show up 
during that time, but dmesg and /var/log/messages have a very limited 
selection of that text...

I'm thinking of something along the lines what RedHat has:
http://www.redhat.com/knowledgebase/initscripts/

-- 
Maciej Kalisiak | [EMAIL PROTECTED] | http://www.dgp.toronto.edu/~mac [McQ]
PGP-finger|www; (0x39AC36F5) 9F BB 9E 11 F0 1E 5D 20  0B 31 3D 37 47 D0 67 C7
GE/CS d- s++:+ a- C++(+++) ULAI++ P+++ L+++ E+++ W++ N- o? K? !w--- O- M- V--
PS PE+ Y+ PGP+ t+ 5 !X-- R+ tv-- b+ DI+ G+ e+++(*) h--- r+++ y? 


Re: Logging out of X Windows

2000-01-31 Thread Oki DZ


On Thu, 6 Jan 2000, Carl Fink wrote:

 On Thu, Jan 06, 2000 at 02:59:16PM -0700, Cameron Matheson wrote:
  
  I am sorry for asking so many questions, but I am only fifteen, so I don't
  have any sort of large income to spend on books.
 
 No problem.  That's what this list is for.
 
 On the other hand, a very quick ckeck of Deja or the mailing list
 archives would have answered this question.
 
  I was just wondering if I am logging out of X Windows correctly.  When I am
  at the log-in screen, I am pressing Ctrl+Alt+Backspace, and then
  Ctrl+Alt+Delete.  This cleanly unmounts everything, but I was wondering if
  their was an easier way.
 
 Yes.  But it depends on what you're running (in terms of window
 manager/environments).  This always works:  at an xterm prompt (or
 equivalent) su to root and type
 
   reboot
 
 or perhaps
 
   halt
 
 depending on what you're doing.

If you use gdm, in /etc/gdm/gdm.conf you'd find SystemMenu entry; set it
to 1 (SystemMenu=1), and you'd have a System menu on the gdm login panel. 
With the menu, you can reboot and shutdown the system right from the login
panel. 

Oki



Sync sys clock and hc every 11 min: logging and controling?

2000-01-14 Thread Shaul Karl
How can I verify whether the hc (hardware clock) is being synchronize to the
system clock every 11 min or so?
Is the sync operation being logged somewhere? Is there any kernel flag that
is being set in order to have this operation done automatically? What util
can read such a flag and optionally change its state?

In particular, does it being done, perhaps automatically, when I run ntpd?


Re: Sync sys clock and hc every 11 min: logging and controling?

2000-01-14 Thread aphro
as far as i know hwclock is not updated unless the system restarts, or you
update it manually, and ntpdate does not update the hwclock, i have ntp
update my clock every few hours and it has never updated the hwclock in
over a year.  not that it matters i could care less what my hwclock is set
to, currently its like 3 hours off.

nate

On Fri, 14 Jan 2000, Shaul Karl wrote:

shaulk How can I verify whether the hc (hardware clock) is being synchronize 
to the
shaulk system clock every 11 min or so?
shaulk Is the sync operation being logged somewhere? Is there any kernel flag 
that
shaulk is being set in order to have this operation done automatically? What 
util
shaulk can read such a flag and optionally change its state?
shaulk 
shaulk In particular, does it being done, perhaps automatically, when I run 
ntpd?
shaulk 
shaulk 
shaulk -- 
shaulk Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
shaulk 

[mailto:[EMAIL PROTECTED] ]--
   Vice President Network Operations   http://www.firetrail.com/
  Firetrail Internet Services Limited  http://www.aphroland.org/
   Everett, WA 425-348-7336http://www.linuxpowered.net/
Powered By:http://comedy.aphroland.org/
Debian 2.1 Linux 2.0.36 SMPhttp://yahoo.aphroland.org/
-[mailto:[EMAIL PROTECTED] ]--
12:39pm up 148 days, 40 min, 1 user, load average: 0.30, 0.39, 0.35


Re: Sync sys clock and hc every 11 min: logging and controling?

2000-01-14 Thread Henrique M Holschuh
Hi aphro!

On Fri, 14 Jan 2000, aphro wrote:

 as far as i know hwclock is not updated unless the system restarts, or you
 update it manually, and ntpdate does not update the hwclock, i have ntp

The kernel does sync the RTC to the system clock every 11 minutes if you
tell it to (ntpd does), at least in my system.

Compile the kernel with Advanced RTC support (or something to that effect)
so that you have /proc/rtc, and do some experiments setting the date,
setting the rtc with hwclock and date  cat /proc/rtc while running ntpd
and you'll find if the thing is being updated or not.

 to, currently its like 3 hours off. 

Mine is within half a second to GPS UTC, thanks to very bad connectivity...
Otherwise it would be a bit more accurate. Ntp rocks :-)

-- 
  One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie. -- The Silicon Valley Tarot
  Henrique Holschuh 


Re: Logging out of X Windows

2000-01-07 Thread aphro
that works..

i suggest you do not use X if you need to exit out of it often though. you
don't have to exit X to reboot(if thats what you want to do)

if you are not logging into X windows as root, launch an x term (so you
get a command prompt)

then type: su
enter the root password when prompted
then type: shutdown -h now

if you want to shutdown the *whole* system
or..

shutdown -r now

if you want to reboot, you can also use the command 'reboot'

if you want to prevent X from bstarting when the machine boots up, you can
delete the file /etc/rc2.d/S99xdm then you will boot into the text
console, and you can use the 'startx' command to start 'X', without the
display manager(xdm)

nate

On Thu, 6 Jan 2000, Cameron Matheson wrote:

mathes Hey,
mathes 
mathes I am sorry for asking so many questions, but I am only fifteen, so I 
don't
mathes have any sort of large income to spend on books.
mathes 
mathes I was just wondering if I am logging out of X Windows correctly.  When 
I am
mathes at the log-in screen, I am pressing Ctrl+Alt+Backspace, and then
mathes Ctrl+Alt+Delete.  This cleanly unmounts everything, but I was wondering 
if
mathes their was an easier way.
mathes 
mathes Thanks again,
mathes 
mathes Cameron Matheson
mathes 
mathes 
mathes -- 
mathes Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
mathes 

[mailto:[EMAIL PROTECTED] ]--
   Vice President Network Operations   http://www.firetrail.com/
  Firetrail Internet Services Limited  http://www.aphroland.org/
   Everett, WA 425-348-7336http://www.linuxpowered.net/
Powered By:http://comedy.aphroland.org/
Debian 2.1 Linux 2.0.36 SMPhttp://yahoo.aphroland.org/
-[mailto:[EMAIL PROTECTED] ]--
4:51pm up 140 days, 4:49, 3 users, load average: 1.71, 1.60, 1.54


Logging out of X Windows

2000-01-06 Thread Cameron Matheson
Hey,

I am sorry for asking so many questions, but I am only fifteen, so I don't
have any sort of large income to spend on books.

I was just wondering if I am logging out of X Windows correctly.  When I am
at the log-in screen, I am pressing Ctrl+Alt+Backspace, and then
Ctrl+Alt+Delete.  This cleanly unmounts everything, but I was wondering if
their was an easier way.

Thanks again,

Cameron Matheson


Re: Logging out of X Windows

2000-01-06 Thread Carl Fink
On Thu, Jan 06, 2000 at 02:59:16PM -0700, Cameron Matheson wrote:
 
 I am sorry for asking so many questions, but I am only fifteen, so I don't
 have any sort of large income to spend on books.

No problem.  That's what this list is for.

On the other hand, a very quick ckeck of Deja or the mailing list
archives would have answered this question.

 I was just wondering if I am logging out of X Windows correctly.  When I am
 at the log-in screen, I am pressing Ctrl+Alt+Backspace, and then
 Ctrl+Alt+Delete.  This cleanly unmounts everything, but I was wondering if
 their was an easier way.

Yes.  But it depends on what you're running (in terms of window
manager/environments).  This always works:  at an xterm prompt (or
equivalent) su to root and type

reboot

or perhaps

halt

depending on what you're doing.

You can use the sudo package to enable your ordinary user account to
run those programs, too.
-- 
Carl Fink   [EMAIL PROTECTED]
Manager, Dueling Modems Computer Forum
http://dm.net


Re: Logging out of X Windows

2000-01-06 Thread Ron Rademaker


On Thu, 6 Jan 2000, Cameron Matheson wrote:

 Hey,
 
 I am sorry for asking so many questions, but I am only fifteen, so I don't
 have any sort of large income to spend on books.
 
 I was just wondering if I am logging out of X Windows correctly.  When I am
 at the log-in screen, I am pressing Ctrl+Alt+Backspace, and then
 Ctrl+Alt+Delete.  This cleanly unmounts everything, but I was wondering if
 their was an easier way.
 
 Thanks again,
 
 Cameron Matheson
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 

What are you using for your X, xdm or startx??

If you start X using startx just should shutdown your windowmanager. (Some
windowmanagers like windowmaker or fvwm you can go to the menu (left or
right mouse) select windowmanagers and go for exit or exit session. You're
back on the shell. (You can also just press CTRL+ALT Fsomething betweenm 1
and 6 to go to another virtual terminal, in thayt case you should login
as root there, that's what you gotta do too when using xdm.)

You at the shell, you can do all lots of fun things there, but if you just
wanna shut down the computer: shutdown -h now (halt will also do)
For a reboot just do: reboot.

Perhaps you can use this but I just read your question and I gave the
answer to another question... so here another answer.

So you're at the login prompt of X (xdm), personaly I don't like X to
start immediately when I boot, you can prevent this from heppening by just
renaming the xdm file in /etc/init.d/xdm to something else (renaming is
done using mv). You can shut down xdm (read X) by executing (I think it
will work best using a virtual terminal but I might be wrong) the start
script of xdm with the argument stop.

That 'll be:

/etc/init.d/xdm stop

That should work, if it doesn't find the pid on what xdm is running (using
ps aux | grep xdm) and kill the damn thing. You might have to do that
twice.

Ron





Re: Logging out of X Windows

2000-01-06 Thread Gary Hennigan
Ron Rademaker [EMAIL PROTECTED] writes:
 On Thu, 6 Jan 2000, Cameron Matheson wrote:
 
  Hey,
  
  I am sorry for asking so many questions, but I am only fifteen, so I don't
  have any sort of large income to spend on books.
  
  I was just wondering if I am logging out of X Windows correctly.  When I am
  at the log-in screen, I am pressing Ctrl+Alt+Backspace, and then
  Ctrl+Alt+Delete.  This cleanly unmounts everything, but I was wondering if
  their was an easier way.
[snip]
 So you're at the login prompt of X (xdm), personaly I don't like X to
 start immediately when I boot, you can prevent this from heppening by just
 renaming the xdm file in /etc/init.d/xdm to something else (renaming is
 done using mv). 
[snip]

It's your system and you can do whatever you want, but there's a
better way (the Debian Way (TM)) for handling files in /etc/rc?.d and
/etc/init.d

man update-rc.d

To do what you're suggesting, stop xdm from starting at boot, you'd
simply do:

update-rc.d -f remove xdm

Gary


Re: /etc/securetty and login failure logging

2000-01-03 Thread Ben Collins
Package: login
Severity: important

On Mon, Jan 03, 2000 at 04:06:27PM -0500, Salman Ahmed wrote:
 
 I commented out most lines from /etc/securetty so that root is only
 allowed to login from tty3. Now I see the following messages when root
 tries to login from any other terminals:
 
 Jan  3 15:46:55 phoenix login[25646]: FAILED LOGIN 1 FROM  FOR root, 
 Authentication failure
 Jan  3 15:47:13 phoenix login[25646]: FAILED LOGIN 2 FROM  FOR root, 
 Authentication failure
 Jan  3 15:47:37 phoenix login[195]: FAILED LOGIN 1 FROM  FOR root, 
 Authentication failure
 Jan  3 16:01:14 phoenix login[198]: FAILED LOGIN 1 FROM  FOR root,
 Authentication failure
 
 But these messages (from /var/log/auth.log) don't indicate which
 terminal was used for the login attempt. Is there any way that
 information can also be logged in /var/log/auth.log ?

Looks like a bug, I've sent it to the BTS. I should get around to fixing
it soon.

-- 
 ---===-=-==-=---==-=--
/  Ben Collins  --  ...on that fantastic voyage...  --  Debian GNU/Linux   \
` [EMAIL PROTECTED]  --  [EMAIL PROTECTED]  --  [EMAIL PROTECTED] '
 `---=--===-=-=-=-===-==---=--=---'


Logging user's logging in

1999-12-26 Thread Neil
**Please CC all replies to me - I'm not currently subscribed**

I would like to log via syslogd whenever a user logs in. How would I
go about doing this? 

Furthermore, I might also want to JUST log when root logs in, or when
someone's sus into root - how would I do this?

Thanks in advance,

Neil

-- 
Neil Conway [EMAIL PROTECTED]
Get my GnuPG key from http://24.112.188.210/mykey.asc


Re: Logging user's logging in

1999-12-26 Thread Shaul Karl
 **Please CC all replies to me - I'm not currently subscribed**
 
 I would like to log via syslogd whenever a user logs in. How would I
 go about doing this? 
 
 Furthermore, I might also want to JUST log when root logs in, or when
 someone's sus into root - how would I do this?
 

I did not try to configure syslog myself but on my machine su root is 
reported on the xconsole. I hope this might help you do what you want. 


Re: Logging user's logging in

1999-12-26 Thread hypnos
On Sat, 25 Dec 1999 [EMAIL PROTECTED] wrote:

 **Please CC all replies to me - I'm not currently subscribed**
 
 Furthermore, I might also want to JUST log when root logs in, or when
 someone's sus into root - how would I do this?

I believe this is a default in Debian.  At least, my system logs
these automatically, and I don't recall ever configuring it to.

Dec 26 13:50:40 debian login[11524]: ROOT LOGIN on `tty4'
Dec 26 13:52:11 debian su[17277]: + tty2 hypnos-root

The first line shows a root login on tty4. The second line shows
that on tty2, hypnos su'd to root.




logging ppp

1999-12-26 Thread Bob Nielsen
syslog-ng in potato (which replaced syslog) uses
/etc/syslog-ng/syslog-ng.conf instead of /etc/syslog.conf.  There is a
sample conf file in usr/share/doc/syslog-ng, but when I tried the ppp
/examples in this, they do not seem to work.  Putting a local2 line
in /etc/syslog.conf (which is now included in sysklogd) doesn't work
anymore either.  I'd like to be able to use plog, but don't know how to
get ppp to write to /var/log/ppp.log under this new configuration.

Can someone point me in the right direction.

Bob

-- 
Bob Nielsen, W6SWE  (RN2)Internet: [EMAIL PROTECTED]
Tucson, AZ DM42nhAMPRnet:  [EMAIL PROTECTED]
QRP-L #1985  http://www.primenet.com/~nielsen


dselect logging

1999-11-10 Thread Keith Harbaugh
One may easily log an apt-get session,
by starting a script beforehand, then using the --quiet option to apt-get
to suppress the periodic progress reports on downloads.

But when I try to operate dselect within a typescript situation,
all the cursor control characters (ncurses or whatever),
while they do great things on a video terminal,
just garbage up the potentially printed typescript;
also, there still are the unwanted progress reports.

Am I missing some simple dselect option that would enable a nice log
of all the configuration action that takes place during an install?

And, the same question for console-apt (capt).

Thanks,
Keith


Re: logging within shell scripts

1999-09-15 Thread Gregory T. Norris
That appears to be EXACTLY what I'm looking for... Thanx much!

On Tue, Sep 14, 1999 at 10:41:10AM +0200, Quant-X UNIX and Linux Support wrote:
 Not sure if I understood your question.  Anyway, if you want to redirect
 a particular file in a shell you don't have to know where it's been
 directed to at a certain point.  For example, you can do something like
 this:
 
 exec 1log 2log.err
 ...
 do something
 (everything going to stdin is been redired to file log
 and stderr to log.err)
 ...
 exec 1log.a 2log.a.err
 ...
 
 I hope this helps.


logging within shell scripts

1999-09-14 Thread Gregory T. Norris
This isn't really a Debian issue as such, but I thought that someone
here might be able to point me in the right direction... Hope I'm not
too far off base here :-)

I've got a shell script that I want to have log it's actions on a
selective basis (dependent upon run-time settings).  I know it could
re-exec itself with appropriate redirection, but I don't want to rely on
commandline parameters or environment settings which might inadvertently
be set.  Is there any way for a shell script to determine where it's
stdout/stderr is going, and to redirect it from this point on?
Preferably something which works with a generic /bin/sh, rather than
specific to bash, but I'll work with whatever I can get...

Thanx!


Re: logging within shell scripts

1999-09-14 Thread Quant-X UNIX and Linux Support
On Mon, Sep 13, 1999 at 08:18:30PM -0500, Gregory T. Norris wrote:
 This isn't really a Debian issue as such, but I thought that someone
 here might be able to point me in the right direction... Hope I'm not
 too far off base here :-)
 
 I've got a shell script that I want to have log it's actions on a
 selective basis (dependent upon run-time settings).  I know it could
 re-exec itself with appropriate redirection, but I don't want to rely on
 commandline parameters or environment settings which might inadvertently
 be set.  Is there any way for a shell script to determine where it's
 stdout/stderr is going, and to redirect it from this point on?
 Preferably something which works with a generic /bin/sh, rather than
 specific to bash, but I'll work with whatever I can get...
 
 Thanx!
 

Not sure if I understood your question.  Anyway, if you want to redirect
a particular file in a shell you don't have to know where it's been
directed to at a certain point.  For example, you can do something like
this:

exec 1log 2log.err
...
do something
(everything going to stdin is been redired to file log
and stderr to log.err)
...
exec 1log.a 2log.a.err
...

I hope this helps.

Dejan

-- 

Dejan Muhamedagic
UNIX and Linux Support

   Quant-X Service  Ph:  (+43) 4212 90555-0
   Consulting Ges.m.b.H. Fax: (+43) 4212 90555-20
   http://www.quant-x.comEmail: [EMAIL PROTECTED]


Re: Logging in w/ session-specific passwd

1999-08-16 Thread David Wright
Quoting Julian S. Taylor ([EMAIL PROTECTED]):
 
 I log in to Sun using a prompt-response method. The server sends down a
 random number, I make an entry into a calculator and it gives me the
 password for that session. For this reason, I can't hook up using expect
 or chat. Using slackware and Caldera, I just log in using cu. Debian's
 configuration has me totally baffled. My usual trick with cu was to log
 in, start the ppp session on the remote and then paste in the command:
 
 ~+/usr/sbin/pppd defaultroute ...
 
 When I use cu on Debian I get the messagepppd permission denied. I can
 use wvdial to my ISP but I can't get into Sun now that I've switched to
 Debian. What am I doing wrong?

I dug into a few very old personal howto files and found these hints
which I've untidily extracted from the mgetty setup stuff. (I hope
there's enough here.)

Install minicom. As root, minicom -s and set up the correct serial
port, say, /dev/ttyS1 if you have a serial mouse on COM1, speed etc.
Save as dfl.

Set up chap-secrets and/or pap-secrets files.

Add userid to groups dip and dialout.

Log in as userid and prepare an axecutable file ~/ppp with (I use chap):

#! /bin/bash
/usr/sbin/pppd /dev/ttyS1 115200 defaultroute auth +chap chap-interval 60

Run minicom and type
^a d and dial the correct number

During/after the fanfare, press any letter.

( For callback to mgetty only:
( When the login prompt is given, type
( magic-userid return
( When the phone starts to ring, type
( ata return

When the login prompt is given, type

^a q and confirm, then type
~/ppp return

To hang up, type poff return.

I guess you have to do some typing before your ^a q out of minicom,
and change ~/ppp to suit. (A file is only necessary because you can't
type all that within the few seconds available.)

I guess that as the connect option in pppd can take any shell
script, it ought to be possible to hack together a script with
two chat commands and a dialogue in between them to ask you for
the password. The first chat would 'say' the number, the second
would have your response conveyed to it either by shell substitution
into the script or through a nonce file. I'd have a go, but I've
really only got time to send this message.

Cheers,

-- 
Email:  [EMAIL PROTECTED]   Tel: +44 1908 653 739  Fax: +44 1908 655 151
Snail:  David Wright, Earth Science Dept., Milton Keynes, England, MK7 6AA
Disclaimer:   These addresses are only for reaching me, and do not signify
official stationery. Views expressed here are either my own or plagiarised.


Re: Logging in w/ session-specific passwd

1999-08-15 Thread Eric G . Miller
On Sat, Aug 14, 1999 at 02:17:06PM +, Julian S. Taylor wrote:
| ~+/usr/sbin/pppd defaultroute ...
| 
| When I use cu on Debian I get the messagepppd permission denied. I can
| use wvdial to my ISP but I can't get into Sun now that I've switched to
| Debian. What am I doing wrong?

It may be you need to add the group dialout. By default
regular users don't have permission to use pppd.
-- 

Eric G. Miller
Powered by the POTATO (http://www.debian.org)!


Re: Logging in w/ session-specific passwd

1999-08-15 Thread Peter Palfrader aka Weasel
On Sat, Aug 14, 1999 at 04:55:12PM -0700, Eric G . Miller wrote:
 On Sat, Aug 14, 1999 at 02:17:06PM +, Julian S. Taylor wrote:
 | ~+/usr/sbin/pppd defaultroute ...
 | 
 | When I use cu on Debian I get the messagepppd permission denied. I can
 | use wvdial to my ISP but I can't get into Sun now that I've switched to
 | Debian. What am I doing wrong?
 
   It may be you need to add the group dialout. By default
   regular users don't have permission to use pppd.

IIRC the group is already there and named 'dip'.
just run a adduser your_name dip

-- 
Weaselhttp://www.cosy.sbg.ac.at/~ppalfrad/
PGP encrypted messages prefered.   See my site for my PGP key.
--
   The software said Windows95 or better, so I got Linux...


pgptuBzcKLL2X.pgp
Description: PGP signature


Re: Logging in w/ session-specific passwd

1999-08-15 Thread Julian S. Taylor
  | When I use cu on Debian I get the messagepppd permission denied. I can
  | use wvdial to my ISP but I can't get into Sun now that I've switched to
  | Debian. What am I doing wrong?
 
It may be you need to add the group dialout. By default
regular users don't have permission to use pppd.

 IIRC the group is already there and named 'dip'.
 just run a adduser your_name dip

I'm running this as root.

Julian



Logging in w/ session-specific passwd

1999-08-14 Thread Julian S. Taylor
Salutations,

I log in to Sun using a prompt-response method. The server sends down a
random number, I make an entry into a calculator and it gives me the
password for that session. For this reason, I can't hook up using expect
or chat. Using slackware and Caldera, I just log in using cu. Debian's
configuration has me totally baffled. My usual trick with cu was to log
in, start the ppp session on the remote and then paste in the command:

~+/usr/sbin/pppd defaultroute ...

When I use cu on Debian I get the messagepppd permission denied. I can
use wvdial to my ISP but I can't get into Sun now that I've switched to
Debian. What am I doing wrong?

thanks,
Julian


Re: ProFTPd feature kept me from logging in

1999-08-02 Thread Johnie Ingram

bruce == bruce  [EMAIL PROTECTED] writes:

bruce I'd suggest it prompt for the login and password and then
bruce dump you with a message as soon as you succeed in logging in.

I've asked the proftpd authors to do tihs.

netgod




* Asterix commits heinous errors of grammar just to see if his teacher notices
* Asterix is rapidly turning into the Bastard CompSci Student From Hell


ProFTPd feature kept me from logging in

1999-07-31 Thread bruce
It turns out that ProFTPd would not log me in because my login shell was
not listed in /etc/shells . It didn't do anything to _tell_ me that. I'd
suggest it prompt for the login and password and then dump you with a message
as soon as you succeed in logging in.

Thanks

Bruce


Re: ProFTPd feature kept me from logging in

1999-07-31 Thread Nathan E Norman
On 31 Jul 1999 [EMAIL PROTECTED] wrote:

 : It turns out that ProFTPd would not log me in because my login shell was
 : not listed in /etc/shells . It didn't do anything to _tell_ me that. I'd
 : suggest it prompt for the login and password and then dump you with a message
 : as soon as you succeed in logging in.

That's a feature of every ftpd I've ever used in Unix - if the user's
shell isn't listed in /etc/shells, they don't ftp.

--
Nathan Norman
MidcoNet  410 South Phillips Avenue  Sioux Falls, SD
mailto:[EMAIL PROTECTED]   http://www.midco.net
finger [EMAIL PROTECTED] for PGP Key: (0xA33B86E9)



Re: logging 'su'

1999-06-11 Thread Carl Mummert
  Is there any way to log with syslog all attepts (good  bad) to
 user 'su' ?
If you can, it would be in the manual page, right.
man syslog.conf.

Actually, in this case it's not in any manpage.

There was a behjavior change at the hamm/slink transition- hamm su would log to 
syslog, 
slink su would not.  I researched this, and discoverd that the issue is some 
compile-time
definitions  that the newer su.c files need in order to activate syslog 
activity.  
The makefile doens't enable them, so su doesn't do syslog logging.

There are some bugs filed against this, but I am not sure what their status is.

I have some steps below to fix su.
Use caution in following the steps below.  Don't blame me if you break 
something,
and be ready to log in on the console in case you break su.

T y p e  s l o w l y .

Here is what I did to fix su:

1) download the appropriate version of the source code for the shellutils
package. You need the .orog.tar.gz , the .diff.gz, and the .dsc from the
debian server.

2) put these three files in some dir under /usr/src, and cd there.  Then run 
  # dpkg-source -x shellutils_VER.dsc

  This will unpack the tar file and patch it.

2) cd to shellutils-VER and run ./configure
   cd to src and open su.c in an editor.

  Add the following three lines at the very top, before the comment:

  #define SYSLOG_SUCCESS 1  
  #define SYSLOG_FAILURE 1
  #define SYSLOG_NON_ROOT 1

  they need to be flush with the left margin.

3)
  # cd ..
  # cd lib
  # make all
  # cd ..
  # cd intl
  # make all
  # cd ..
  # cd src
  # make su

  # chmod 4755 su
  #  test su until you are happy with it
  # mv /bin/su /bin/su.debian
  # chmod 700 /bin/su.debian
  # cp su /bin

 # ensure /bin/su still works


I suppose you could run debian/rules binary from the top of the source tree
to generate a debian package, and then iat, if you don't like to run make by 
hand.
However, this will also remake all the other shellutils, so the compile time 
will be 
longer

carl


Re: logging 'su'

1999-06-11 Thread Carl Mummert
  Is there any way to log with syslog all attepts (good  bad) to
 user 'su' ?
If you can, it would be in the manual page, right.
man syslog.conf.

Actually, in this case it's not in any manpage.

There was a behjavior change at the hamm/slink transition- hamm su would log to 
syslog, 
slink su would not.  I researched this, and discoverd that the issue is some 
compile-time
definitions  that the newer su.c files need in order to activate syslog 
activity.  
The makefile doens't enable them, so su doesn't do syslog logging.

There are some bugs filed against this, but I am not sure what their status is.

I have some steps below to fix su.
Use caution in following the steps below.  Don't blame me if you break 
something,
and be ready to log in on the console in case you break su.

T y p e  s l o w l y .

Here is what I did to fix su:

1) download the appropriate version of the source code for the shellutils
package. You need the .orog.tar.gz , the .diff.gz, and the .dsc from the
debian server.

2) put these three files in some dir under /usr/src, and cd there.  Then run 
  # dpkg-source -x shellutils_VER.dsc

  This will unpack the tar file and patch it.

2) cd to shellutils-VER and run ./configure
   cd to src and open su.c in an editor.

  Add the following three lines at the very top, before the comment:

  #define SYSLOG_SUCCESS 1  
  #define SYSLOG_FAILURE 1
  #define SYSLOG_NON_ROOT 1

  they need to be flush with the left margin.

3)
  # cd ..
  # cd lib
  # make all
  # cd ..
  # cd intl
  # make all
  # cd ..
  # cd src
  # make su

  # chmod 4755 su
  #  test su until you are happy with it
  # mv /bin/su /bin/su.debian
  # chmod 700 /bin/su.debian
  # cp su /bin

 # ensure /bin/su still works


I suppose you could run debian/rules binary from the top of the source tree
to generate a debian package, and then iat, if you don't like to run make by 
hand.
However, this will also remake all the other shellutils, so the compile time 
will be 
longer

carl


logging uf su usage

1999-05-11 Thread Chad A. Adlawan
hello list,
  does the default syslog.conf log all usage of the su command ?  if so
may i knoe where ?
  ive been reading the syslod.conf man page but im not sure whether i
understood everything.  and if it doesnt, may i knoe how do i tell syslog to
log all usage of the su commang ?
TIA,
chad


Re: logging uf su usage

1999-05-11 Thread Carl Mummert
I noticed this problem a while back.

There is (was at the time) a bug against su because, somehow, the
compile-time flag needed to enable this logging had been removed.
I noticed this change when I upgraded from hamm to slink.

My solution was to recompile su.  It is in the shellutils package;
you can just recompile su and copy it over, instead of recompiling
everything, or otherwise you can make a new deb package and install
it.

Unfortunately, su is too sensitive a file for me to distribute
my recompiled version.

Carl


Re: logging uf su usage

1999-05-11 Thread Andrei Ivanov
   does the default syslog.conf log all usage of the su command ?  if so
 may i knoe where ?

There is logging of su in /var/log/auth.log
Andrew


---
 Andrei S. Ivanov  
 [EMAIL PROTECTED]   
 UIN 12402354  
 http://members.tripod.com/AnSIv   --Little things for Linux.


Re: logging uf su usage

1999-05-11 Thread Chad A. Adlawan
 ive downloaded the source and unpacked them already, almost ready to
recompile.  may i know how/where do I add this removed compile time flag
thats needed to enable this logging ?
chad


 
 There is (was at the time) a bug against su because, somehow, the
 compile-time flag needed to enable this logging had been removed.
 I noticed this change when I upgraded from hamm to slink.
 


Re: logging uf su usage

1999-05-11 Thread Carl Mummert
From message [EMAIL PROTECTED]  :
 ive downloaded the source and unpacked them already, almost ready to
recompile.  may i know how/where do I add this removed compile time flag
thats needed to enable this logging ?
chad


from su.c:
/* su for GNU.  Run a shell with substitute user and group IDs.
   Copyright (C) 92, 93, 94, 95, 1996 Free Software Foundation, Inc.


etc



   Compile-time options:
   -DSYSLOG_SUCCESS Log successful su's (by default, to root) with syslog.
   -DSYSLOG_FAILURE Log failed su's (by default, to root) with syslog.

   -DSYSLOG_NON_ROOTLog all su's, not just those to root (UID 0).
   Never logs attempted su's to nonexistent accounts.
*/



After you run ./configre from the shellutils-1...  directory, cd to src and edit
the makefile there.  Go to the sule to make su (it starts with su: ) and
edit the command below to add whatever flags you want.  ie

   gcc blah blah

becomes
  
  gcc -DSTUFF blah blah


then run 'make su' in the src directory.
then tune 'strip su'
then cp the su program somewhere, and chmod it to 4555


Carl



Re: Getting ICQ to open and close when logging on to IP

1999-05-10 Thread John Galt

put a kill or a terminate command in /etc/ppp/ip-down?

On Sun, 9 May 1999, Phillip Deackes wrote:

 I use icqnix ans can easily get it to start up when logging on to my IP.
 I do not know how to get it to close when I log off however. Can anyone
 help, please?
 
 
 --
 Phillip Deackes
 [EMAIL PROTECTED]
 Debian Linux v.2.1 
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 

When you are having a bad day, and it seems like everybody is trying to
tick you off, remember that it takes 42 muscles to produce a frown, but
only 4 muscles to  work the trigger of a good sniper rifle.

Who is John galt?  [EMAIL PROTECTED], that's who!


Re[2]: Getting ICQ to open and close when logging on to IP

1999-05-10 Thread Phillip Deackes
John Galt [EMAIL PROTECTED] wrote:
 
 put a kill or a terminate command in /etc/ppp/ip-down?

Thanks, John. This is what I tried to do, but kill needs a pid. If I try
'kill icqnix' nothing happens apart from the system telling me that
there is no such pid. How to I make it so that icqnix will always
terminate when I log off whithout having to find out what pid it is
using before I can kill it. If I do that I might as well close it
myself. 'terminate' does not exist on my system, according to locate.

Cheers.


--
Phillip Deackes
[EMAIL PROTECTED]
Debian Linux v.2.1 


Re: Re[2]: Getting ICQ to open and close when logging on to IP

1999-05-10 Thread Corey Ralph
Try killall instead of kill.

On Mon, 10 May 1999, Phillip Deackes wrote:
 John Galt [EMAIL PROTECTED] wrote:
  
  put a kill or a terminate command in /etc/ppp/ip-down?
 
 Thanks, John. This is what I tried to do, but kill needs a pid. If I try
 'kill icqnix' nothing happens apart from the system telling me that
 there is no such pid. How to I make it so that icqnix will always
 terminate when I log off whithout having to find out what pid it is
 using before I can kill it. If I do that I might as well close it
 myself. 'terminate' does not exist on my system, according to locate.
 
 Cheers.
 
 
 --
 Phillip Deackes
 [EMAIL PROTECTED]
 Debian Linux v.2.1 
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
--
Corey Ralph Email:   [EMAIL PROTECTED]
Technical Manager   Phone:  (03) 5133 0115
Network Technology  Fax:(03) 5133 0805


Getting ICQ to open and close when logging on to IP

1999-05-09 Thread Phillip Deackes
I use icqnix ans can easily get it to start up when logging on to my IP.
I do not know how to get it to close when I log off however. Can anyone
help, please?


--
Phillip Deackes
[EMAIL PROTECTED]
Debian Linux v.2.1 


CGIWRAP logging problems

1999-03-31 Thread Alan
Hi there.   I'm using the cgiwrap package from stable, and am having some
problems.  I hope that someone whose used this package can give me a hand with
it.  

Basically I installed the package, and then, as user alan created the directory
/home/alan/public_html/cgi-bin  In there I stuck a simple 'hello world' perl
script (test.cgi), and then attempted to run the script from
http://blah.com/cgi-bin/cgiwrap/alan/test.cgi

The output I get gives me:

CGIWrap encountered a system error:
When: Could not open log file for appending!
Error Message: No such file or directory
Error Number: 2
[...]

I'm wondering if anyone knows exactly where this trys to log (the README.debian
indicates it logs to syslog, but even setting syslogs perms to 666 didn't do
anything.

The homepage and docs don't cover this area very well unfortunately :( 

TIA

alan




Logging htaccess protected accesses.

1999-03-23 Thread Matthew Myers
Does anyone know how to log which user logs into an .htaccess protected
directory?


Re: Gnome install using apt - error logging in

1999-03-10 Thread sjb
 but when I do an apt-get update the update does fine with the debian
 site, but it gives me an error on the gnome sight. The error is:
 
 Error: ftp://ftp.gnome.org dists/released/ Packages
 process_uri_pair: couldn't log in

The ftp.gnome.org site is VERY busy, try one of the mirrors you see when
logging in with netscape or an ftp client.

Sarel Botha


Gnome install using apt - error logging in

1999-03-09 Thread Kent West
I'm trying to install Gnome using the instructions at 
http://www.gnome.org/start/getting_debian.shtml

They say to add a line to /etc/apt/sources.list (which I've done); it now
looks like:

deb ftp://ftp.debian.org/debian stable main contrib non-free
deb ftp://ftp.gnome.org/pub/GNOME/debian dists/released/

but when I do an apt-get update the update does fine with the debian
site, but it gives me an error on the gnome sight. The error is:

Error: ftp://ftp.gnome.org dists/released/ Packages
process_uri_pair: couldn't log in

Does anyone know of a fix for this?

Thanks!


Re: boot messages/logging

1999-01-25 Thread Frederick Page
Hi tony,

you wrote on: 24 Jan 99 at 22:05 (received 25.01.99)
about   : _boot messages/logging_

I'm at a loss to find the way to get all the
boot messages logged to a file.  Is there a
recommended procedure or configuration file
change that I can make?

After boot, just type

dmesg | less

to review all boot-messages. Use less to save them to a file (or just  
dmesg  file)

Kind regards

Frederick



boot messages/logging

1999-01-24 Thread tony mollica
I'm at a loss to find the way to get all the
boot messages logged to a file.  Is there a
recommended procedure or configuration file
change that I can make?



thanks,
-- 

tony mollica
[EMAIL PROTECTED]


Re: boot messages/logging

1999-01-24 Thread Tino Schwarze
Hi Tony,
 I'm at a loss to find the way to get all the
 boot messages logged to a file.  Is there a
 recommended procedure or configuration file
 change that I can make?
dmesg displays boot messages. It is usually run at system startup and
it's output redirected to /var/log/boot.msg or a similar file.
If not, run dmesg /var/log/boot.msg inside some init script.

HTH, Tino.


Re: Logging bootup sequence

1998-12-03 Thread Miller Paul
On Wed, 2 Dec 1998 [EMAIL PROTECTED] wrote:

 As a new Debian user, I'd kind of like to see what Linux is doing when it
 boots up.  Is there a way to log the boot up sequence (before the syslog takes
 over) so I can peruse it? Unforunately, the Pause key doesn't seem to work...
 I'm booting from a floppy if that matters..
 
 Thanks,
 Jay
 
Try using the scroll lock to stop the flow of the output. That works on my
machine.


Paul Miller
Talons - President
The Spirit of UNT
[EMAIL PROTECTED]


Logging bootup sequence

1998-12-02 Thread MallarJ
As a new Debian user, I'd kind of like to see what Linux is doing when it
boots up.  Is there a way to log the boot up sequence (before the syslog takes
over) so I can peruse it? Unforunately, the Pause key doesn't seem to work...
I'm booting from a floppy if that matters..

Thanks,
Jay


<    5   6   7   8   9   10   11   >