Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting up FTP server

Status
Not open for further replies.

cesarcheng

Technical User
Mar 22, 2001
4
US
Excuse, but I'm a beginner and I can't seem to get my FTP server to work. It is on Solaris 7. I created a ftp user with the following entry in /etc/passwd
ftp:*:500:500:Anonymous FTP user:/home/ftp:/bin/true

I created /home/ftp with "drwxr-xr-x root sys" permissions..
I created etc, bin, pub under /home/ftp

I added the ls command with "---x--x--x root sys" permissions to the bin directory..

I added a dummy passwd and group file in etc and placed a bunch of files under the pub directory.

I can open an FTP session with the FTP server from another machine, but I can't see any files. I can upload to the pub directory but I can't see the files. I have verified that the files have been uploaded to the pub directory...

I have even went as far as granting all the files and directories under the /home rwx access.

Any ideas will be helpful..

 
Hi,

If I am not mistaken, if you man ftpd, there are instructions and a script that will create the ftp serveryou would like. I have done this a lot. Just man ftpd > ftp.sh and delete what is non-essential leaving just the script. chmod +x the file then run it. It will create the anonymous ftp server home directory under /export/ftp

Hope this helps,

Phil
 
Try moving your home directory somewhere other than /home. /home is generally not real, this is used by the auto mounter (/etc/auto_home), you must use the auto mounter to mount a /home user. The users real home directory must be somewhere else like /export/home and you also need to add the correct entry to /etc/auto_home.

There some security issues as well with the Solaris default ftpd. It basically does not provide the necessary security you may need, try installing wu-ftpd for Solaris.

 
To follow up on what pbouchie said, I would STRONGLY suggest using a different ftpd than the Solaris default. wu-ftpd is an excellent choice. After installing a more secure ftp daemon, you may want to consider setting up the users in a chroot environment. After I had one of my servers hacked using the default Solaris daemon, I've been running all my servers this way and have not had a problem since.

This site has an excellent walk through on how to set up WU-FTPD:




Yahoo Messenger: coily2
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top