Solved

FTP from UNIX Server

Posted on 1998-07-13
2
334 Views
Last Modified: 2010-04-21
I have my Virtual Server on a Unix computer. I put a file in my public_ftp directory thinking that if I Linked to it from an HTML page via <A HREF="ftp://domain/public_ftp/filename">Download</A> then visitors could click on the hyperlink and the file would download to them.

It doesn't. A msg box comes up saying that login request was denied. I asked the experts on the HTML page and they said I had to change permissions on the file. So I telnet'ed in to the directory and changed the users permissions to -rwx- and I still got the same msg box.
What am I doing wrong?
0
Comment
Question by:timothy1
[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
2 Comments
 
LVL 2

Expert Comment

by:mlev
ID: 2008764
Is your FTP server configured to allow anonymous FTP access at all? If not, it should be.
0
 
LVL 1

Accepted Solution

by:
albberat earned 50 total points
ID: 2008765

 If you have a virtual server first check with the service provider that that ftp server is for anonymous access or just for your uploads. Usually if the anonymous access is denied you will not see a dialog box(message box) alerting you that the server has denied access, instead you should see it on your browser. Well in FTP permissions(files) should be 644(rw-r--r-- you get the read/write access while the others get th read one) and for subdirectories{directories} 755(drwx-r-xr-x chmod required x permission in order to change to the desired directory) and this is probably what you need so far.
You should contact the provider to let the anonymous access at your server in the way that the others can download files.
The anonymous access in Unix(depends on flavor of Unix you have) is however similar: file /etc/ftpaccess should have the following lines:

class all   real, guest, anonymous *

email  yourlogin@yourserver

chmod       no    guest, anonymous
delete      no    guest, anonymous
overwrite   no    guest, anonymous
rename      no    guest, anonymous


 This grants you read/write access and others anonymous acess that automatically can download things from their browsers.
 What I wrote above is only for Unix. For WindowsNT, VM, Macintosh are different procedures. If you have these I believe there is not any problem for them to download files via their browsers. However you should contact your provider if they have may have done any restrictions(TCP Wrappers etc.).

 Good Luck ...
 

0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

751 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