From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079336919454.tru64-unix-managers.marc@archive.invalid> From: Leonid Kolytchev Date: Wed, 16 Feb 2000 19:56:30 +0000 To: tru64-unix-managers Subject: SUMMARY: To disable coming FTP on Tru64 box. X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079336919454 The question was: I would like to disable FTP service for incoming requests on a Tru64 box. Is it possible to do that temporally without to rebuild kernel or stuff like that? I know I have to modify /etc/services file to disable outgoing FTP sessions but how to disable incoming? Can I disable the service for particular user? The answers : 1. Comment out the ftp entry in /etc/inetd.conf and send a HUP signal to the inetd. For example, kill -HUP 1234 Richard Jackson 2. Comment out the line in /etc/inetd.conf which starts ftpd. Then " kill -1 1" and you are done. Mike Cross 3. In the file /etc/inetd.conf comment out the following line: ftp stream tcp nowait root /usr/sbin/ftpd ftpd Then restart inetd. This will stop all incoming FTPs. Stephen LaBelle 4. if you want to disable ftp for a particular user, theres a file in /etc called ftpusers simply add a user to each line to deny ftp service Michael Bucholtz 5. /etc/ftpusers will disable for listed users. Brian C. Parkhurst 6. comment out with a # the ftp entry in /etc/inetd.conf you will have to HUP inetd ( kill -HUP ) or reboot. look for tcp wrapper to control incoming access. Jeff Foster 7. Go into your /etc/inetd.conf file and comment (#) out your ftp line. Then kill -HUP your inetd service. Ryan Gray 8. Do a cut -f1 -d: /etc/passwd (which cuts the login name from the password file) >/etc/ftpusers . This file will disallow all people who have access to your system with telnet or rlogin. (I would recommend removing root from this list.) You can add logins to this list as necessary. (That where the particular users comes in.) Check the man page for more info. Freesmeyer, Mary 9. Deleting or comments out ftp in /etc/inetd.conf and /etc/services will stop incoming requests. I don't think that has any effect on outgoing requests (except you could no longer use "ftp" as an alias for port 21 in telnet commands if you do that). Jerry Berkman, UC Berkeley 10. Comment the ftp line out of your /etc/inetd.conf file will disable all incoming FTP requests. If you don't want to disable it for all users, you'll find downloading and installing tcpwrappers to handle your incoming requests very helpful. It allows you to specify users and/or groups of users in .allow and .deny files. Jim Fitzmaurice 11. You rem out the ftp line in /etc/inetd.conf. Then HUP the inet daemon. This will keep anyone from logging in using ftp. You can also use TCP Wrappers to allow/deny by ip address. Debra Williams 12. see /etc/ftpusers R U S S E L L G A U L D 13. comment out the line for ftpd in /etc/inetd.conf and the send a HUP signal to the inetd process. Mandell Degerness ---------------------------------------------------- Thank you all, Leonid Kolytchev System Programmer CUE Datawest Ltd. Phone: (604) 734-7494 ext. 5034 Email: lkolytch@cuedatawest.com www.cuedatawest.com