[CentOS] nxsetup issue when gid is not specified

Tue Aug 16 06:00:57 UTC 2005
Adrian Coman <adi.coman at gmail.com>

Hi,

I have freenx-0.4.4-1.centos4 and when trying to install it I get this error:

[root at adi ~]# nxsetup --install --setup-nomachine-key --clean --purge
Removing user nx ...done
Removing session database ...done
Removing logfile ...done
Removing nx home directory ...done
Removing configuration files ...done
Setting up /etc/nxserver ...done
Generating public/private dsa key pair.
Your identification has been saved in /etc/nxserver/users.id_dsa.
Your public key has been saved in /etc/nxserver/users.id_dsa.pub.
The key fingerprint is:
73:1a:bd:df:61:bc:8c:95:4f:9e:35:cf:92:d7:7a:76 root at adi
Setting up /var/lib/nxserver/db ...done
Setting up /var/log/nxserver.log ...done
Setting up user nx ...useradd: unknown group -d

The problem is that in the nxsetup file there is no default value for
the SETUP_GID variable, and when trying to add the nx user IF THE
--GID IS NOT SPECIFIED, the USERADD_OPTIONS variable contains (between
others):

USERADD_OPTIONS= -g $SETUP_GID
where $SETUP_GID=
so =>  USERADD_OPTIONS= -g 

which is illegal (no group specified).

Adrian