1834625 Members
3158 Online
110069 Solutions
New Discussion

Re: ftp question

 
SOLVED
Go to solution
Anthony khan
Frequent Advisor

ftp question

Hi,

How can i trun off ftp out from my HP box only allow users to ftp in to the box.


Thanks
4 REPLIES 4
John Poff
Honored Contributor
Solution

Re: ftp question

Hi,

One way is to set the permissions on /usr/bin/ftp so that only root can run it.

chmod 500 /usr/bin/ftp

JP
MANOJ SRIVASTAVA
Honored Contributor

Re: ftp question

edit /etc/ftpusers and include the users which you dont want to ftp into the machine



Manoj Srivastava
Ray Brewer
Valued Contributor

Re: ftp question

The only thing I can think to do is change the permissions as suggested. Adding users names in the ftpusers file on your HP Box will only stop those users listed from being able to ftp to your HP box. Keep in mind changing the permissions on the ftp executable will not stop someone from copying a new ftp executable to their home directory and using it instead.

Ray
Sean OB_1
Honored Contributor

Re: ftp question

Anthony,

As others have stated, you can take away execute permissions from ftp so that only root can run it.

Sean