How to Disable VNC Server from Xinetd in CentOS/RHEL 7 – Ranjan.info

H

Question:How do I prevent the xinetd daemon from starting VNC server processes?

1. Go to xinetd configuration file /etc/xinetd.d/vnc-server, Modify the file and view the line disabled = no And set the value to Yes.

# vi /etc/xinetd.d/vnc-server
service vnc-server-1
{
disable = no
socket_type = stream
protocol = tcp
wait = yes
user = nobody
server = /usr/bin/Xvnc
server_args = -inetd -query localhost -geometry 1440x900 -depth 24 -once -securitytypes=none
}

2. Restart the xinetd service for the changes to take effect.

# systemctl restart xinetd.service

Add comment

By Ranjan