You must find which service is listening on an unexpected port 8443 on a server. How?
BeginnerScenarioProcesses, services and systemd
Answer
Situation read → Map port to process, then process to package or unit.
What I'd do →
sudo ss -tlnp 'sport = :8443'
sudo lsof -i :8443
systemctl status <PID> # shows the owning unit
rpm -qf /proc/<PID>/exe 2>/dev/null || dpkg -S "$(readlink /proc/<PID>/exe)"
Why → systemctl status <PID> finds the unit from the cgroup, telling you who installed and runs it.
Interview tip → If the owner is unknown and not in any package, treat it as a possible compromise.
More on Processes, services and systemd
Your team has a Python API that someone starts with `nohup python app.py &`. Make it a proper service running as a non-root user.BeginnerThe service you created must bind to port 443, but it runs as a non-root user. How?BeginnerYou need to change one setting (memory limit) in a vendor-supplied unit file without editing it. How?BeginnerA service depends on a database on the same host and fails at boot because the DB isn't ready. How do you fix the ordering?IntermediateA service keeps crashing and systemd stops restarting it after a few attempts. How do you tune this?IntermediateA long-running app must reload its config without dropping connections. How do you wire this into systemd?Intermediate