Blocking SSH user logins and running Services as non-root
This might be blindingly obvious but I want to block all SSH logins except for one user account.
In other words I have created a user called fred on the server machine. I want it so only fred can ssh onto the machine. Attempts to connect as root or any other user will be blocked.
Also I've set up Apache, MySQL and a Tomcat install as services so they auto-start on reboot. How would I get them to run as a non-root user?
Cheers in advance.