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?

[407 byte] By [jblanton0004] at [2007-11-26 9:37:58]
# 1
There is a shell script in the ftpd man page you can cut and paste. It does pretty much everything
timevans at 2007-7-7 0:32:17 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2
I'm kind of a newbie to Solaris, but I don't see anything in there I could use or figure out how to use. Any other suggestions?
jblanton0004 at 2007-7-7 0:32:17 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 3
In Solaris 10 they have updated the manpage. Try "ftpconfig" instead.usage:ftpconfig <a directory which the user will see> 7/M.
mAbrante at 2007-7-7 0:32:17 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 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

jblanton0004 at 2007-7-7 0:32:17 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 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?

jblanton0004 at 2007-7-7 0:32:17 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 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.

mAbrante at 2007-7-7 0:32:17 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 7
That was it! Thanks a lot. I wasn't aware of that config file.
jblanton0004 at 2007-7-7 0:32:17 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 8
me neither ;) i just found a good manpage.. 7/M.
mAbrante at 2007-7-7 0:32:17 > top of Java-index,Solaris Operating System,Solaris 10 Features...