Re: Possible bug in 5.1 - su / utmp

2003-06-24 Thread sektie
tsk tsk, you got posting about it before I did.

I'm actually having the same problem. I've noticed 5.1 installed via 
cvsup/compile does this, but a cd new install does not. No one at work was 
able to replicate this error, but they were all using the CD.


Randi Harper
[EMAIL PROTECTED]
http://perlpimp.codersluts.net/

-- Original Message ---
From: Raymond Sundland [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tue, 24 Jun 2003 10:42:49 -0400
Subject: Possible bug in 5.1 - su / utmp

 I found this very interesting when I saw it originally, but then 
 found it was probably a bug.
 
 Basically, when I log into my 5.1-RELEASE box (compiled today from 
 CVS), I can do a 'w' and get the following:
 
 % w
 10:39AM  up  5:01, 1 user, load averages: 0.00, 0.00, 0.00
 USER TTY  FROM  LOGIN@  IDLE WHAT
 ray  p0   somehost 10:39AM - w
 
 Now, when I try to SU to root, this entry changes:
 
 % su -
 Password:
 Last login: Tue Jun 24 07:44:19 on ttyp1
 % whoami
 root
 % w
 10:40AM  up  5:01, 1 user, load averages: 0.04, 0.01, 0.00
 USER TTY  FROM  LOGIN@  IDLE WHAT
 root p0   -10:40AM - w
 
 So, it looks like the utmp entry is being made (again) for ttyp0 and 
 recording it.  This would be fine from my perspective, but is 
 misleading once I exit the root shell:
 
 % exit
 % whoami
 ray
 % w
 10:42AM  up  5:03, 1 user, load averages: 0.01, 0.00, 0.00
 USER TTY  FROM  LOGIN@  IDLE WHAT
 root p0   -10:40AM - w
 
 This may be a bug in PAM, since I don't think su calls login (or 
 maybe it does?)  Note that this does not happen if I do not use the 
 '-' option for su.  This also shows up in the lastlog:
 
 root ttyp2 Tue Jun 24 10:40 - 10:43  
 (00:02) ray  ttyp2somehost Tue Jun 24 10:39 -
  10:40  (00:00)
 
 Anyone have any information about this... know what the bug is?  
 Maybe it's a setting I have set that can be changed?
 
 Thanks.
 
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-
[EMAIL PROTECTED]
--- End of Original Message ---

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Newbie wirless install question

2003-06-09 Thread sektie
 windows.  After I boot into freebsd I use ifconfig to set the SSID 
 and the wepkey.  The link light on the card is solid (this usually 
 means the card is configured and connected correctly).

Heh, I'm wondering if you did the same thing I did. You set the WEP key, but 
did you turn WEP on? ;)

Check your ifconfig. Are you getting an IP via DHCP, or is it statically 
assigned? Does it say that your NIC is associated in ifconfig?

Gotta love FBSD ifconfig. Having wireless support in ifconfig saves quite a 
bit of time. Didn't realize how much I liked it until I was forced to set up 
linux on a laptop. :)

Randi
[EMAIL PROTECTED]
http://perlpimp.codersluts.net

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: booteasy / syslog

2003-06-04 Thread sektie
 Completely unrelated i know, but I am having problems finding how to 
 setup sysogd to accept logs from a remote host, in this case a 
 gateway router at another site. Just a link to   a good how-to would 
 help. I have googled but to no avail.

I have something set up to do that.

Host 1: sacrifical-lamb, running OpenBSD 3.2. (not a fan of OpenBSD, 
obviously.) syslogd is listening on port 514. On your log server, verify 
that when you do a netstat -an you have the following:

udp0  0  *.514  *.*

AFAIK, all you have to do is verify that syslogd is running with the -a flag 
to specify an allowed IP. (man syslogd for exact syntax). 

Host 2: perlpimp, running FreeBSD 5. In my syslog.conf, I have a line that 
looks like:

*.* @sacrificial-lamb

This makes perlpimp log *.* to sacrificial lamb. It's pretty easy to set up, 
providing you don't have any whackass firewalling or other weird stuff going 
on.


Randi

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]