Discussion Locked

Set up FTP on Sparc10 UNIX Station

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have a Sparc10 UNIX workstation that I need to be able to FTP. The daemon is running, but the service (or users) are not configured. How do I configure the service and set up users, with permissions?

5 replies

by stillatit

The setup information is contained in the man file for ftpd. man ftpd

In general, users are defined as normal system users, and default to their home directories. There are system files which modify this behavior. If you have done nothing except enable ftpd in /etc/inetd.conf, all your existing users should be able to use ftp.

Good luck.

by shanghai sam

My system doesn't have a man page for ftpd. The daemaon, however, is running. I just can't ftp to it. I have verified that this box is on the same network (& subnet) as the box that will FTP to it. It just won't open the session.

by cpfeiffe

Generally speaking all users should be able to use FTP but check the file /etc/ftpusers. Any user account that is in this file will not be able to ftp to the workstation. If the daemon is running and the port is not commented out in /etc/services you should be OK. If you still can't gain access, perhaps something else is wrong. First make sure the user account can login directly at the console or with rlogin/telnet.

As for permissions and users, first I would add the line umask 077 to /etc/default/ftpd (you may need to create the file if it isn't already there). This says that when a user creates a file via ftp it assigns read, write and execute permission to only the owner of the file and no one else can touch it.

Next I would create the user accounts through your normal Solaris methods (editing the files, admintool, useradd, whichever you are more comfortable with). Give each user their own home directory. Change the permissions on the home directory to 700 (rwx------). Again this only allows the user to access this directory. Give the user(s) a general group id (create a new one). This ensures they won't have group access to system files.

Finally, you may want to set up anonymous ftp. If you do this isvery tricky in Solaris as many shared libraries are needed. The step by step would be too long for this answer, but if you need it just email my alias.

I hope this is what you are looking for.

by cwilly66

Thanks. As you can tell, I have a lot to learn about UNIX. This has helped me greatly, though.

This discussion is closed to new replies.