From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Antonio Prado Newsgroups: gmane.os.tru64.managers Subject: FTP SERVER - Build UP Procedure Date: Mon, 03 Mar 2003 07:33:43 -0800 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <8D7294404BC7174C89A8A6C2A44B141ADD41A4@TDLMVW_EX.Tidalsoft.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: main.gmane.org 1046705677 12295 80.91.224.249 (3 Mar 2003 15:34:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 3 Mar 2003 15:34:37 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.22.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 18prwo-00037R-00 for ; Mon, 03 Mar 2003 16:33:46 +0100 Original-Received: (qmail 17087 invoked by uid 5); 3 Mar 2003 15:34:01 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 17070 invoked by uid 49493); 3 Mar 2003 15:34:00 -0000 Original-Received: from antonio.prado@tidalsoftware.com by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(-0.5/5.0):. Processed in 0.5531 secs); 03 Mar 2003 15:34:00 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 3 Mar 2003 15:34:00 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #30669) with ESMTP id <0HB600D2YJ8CS5@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 03 Mar 2003 10:33:59 -0500 (EST) Original-Received: from TDLMVW_EX.Tidalsoft.com (64-186-168-126-cust.nextweb.net [64.186.168.126]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #30669) with ESMTP id <0HB60006RJ8ALR@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 03 Mar 2003 10:33:46 -0500 (EST) Original-Received: by TDLMVW_EX.Tidalsoft.com with Internet Mail Service (5.5.2655.55) id ; Mon, 03 Mar 2003 07:33:45 -0800 Content-return: allowed Original-To: "'tru64-unix-managers@ornl.gov'" X-Mailer: Internet Mail Service (5.5.2655.55) Xref: main.gmane.org gmane.os.tru64.managers:3494 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:3494 HI Managers, sorry for the late response (Friday, as soon as I got my ftp server working I started my weekend); to those who requested the procedure here it goes: I just want to thank Robert Binkley for these notes: (copy and paste from the original email). //start howto document ---------------------------------------------------------------------------- Instructions for configuring anonymous ftp on Digital UNIX --------------------------------------------------------------------------- Step 1: Use the "adduser" utility to add a new user called ftp. The new user, ftp, should belong to the group ftp. When prompted for the group that ftp should be in, answer ftp. Adduser will then prompt you if it should create the new group, answer "yes". The new user, ftp, should have a home directory of /var. The default shell is fine, you will be modifying it. The password can be anything you like, since you will be modifying it also. After the adduser script has run, the newly created account has an entry in the /etc/passwd file such as: ftp:mEFyvztssXGZk:269:79:anonymous ftp:/var/ftp:/bin/csh The encoded passwd and uid will most likely be different at your site. Next, use 'vipw' to edit /etc/passwd and modify the passwd entry. You should delete the encrypted passwd and replace it with "*". Also, replace the shell with /bin/false. The modified passwd entry will look like: ftp:*:269:79:anonymous ftp:/var/ftp:/bin/false Step 2: Now that you have created the new ftp account, you will need to setup some new directories in it. # cd /var/ftp # mkdir etc pub (if bin does not exist, create it also) # cp /sbin/ls /var/ftp/bin # cp /etc/passwd /var/ftp/etc # cp /etc/group /var/ftp/etc # cp /etc/svc.conf /var/ftp/etc # chown -R ftp * # mkdir /var/ftp/etc/sia # cp /etc/sia/* /var/ftp/etc/sia # chown ftp /var/ftp # chmod -w /var/ftp # chmod 111 /var/ftp/bin/ls # chmod -w /var/ftp/bin # chmod 555 /var/ftp/etc # chmod 555 /var/ftp/pub If adduser put default .login, .profile, and .cshrc files in the ftp directory, delete them: # rm .login .profile .cshrc Step 3: Next, you should edit /var/ftp/etc/passwd to remove any unnecessary entries, as this file will be accessible by anonymous users. The /var/ftp/etc/passwd file should have only root and ftp, with no encrypted passwords. Here is a sample /var/ftp/etc/passwd file: root:*:0:1:system PRIVILEGED account:/:/bin/false ftp:*:269:79:anonymous ftp:/var/ftp:/bin/false Also, edit /var/ftp/etc/group, leaving only the following: system:*:0:root ftp:*:30:ftp Step 4: This concludes the anonymous ftp setup. Any files that you wish the public to read will go in /usr/ftp/pub. Anonymous users can log in with a username of either 'anonymous' or 'ftp'. Please contact the Customer Support Center if you have any questions on this procedure or need further assistance in any way. Regards, Compaq UNIX Network Support Team //end howto Peace. ./antonio/. Antonio Elder-Prado Tidal Software, Inc. Sr. Unix Systems Administrator (650) 475 4628 antonio.prado@tidalsoft.com Real Solutions. Real Impact. Real Time.