Setting up the standard ftp server
I've read through the man pages and a bunch of archived posts on here but still can't get the ftp service to work. I'm trying to get anonymous ftp to work. I'm basically scanning something from a printer and shooting it to Solaris through ftp. I'm not sure how to start the ftp service, see if it is running, and then how to configure the ftp files in /etc/ftpd to allow anonymous ftp. Any help?
# 4
That helped a lot mAbrante, thank you. Now I'm having a permission problem. By default, after I run ftpconfig /ftp, what folder is going to be used for uploads? I'm trying to send data to it but I'm having permission issues. What is to be done after ftpconfig /ftp?
Maybe what I need is a "windows shared folder" type directory. I've set the permissions on an /ftp/upload folder as 777, changed the file owner to anonymous ftp, and changed the file group to other. How can I set a folder or directory up to be written to from another computer?
Message was edited by:
jblanton0004
# 5
So I've found out that altering the etc/passwd file affects what I'm trying to do. Currently I have this in the passwd file:
ftp:x:100:1:Anonymous FTP:/ftp:/true
I altered the line by putting this (I found this on the net here http://sysunconfig.net/unixtips/anon_ftp.txt)
ftp:x:30000:30000:Anonymous FTP:/export/ftp:/bin/false
My folder name is /ftp, so i deleted /export and replaced it with /ftp
That line broke my connection as a whole. So the first line will get me connected to the Solaris box, but I can't write data to it. I have the permissions on /ftp and subfolders set to 777. Why can't I write to the /ftp folder?
# 6
Just create a directory called /ftp/incoming , chmod it as above and then edit the file:
/etc/ftpd/ftpaccess
and uncomment the line looking like this:
# uploadclass=anonusers*/incoming yes ftpadm ftpadm 0440 nodirs
Then it should work.
You could of course allow people to write to your /ftp root as well, but that seems a bit less secure.
7/m.