<br><tt><font size=2>Morgan Cox <morgancoxuk@gmail.com> wrote on
26/08/2010 17:15:50:<br>
<br>
> Hi.<br>
> <br>
> It is possible to prevent access for a specific user from logging
<br>
> into FreeNX using the ENABLE_SSH_AUTHENTICATION="1"
?<br>
</font></tt>
<br>
<br><tt><font size=2>If you mean "WHILST using ENABLE_SSH_AUTHENTICATION="1""</font></tt>
<br>
<br><tt><font size=2>If nxacl isn't there already . . .</font></tt>
<br>
<br><tt><font size=2>As root</font></tt>
<br><tt><font size=2>cp /usr/bin/nxacl.sample /usr/bin/nxacl</font></tt>
<br>
<br><tt><font size=2>chmod 755 /usr/bin/nxacl</font></tt>
<br>
<br><tt><font size=2>Modify to suit . . .</font></tt>
<br>
<br><tt><font size=2>Trivial example . . . </font></tt>
<br>
<br><tt><font size=2>edit, adding above the allow_all on line 64 the following:-</font></tt>
<br>
<br>
<br><tt><font size=2>if [ "$USER" = "whoever-you-want-to-stop"
] ; then</font></tt>
<br><tt><font size=2> exit 1</font></tt>
<br><tt><font size=2>fi</font></tt>
<br>
<br><tt><font size=2>allow_all</font></tt>
<br>
<br>
<br>
<br><tt><font size=2>Obviously it would be better to check if the user
was in a</font></tt>
<br><tt><font size=2>FreeNX group and then permit instead . . . .</font></tt>
<br>
<br><tt><font size=2>eg</font></tt>
<br>
<br><tt><font size=2>id -Gn|grep -q -w "your-freenx-permitted-users-group-name"
|| exit 1</font></tt>
<br>
<br>
<br><tt><font size=2>> <br>
> i.e I want all users to login normally except one...<br>
> <br>
> Is there a way to do this with free Nx?<br>
> <br>
> cheers</font></tt>