?
Solved

anonymous ftp server

Posted on 2001-08-24
9
Medium Priority
?
425 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
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 

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 200 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

WordPress Tutorial 3: Plugins, Themes, and Widgets

The three most common changes you will make to your website involve the look (themes), the functionality (plugins), and modular elements (widgets).

In this article we will briefly define each again, and give you directions on how to install them.

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

770 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