Results 1 to 3 of 3
Hi all,
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 ...
- 05-19-2005 #1Just Joined!
- Join Date
- Jan 2005
- Posts
- 4
Blocking SSH user logins and running Services as non-root
Hi all,
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.
- 05-19-2005 #2
Well for the SSH one, you'll probably be able to set that in /etc/ssh/sshd_config. If you need help with the syntax, then you should reference the man page:
Code:man 5 sshd_config
- 05-19-2005 #3Just Joined!
- Join Date
- Jan 2005
- Posts
- 4
Ta very much.
For those wondering add the line
AllowUsers [username]
to the config file.


Reply With Quote
