Results 1 to 2 of 2
Hey guys, I am new to linux and i wanted to make some kind of script that disables all access to other users to my system and then kick them, ...
- 06-21-2008 #1Just Joined!
- Join Date
- Jun 2008
- Posts
- 1
Disable access to unwanted users
Hey guys, I am new to linux and i wanted to make some kind of script that disables all access to other users to my system and then kick them, in case someone tries to hack my system. I am still reading some tutorials, but so far I have figured out only to use
$ chmod go-rwx ~/root
but I don't think that would be enough.
Can someone point me to what I things need to do be done so I can cut all access to these dangerous users or a good tutorial maybe.
Thank you.
- 06-21-2008 #2
Hello
As being new to linux you should not be trying to chmod or chown this is a root function until understand enough. You can hose your box real fast.
First you can read the manpages on these services to help you understand
what you will be doing. manpage for iptables , ssh ,ftp
Configure your firewall to only allow the ip address's you want to have access to this box. for serverices like ssh, ftp. Then next you can configure the services like ssh to use a different port number in stead of the default 22. also change the ChallengeResponseAuthentication yes and PasswordAuthentication yes
This is done in /etc/ssh/sshd_conf also change the ftp conf file in the /etc directory to not allow anonymous access. buy doing these things you will greatly reduce the possibility of being hacked.
Good luck


Reply With Quote