[FreeNX-kNX] nx account creation with 0.7.1

Frédéric Le Faucheur frederic.lefaucheur at gmail.com
Wed Oct 24 07:00:21 UTC 2007


Thanks. I am going to test that. I suppose that nscd is not a standard
component of Slackware 12.0.

2007/10/23, Brent Davidson <brent at texascountrytitle.com>:
>
>  On my system (Centos 5) the nscd lines were the cause of the problem.  I
> couldn't get them to generate any error codes, but commenting them out makes
> it work.
>
> Thanks,
> Brent
>
> Alain Lemerre wrote:
>
> Hi,
>
> Working to try to find why 0.7.1 doesn't work, I have noticed that nx user
> and nx group doen't work on my Slackware 12.0 box. 0.7.0 is fine. 0.7.1dosen't work.
>
> In 0.7.0 :
>
> Setting up /var/lib/nxserver/db ...done
> Setting up /var/log/nxserver.log ...done
> Setting up special user "nx" ...Password changed.
> done
> Setting up known_hosts and authorized_keys2 ...done
> Setting up permissions ...done
> Setting up cups nxipp backend ...done
>
>
>
> in 0.7.1
>
> Do you want to use your own custom KeyPair? [y/N] ySetting up
> /etc/nxserver ...done
> Setting up /var/lib/nxserver/db ...done
> Setting up /var/log/nxserver.log ...done
> Setting up special user "nx" ...bash-3.1#
>
> Code in 0.7.0 (works)
>
>     # Is it a debian?
>     if [ -f /etc/debian_version -a -z "$SETUP_UID" ]
>     then
>         USERADD_OPTIONS="--ingroup nx --system --home $NX_HOME_DIR --shell
> $PATH_BIN/nxserver"
>         [ -n "$SETUP_GID" ] && GROUPADD_OPTIONS="--gid $SETUP_GID"
>
>         # adduser needs a valid group to add the user to
>         ! nx_group_exists && addgroup --system --quiet $GROUPADD_OPTIONS
> nx
>         adduser $USERADD_OPTIONS nx
>
>     # no, its a "normal" useradd
>     else
>         USERADD_OPTIONS="-g nx -d $NX_HOME_DIR -s $PATH_BIN/nxserver"
>         [ -n "$SETUP_GID" ] && GROUPADD_OPTIONS="-g $SETUP_GID"
>
>         # uid specified?
>         if [ -n "$SETUP_UID" ]
>         then
>             USERADD_OPTIONS="-u $SETUP_UID $USERADD_OPTIONS"
>
>         # Is it a SuSE?
>         elif [ -f /etc/SuSE-release ]
>         then
>             USERADD_OPTIONS="-r $USERADD_OPTIONS"
>         fi
>
>         if [ "$SETUP_LOCAL_USER" = "yes" ]
>         then
>             ! nx_group_exists && lgroupadd $GROUPADD_OPTIONS nx
>             luseradd $USERADD_OPTIONS nx
>         else
>             ! nx_group_exists && groupadd $GROUPADD_OPTIONS nx
>             useradd $USERADD_OPTIONS nx
>         fi
>
>
>     fi
>
>
>
>
> Code in 0.7.1 (does't work)
>
>
>
>     else
>         USERADD_OPTIONS="-g nx -d $NX_HOME_DIR -s $PATH_BIN/nxserver"
>         [ -n "$SETUP_GID" ] && GROUPADD_OPTIONS="-g $SETUP_GID"
>
>         # uid specified?
>         if [ -n "$SETUP_UID" ]
>         then
>             USERADD_OPTIONS="-u $SETUP_UID $USERADD_OPTIONS"
>
>         # Is it a SuSE?
>         elif [ -f /etc/SuSE-release ]
>         then
>             USERADD_OPTIONS="-r $USERADD_OPTIONS"
>         fi
>
>         if [ "$SETUP_LOCAL_USER" = "yes" ]
>         then
>             ! nx_group_exists && lgroupadd $GROUPADD_OPTIONS nx
>             [ -f /etc/nscd.conf ] && { nscd --invalidate group; }
>
>             luseradd $USERADD_OPTIONS nx
>             [ -f /etc/nscd.conf ] && { nscd --invalidate passwd; }
>         else
>             ! nx_group_exists && groupadd $GROUPADD_OPTIONS nx
>             [ -f /etc/nscd.conf ] && { nscd --invalidate group; }
>
>             useradd $USERADD_OPTIONS nx
>             [ -f /etc/nscd.conf ] && { nscd --invalidate passwd; }
>         fi
>
>
>     fi
>
>
> ------------------------------
>
> ________________________________________________________________
>      Were you helped on this list with your FreeNX problem?
>     Then please write up the solution in the FreeNX Wiki/FAQ:
>   http://openfacts.berlios.de/index-en.phtml?title=FreeNX_FAQ
>          Don't forget to check the NX Knowledge Base:
>                  http://www.nomachine.com/kb/
>
> ________________________________________________________________
>        FreeNX-kNX mailing list --- FreeNX-kNX at kde.org
>       https://mail.kde.org/mailman/listinfo/freenx-knx
> ________________________________________________________________
>
> ------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.503 / Virus Database: 269.15.6/1086 - Release Date: 10/22/2007 7:57 PM
>
>
>
> ________________________________________________________________
>     Were you helped on this list with your FreeNX problem?
>    Then please write up the solution in the FreeNX Wiki/FAQ:
>  http://openfacts.berlios.de/index-en.phtml?title=FreeNX_FAQ
>         Don't forget to check the NX Knowledge Base:
>                 http://www.nomachine.com/kb/
>
> ________________________________________________________________
>       FreeNX-kNX mailing list --- FreeNX-kNX at kde.org
>      https://mail.kde.org/mailman/listinfo/freenx-knx
> ________________________________________________________________
>



-- 
Cordialement
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/freenx-knx/attachments/20071024/ede48cc8/attachment.html>


More information about the FreeNX-kNX mailing list