[FreeNX-kNX] nx account creation with 0.7.1
Alain Lemerre
alain.lemerre at gmail.com
Tue Oct 23 20:18:49 UTC 2007
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/freenx-knx/attachments/20071023/589dfd61/attachment.html>
More information about the FreeNX-kNX
mailing list