I don't want user "test" connect to my server with tightvncserver. How I disable this command only for this user, while allowing it for user "myuser"?
What I've done so far:
- I added user "test"
useradd -d /home/test -m test
- I added a group "tightvnc" for users allowed to use tightvncserver (only "myuser")
addgroup tightvnc usermod -a -G tightvnc myuser
- I changed permission to tightvncserver
chgrp tightvnc /usr/bin/tightvncserver
chmod o-x /usr/bin/tightvncserver
Now user "test" cannot access tightvncserver ("permission denied"), but neither "myuser" (again "Permission denied") :(
If I do it reports correctly "myuser tightvnc", while gives only "test".
Thank you very much.