Find the answer to your Linux question:
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, ...
  1. #1
    Just 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.

  2. #2
    Linux Newbie objuan's Avatar
    Join Date
    Jul 2006
    Location
    california
    Posts
    218
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...