Re: Ghosted logins in w/who
On Wed, Apr 17, 2013 at 01:03:51PM -0500, damon...@mac.hush.com wrote: > I removed /usr/include/utmp.h and restarted inetd/telnetd/sshd. > Hopefully that does the trick.. > > On 4/11/2013 at 12:53 PM, "Chris Rees" wrote:On 10 April 2013 15:59, > wrote: > > Got it. I'll double check to make sure everything was recompiled > > correctly. Thanks! > > Damon > > While you're at it, I'll echo Ronald's concern-- make sure > /usr/include/utmp.h does NOT exist for you. > > If it does, you must run make delete-old in /usr/src. > > {removing other stuff due to OP top-posting} Removing /usr/include/utmp.h and restarting daemons will do nothing. Include files (/usr/include) are used during compile-time, not run-time. You will need to rebuild world, and also rebuild all of your ports (do not just go installing packages, rebuild them from source). -- | Jeremy Chadwick j...@koitsu.org | | UNIX Systems Administratorhttp://jdc.koitsu.org/ | | Mountain View, CA, US| | Making life hard for others since 1977. PGP 4BD6C0CB | ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: Ghosted logins in w/who
I removed /usr/include/utmp.h and restarted inetd/telnetd/sshd. Hopefully that does the trick.. On 4/11/2013 at 12:53 PM, "Chris Rees" wrote:On 10 April 2013 15:59, wrote: > Got it. I'll double check to make sure everything was recompiled > correctly. Thanks! > Damon While you're at it, I'll echo Ronald's concern-- make sure /usr/include/utmp.h does NOT exist for you. If it does, you must run make delete-old in /usr/src. Chris > On 4/10/2013 at 9:49 AM, "Tom Evans" wrote:On Wed, Apr 10, 2013 at > 3:09 PM, wrote: >> If I wipe the utmp file all the w/who content goes away, resets if > you >> will. But in a matter of moments the problem reappears.. is this >> something that needs to be submitted as a bug report do you think? >> Thanks! >> Damon >> > > Hi Damon > > Fabian was explaining to you that utmp was replaced by utmpx. > > All programs in base that wrote to utmp now write to utmpx instead. If > you still have programs not from base that write to utmp, you will get > incorrect/crazy values reported - you must rebuild all tools that > currently write to utmp so that they no longer do so. > > Cheers > > Tom > ___ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org" > ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: Ghosted logins in w/who
On 10 April 2013 15:59, wrote: > Got it. I'll double check to make sure everything was recompiled > correctly. Thanks! > Damon While you're at it, I'll echo Ronald's concern-- make sure /usr/include/utmp.h does NOT exist for you. If it does, you must run make delete-old in /usr/src. Chris > On 4/10/2013 at 9:49 AM, "Tom Evans" wrote:On Wed, Apr 10, 2013 at > 3:09 PM, wrote: >> If I wipe the utmp file all the w/who content goes away, resets if > you >> will. But in a matter of moments the problem reappears.. is this >> something that needs to be submitted as a bug report do you think? >> Thanks! >> Damon >> > > Hi Damon > > Fabian was explaining to you that utmp was replaced by utmpx. > > All programs in base that wrote to utmp now write to utmpx instead. If > you still have programs not from base that write to utmp, you will get > incorrect/crazy values reported - you must rebuild all tools that > currently write to utmp so that they no longer do so. > > Cheers > > Tom > ___ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org" > ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: Ghosted logins in w/who
Got it. I'll double check to make sure everything was recompiled correctly. Thanks! Damon On 4/10/2013 at 9:49 AM, "Tom Evans" wrote:On Wed, Apr 10, 2013 at 3:09 PM, wrote: > If I wipe the utmp file all the w/who content goes away, resets if you > will. But in a matter of moments the problem reappears.. is this > something that needs to be submitted as a bug report do you think? > Thanks! > Damon > Hi Damon Fabian was explaining to you that utmp was replaced by utmpx. All programs in base that wrote to utmp now write to utmpx instead. If you still have programs not from base that write to utmp, you will get incorrect/crazy values reported - you must rebuild all tools that currently write to utmp so that they no longer do so. Cheers Tom ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: Ghosted logins in w/who
On Wed, Apr 10, 2013 at 3:09 PM, wrote: > If I wipe the utmp file all the w/who content goes away, resets if you > will. But in a matter of moments the problem reappears.. is this > something that needs to be submitted as a bug report do you think? > Thanks! > Damon > Hi Damon Fabian was explaining to you that utmp was replaced by utmpx. All programs in base that wrote to utmp now write to utmpx instead. If you still have programs not from base that write to utmp, you will get incorrect/crazy values reported - you must rebuild all tools that currently write to utmp so that they no longer do so. Cheers Tom ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: Ghosted logins in w/who
On Wed, 10 Apr 2013 16:09:52 +0200, wrote: If I wipe the utmp file all the w/who content goes away, resets if you will. But in a matter of moments the problem reappears.. is this something that needs to be submitted as a bug report do you think? Thanks! Damon Did you upgrade correctly? Did you also ran make delete-old and make delete-old-libs? And did you rebuild all ports after that? Some things might use the old stuff still. Ronald. On 4/9/2013 at 9:42 AM, "Fabian Wenk" wrote:Hello Daniel On 09.04.2013 12:07, Daniel Braniss wrote: something changed beteen 8 and 9 with respect of handling of utmp, I tried to research this but got bogged down with other things. According to /usr/src/UPDATING: 20100113: The utmp user accounting database has been replaced with utmpx, the user accounting interface standardized by POSIX. Unfortunately the semantics of utmp and utmpx don't match, making it practically impossible to support both interfaces. The user accounting database is used by tools like finger(1), last(1), talk(1), w(1) and ac(8). All applications in the base system use utmpx. This means only local binaries (e.g. from the ports tree) may still use these utmp database files. These applications must be rebuilt to make use of utmpx. After the system has been upgraded, it is safe to remove the old log files (/var/run/utmp, /var/log/lastlog and /var/log/wtmp*), assuming their contents is of no importance anymore. Old wtmp databases can only be used by last(1) and ac(8) after they have been converted to the new format using wtmpcvt(1). Could this have any impact regarding this issue with telnet login? bye Fabian ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org" ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org" ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: Ghosted logins in w/who
If I wipe the utmp file all the w/who content goes away, resets if you will. But in a matter of moments the problem reappears.. is this something that needs to be submitted as a bug report do you think? Thanks! Damon On 4/9/2013 at 9:42 AM, "Fabian Wenk" wrote:Hello Daniel On 09.04.2013 12:07, Daniel Braniss wrote: > something changed beteen 8 and 9 with respect of handling of utmp, > I tried to research this but got bogged down with other things. According to /usr/src/UPDATING: 20100113: The utmp user accounting database has been replaced with utmpx, the user accounting interface standardized by POSIX. Unfortunately the semantics of utmp and utmpx don't match, making it practically impossible to support both interfaces. The user accounting database is used by tools like finger(1), last(1), talk(1), w(1) and ac(8). All applications in the base system use utmpx. This means only local binaries (e.g. from the ports tree) may still use these utmp database files. These applications must be rebuilt to make use of utmpx. After the system has been upgraded, it is safe to remove the old log files (/var/run/utmp, /var/log/lastlog and /var/log/wtmp*), assuming their contents is of no importance anymore. Old wtmp databases can only be used by last(1) and ac(8) after they have been converted to the new format using wtmpcvt(1). Could this have any impact regarding this issue with telnet login? bye Fabian ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org" ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: Ghosted logins in w/who
Hello Daniel On 09.04.2013 12:07, Daniel Braniss wrote: something changed beteen 8 and 9 with respect of handling of utmp, I tried to research this but got bogged down with other things. According to /usr/src/UPDATING: 20100113: The utmp user accounting database has been replaced with utmpx, the user accounting interface standardized by POSIX. Unfortunately the semantics of utmp and utmpx don't match, making it practically impossible to support both interfaces. The user accounting database is used by tools like finger(1), last(1), talk(1), w(1) and ac(8). All applications in the base system use utmpx. This means only local binaries (e.g. from the ports tree) may still use these utmp database files. These applications must be rebuilt to make use of utmpx. After the system has been upgraded, it is safe to remove the old log files (/var/run/utmp, /var/log/lastlog and /var/log/wtmp*), assuming their contents is of no importance anymore. Old wtmp databases can only be used by last(1) and ac(8) after they have been converted to the new format using wtmpcvt(1). Could this have any impact regarding this issue with telnet login? bye Fabian ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: Ghosted logins in w/who
> On Mon, Apr 08, 2013 at 08:56:42PM -0500, damon...@mac.hush.com wrote: > > I recently upgraded to FreeBSD 9.1-STABLE, and there was a strange > > added side effect. > > Users that telnet into the machine seem to have their logins forever > > ghosted in who/w. > > If a user connects via telnet, then logs out, their login still > > remains in the w/who. If another user logins in with the pty they had, > > whatever they do also shows up in the ghosted w/who of the previous > > user using that pty. > > For example: > > User X logs in, runs BitchX. Detaches the process and logs out.User Y > > logs in, gets assigned User X's previous pty, who/w now reports that > > user is running BitchX. That user has no access to the BitchX session > > or anything, it's just being displayed weird in who/w. > > I seem to remember this problem like a decade ago and I had written a > > script or there was a script that passed around called clearlogin. > > Any ideas? Thanks all!Damon > > Is GNU screen involved? It sounds like it. > > Try to repeat the problem without GNU screen. something changed beteen 8 and 9 with respect of handling of utmp, I tried to research this but got bogged down with other things. danny ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: Ghosted logins in w/who
On Mon, Apr 08, 2013 at 08:56:42PM -0500, damon...@mac.hush.com wrote: > I recently upgraded to FreeBSD 9.1-STABLE, and there was a strange > added side effect. > Users that telnet into the machine seem to have their logins forever > ghosted in who/w. > If a user connects via telnet, then logs out, their login still > remains in the w/who. If another user logins in with the pty they had, > whatever they do also shows up in the ghosted w/who of the previous > user using that pty. > For example: > User X logs in, runs BitchX. Detaches the process and logs out.User Y > logs in, gets assigned User X's previous pty, who/w now reports that > user is running BitchX. That user has no access to the BitchX session > or anything, it's just being displayed weird in who/w. > I seem to remember this problem like a decade ago and I had written a > script or there was a script that passed around called clearlogin. > Any ideas? Thanks all!Damon Is GNU screen involved? It sounds like it. Try to repeat the problem without GNU screen. -- | Jeremy Chadwick j...@koitsu.org | | UNIX Systems Administratorhttp://jdc.koitsu.org/ | | Mountain View, CA, US| | Making life hard for others since 1977. PGP 4BD6C0CB | ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Ghosted logins in w/who
I recently upgraded to FreeBSD 9.1-STABLE, and there was a strange added side effect. Users that telnet into the machine seem to have their logins forever ghosted in who/w. If a user connects via telnet, then logs out, their login still remains in the w/who. If another user logins in with the pty they had, whatever they do also shows up in the ghosted w/who of the previous user using that pty. For example: User X logs in, runs BitchX. Detaches the process and logs out.User Y logs in, gets assigned User X's previous pty, who/w now reports that user is running BitchX. That user has no access to the BitchX session or anything, it's just being displayed weird in who/w. I seem to remember this problem like a decade ago and I had written a script or there was a script that passed around called clearlogin. Any ideas? Thanks all!Damon ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"