patch for nxsetup-knoppix
If you choose "Start NX Server" from the Knoppix menu
with Knoppix-2004-12-08, the script /usr/bin/nxsetup-knoppix
fails with the errors given below.
The rpc error is ignorable, but the inability to open the
shadow group file is NOT. The script in its current form
does not create the nxuser, and hence the server is unusable.
The correction is very small, but important, and it is attached.
Conrad
-------------------------------------------------------------------------------
rpcinfo: can't contact portmapper: RPC: Remote system error - Connection refused
groupadd: unable to open shadow group file
adduser: `/usr/sbin/groupadd -g 1002 nxuser' returned error code 10. Aborting.
Cleaning up.
Removing group `nxuser'.
groupdel: group nxuser does not exist
chpasswd: line 1: unknown user nxuser
chpasswd: error detected, changes ignored
Searching for nxserver binary...done
Starting ssh service ...Generating SSH1 RSA host key...
Generating public/private rsa1 key pair.
Your identification has been saved in /etc/ssh/ssh_host_key.
Your public key has been saved in /etc/ssh/ssh_host_key.pub.
The key fingerprint is:
d1:e4:ab:da:02:ed:29:f0:99:01:6e:61:89:f7:2f:08
Starting OpenBSD Secure Shell server: sshd.
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:
2d:39:45:c2:73:bf:8c:3a:06:1e:30:07:eb:44:44:58 root@Knoppix
Setting up /var/lib/nxserver/ ...done
Setting up user nx ...done
Setting up known_hosts and .ssh/authorized_keys2 ...done
Setting up permissions ...done
Ok, nxserver is ready.
PAM authentication enabled:
All users will be able to login with their
normal passwords.
You can change this behaviour in the nxserver script.
Have Fun!
-------------------------------------------------------------------------------
--- nxsetup-knoppix.orig 2004-11-01 12:46:26.000000000 +0100
+++ nxsetup-knoppix.new 2005-02-16 06:26:47.000000000 +0100
@@ -32,6 +32,7 @@
# The rest is done automatically
+cp /etc/gshadow /etc/gshadow1 && mv -f /etc/gshadow1 /etc/gshadow
adduser --quiet --disabled-password --gecos "$NX_USERNAME" nxuser
echo "nxuser:$ENC_PASS" | chpasswd -e
Reply to: