Solved

anonymous ftp server

Posted on 2001-08-24
9
412 Views
Last Modified: 2010-03-18
hello there,

i'm running Mandrake 7.2 and have just set up an anonymous ftp server.

when i tried to test if it works by "ftp localhost", i got "ftp: connect: Connection refused". I followed exactly a classic UNIX book, so i have no idea what went wrong...

your comments will be very much appreciated!

ken
(more points will be offered depends on how well you answer this question. Thanks a lot!)
0
Comment
Question by:ken021600
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 1

Expert Comment

by:dkloes
ID: 6425076
Are there any ftp related messages in /var/log/messages?  Otherwise, we will need more information on your setup since we don't know what your reference says for ftp setup.  I am assuming you have network connectivity (i.e. ping localhost works), that the ftp server daemon has been configured, and the ftp home directory exists.  Any other information you can provide would be helpful.
0
 

Author Comment

by:ken021600
ID: 6425834
Thank you for your reply. Actually I've figured it out. So now I can run it properly.
So can you ask another question which has something to do with anonymous ftp server? The 50 points will be yours if you can help me out:

why do I have to set /home/ftp directory to be owned by root and it should not be writeable by anyone? and why should the "ls" command in the /home/ftp/bin have permission 111 only?

thanks a lot,
ken
0
 
LVL 1

Expert Comment

by:dkloes
ID: 6426083
ls is owned by root with permissions 111 (noread, nowrite, execute).  Other commands in /home/ftp/bin should have the same permissions as well.  This allows users to execute the commands but not be able to read or write them as a security measure.

The /home/ftp directory is the "root" directory for an anonymous user.  This prevents anonymous users from going anywhere on the system except that directory.  It is owned by root with the same group as ftp.  The owner permissions are for root and group permissions are for the anonymous users.   The permissions should be 555 (read, nowrite, execute).
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:ken021600
ID: 6427335
thanks for your reply.

"Other commands in /home/ftp/bin should have the same permissions as well.  This allows users to execute the commands but not be able to read or write them as a security measure."

but files like "/home/ftp/bin/ls" are unreadable! what damage can hackers do if i set that file to have 555 permission??
0
 

Author Comment

by:ken021600
ID: 6435831
hellooo there,

can you answer my question?

thanks
ken
0
 
LVL 1

Expert Comment

by:dkloes
ID: 6441616
Using the principle of least privilege, why would you want to give someone more access then they need?  Unless there is a reason why you would want to give someone read permission on an executable file, don't take any chances.  
0
 
LVL 1

Accepted Solution

by:
dkloes earned 50 total points
ID: 6441737
In addition to being able to read a file, read permission also gives permission to copy it.  All resources that I checked recommend 111 permissions on ftp bin files.  Although not expressly stated, it just makes sense to not grant permissions that are not needed.
0
 

Author Comment

by:ken021600
ID: 6447472
ok, i'll give you an A and 50 points.

thanks,
ken
0
 
LVL 1

Expert Comment

by:dkloes
ID: 6448233
Thanx.
BTW:  You would be surprised what I have learned over the years by looking at the ASCII readable portions of an executable file.
0

Featured Post

Simple, centralized multimedia control

Watch and learn to see how ATEN provided an easy and effective way for three jointly-owned pubs to control the 60 televisions located across their three venues utilizing the ATEN Control System, Modular Matrix Switch and HDBaseT extenders.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question