From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10952f,a3463f78500ed21b X-Google-Attributes: gid10952f,public X-Google-Thread: f8c9b,a3463f78500ed21b X-Google-Attributes: gidf8c9b,public X-Google-Thread: 1020c6,a3463f78500ed21b X-Google-Attributes: gid1020c6,public X-Google-Thread: 1164f8,a3463f78500ed21b X-Google-Attributes: gid1164f8,public X-Google-Thread: f678f,a3463f78500ed21b X-Google-Attributes: gidf678f,public X-Google-Thread: fee84,a3463f78500ed21b X-Google-Attributes: gidfee84,public From: axbergk@.hqpacaf.af.mil (Kris Axberg) Subject: Re: FTP issue Date: 1996/10/15 Message-ID: <541lce$sqb@paf-news.hqpacaf.af.mil>#1/1 X-Deja-AN: 189738957 references: <32530C5E.631F@sieweb.com> <53c2hi$lut@hsun27.chevron.com> <325D0BF8.45C088CF@ice.net> <325D602F.1DBBEFD9@ice.net> organization: PACAF CSS/SM newsgroups: comp.sys.dec,comp.unix.admin,comp.unix.osf.misc,comp.unix.osf.osf1,comp.security.unix,comp.unix.questions In article <325D602F.1DBBEFD9@ice.net>, Bryon Nicoson wrote: >This is a multi-part message in MIME format. > >--------------52E45C031267F1E9722798D4 >Content-Type: text/plain; charset=us-ascii >Content-Transfer-Encoding: 7bit > >Bryon Nicoson wrote: > ^cut out all of the previous message and then > >Attached are instructions for installing anonymous ftp on dunix. I >received these from DEC Support today. > >--------------52E45C031267F1E9722798D4 >Content-Type: text/plain; charset=us-ascii >Content-Transfer-Encoding: 7bit >Content-Disposition: inline; filename="temp" > >---------------------------------------------------------------------------- > Instructions for adding anonymous ftp to OSF. >--------------------------------------------------------------------------- > >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 /usr. The default shell is fine, you will be > modifying it. > > The new passwd should be set to "anonymous". > > 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:/usr/ftp:/bin/csh > > The encoded passwd and uid will most likey be different at your > site. > > Next, edit /etc/passwd and modify the new users login shell for > /usr/ucb/ftp. The changed entry will look like: > > ftp:mEFyvztssXGZk:269:79:anonymous ftp:/usr/ftp:/usr/ucb/ftp > >Step 2: > Now that you have created the new ftp account, you will need > to setup some new directories in it. > > 1) cd /usr/ftp > 2) mkdir etc pub (if bin does not exist, the create it) > 3) cp /sbin/ls /usr/ftp/bin > 4) cp /etc/passwd /usr/ftp/etc > 5) cp /etc/group /usr/ftp/etc > 6) cp /etc/svc.conf /usr/ftp/etc DEC is telling you to copy your original system passwd, group, and svcs file to the ftp environment? WOW!!! Please do not do this! There is a good Anon FTP FAQ available on the net, as well as a Wuftpd FAQ and software available. This is a much more secure anon ftp pkg than the instructions above. Especially from the looks of your passwd file.....no shadow file? Get the FAQ...it is at ftp.iss.net. or just do a search for anon ftp Kris > 7) chown -R ftp * > 8) chown ftp /usr/ftp > 9) chmod -w /usr/ftp > 10) chmod 111 /usr/ftp/bin/ls > 11) chmod -w /usr/ftp/bin > 12) chmod 444 /usr/ftp/etc > 13) chmod -w /usr/ftp/etc > 14) chmod 777 /usr/ftp/pub (this will enable writing) > >Step 3: > This concludes the anonymous ftp setup. Any files that you wish the > public to read will go in /usr/ftp/pub. > >Step 4: > > Testing: > > ftp to the host that you just created the anonymous ftp account: > > In my example, my hosts is called twonix. > > csh>ftp twonix > Connected to nodename.cxo.dec.com. > 220 nodename.cxo.dec.com FTP server (Version 4.1 Sun Mar 25 18:16:27 EST > 1990) ready. > Name (nodename::username): anonymous > Password:anonymous > 230 Guest login ok, access restrictions apply. > ftp>cd pub > ftp> > > > >Please contact the Customer Support Center if you have any questions on this >procedure or need further assistance in any way. > >Thankyou. > > > >--------------52E45C031267F1E9722798D4-- >