<br><tt><font size=2>Matt.Nichols@tdcj.state.tx.us wrote on 17/12/2009
16:05:07:<br>
<br>
> <br>
> When I su to the 'nx' user and run the sessreg command I get the <br>
> list of arguments it can be run with: <br>
> <br>
> sessreg: usage sessreg {-a -d} [-w wtmp-file] [-u utmp-file] [-L lastlog-file]<br>
> [-t ttys-file] [-l
line-name] [-h host-name] <br>
> [-s slot-number] [-x
servers-file] user-name <br>
> <br>
> Should there be arguments to the 'sessreg' command included in node.<br>
> conf? Or does some other component of NXserver handle passing it arguments?
</font></tt>
<br>
<br>
<br>
<br><tt><font size=2>As Arcady says, </font></tt>
<br>
<br><tt><font size=2> . . . you need to check the group ownership
of (because you run Suse)</font></tt>
<br>
<br><tt><font size=2> /var/log/wtmp</font></tt>
<br><tt><font size=2> /var/run/utmp</font></tt>
<br>
<br>
<br><tt><font size=2>Because you run Suse, you will find these are group
tty.</font></tt>
<br>
<br><tt><font size=2>FreeNX setup puts user nx into utmp, not tty . . .</font></tt>
<br>
<br><tt><font size=2>if [ "$ENABLE_USESSION" = "1"
]</font></tt>
<br><tt><font size=2> then</font></tt>
<br><tt><font size=2>
echo -n "Adding user \"nx\" to group \"utmp\"
..."</font></tt>
<br><tt><font size=2>
usermod -G utmp nx</font></tt>
<br><tt><font size=2>
echo "done"</font></tt>
<br><tt><font size=2> fi</font></tt>
<br>
<br><tt><font size=2>. . . so nx is unable to update wtmp / utmp unless
you spot and</font></tt>
<br><tt><font size=2>follow the instructions in the note in </font></tt>
<br>
<br><tt><font size=2> /etc/nxserver/node.conf</font></tt>
<br>
<br>
<br><tt><font size=2># Note: You have to make sure that you add the nx
user to the</font></tt>
<br><tt><font size=2># utmp or tty group or how its
called on your system</font></tt>
<br><tt><font size=2># before this directive works.</font></tt>
<br>
<br>
<br>
<br><tt><font size=2>The last time of logging in file</font></tt>
<br>
<br><tt><font size=2> /var/log/lastlog
</font></tt>
<br>
<br><tt><font size=2>is not writeable by its group members, so you are
out of luck </font></tt>
<br><tt><font size=2>there unless you want to start moving from default.</font></tt>
<br>
<br>
<br><tt><font size=2>FYI</font></tt>
<br>
<br><tt><font size=2>The "missing" arguments to the sessreg command
in freenx are on</font></tt>
<br><tt><font size=2>the command line in nxserver.</font></tt>
<br>
<br>
<br><tt><font size=2>$COMMAND_SESSREG -l ":$SESS_DISPLAY" -h
"$USERIP" -a $USER 2>&1 | log_error</font></tt>
<br>
<br>
<br>
<br>
<br><tt><font size=2>Suse don't bother too much with updating their freenx
rpms to their</font></tt>
<br><tt><font size=2>way of doing things.</font></tt>
<br>
<br><tt><font size=2>See one of my earlier posts if you want the missing</font></tt>
<br>
<br><tt><font size=2> /etc/init.d/freenx-server</font></tt>
<br>
<br><tt><font size=2>"startup" script for cleaning up some of
the previous sesssions mess </font></tt>
<br><tt><font size=2>at boot time, though you will probably survive without
it.</font></tt>
<br>
<br><tt><font size=2><br>
> <br>
> Thanks, <br>
> <br>
> -Matt <br>
> <br>
. . SNIP . .</font></tt>
<br><tt><font size=2>> <br>
> From: </font></tt>
<br><tt><font size=2>> <br>
> Arcady Genkin <agenkin@gmail.com> </font></tt>
<br><tt><font size=2>> <br>
> On Wed, Dec 16, 2009 at 2:13 PM, <Matt.Nichols@tdcj.state.tx.us>
wrote:<br>
> ><br>
> > I do not use load balancing. Hopefully someone else has some
ideas.<br>
> <br>
> What are permissions on /var/log/wtmp and /var/log/btmp?<br>
> If you su to user nx (you'll want to use the "-s" option
to for su),<br>
> can you run the sessreg command manually?<br>
> --<br>
> Arcady Genkin<br>
> <br>
> ________________________________________________________________<br>
> Were you helped on this list with your FreeNX
problem?<br>
> Then please write up the solution in the FreeNX Wiki/FAQ:<br>
> <br>
> </font></tt><a href="http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ"><tt><font size=2>http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ</font></tt></a><tt><font size=2><br>
> <br>
> Don't forget to check the NX Knowledge
Base:<br>
> </font></tt><a href=http://www.nomachine.com/kb/><tt><font size=2>http://www.nomachine.com/kb/</font></tt></a><tt><font size=2>
<br>
> <br>
> ________________________________________________________________<br>
> FreeNX-kNX mailing list --- FreeNX-kNX@kde.org<br>
> </font></tt><a href="https://mail.kde.org/mailman/listinfo/freenx-knx"><tt><font size=2>https://mail.kde.org/mailman/listinfo/freenx-knx</font></tt></a><tt><font size=2><br>
> ________________________________________________________________</font></tt>