Solved

FTP from UNIX Server

Posted on 1998-07-13
2
322 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
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now