From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653723422145.tru64-unix-managers.marc@archive.invalid> From: "Smith, Mike R." Date: Thu, 31 Jan 2002 20:01:37 +0000 To: tru64-unix-managers Subject: Summary: How to lock up an ftp account X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653723422145 MIME-Version: 1 Content-Type: multipart/mixed; boundary="------_=_NextPart_001_01C1AA92.1785E735" This is a multi-part message in MIME format. ------_=_NextPart_001_01C1AA92.1785E735 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Firstly, thanks to all who responed. I got so many answers I felt like a Florida ballot counter. (American joke). I got many answers some easy to implement, others more involved. I went with one of the easy ones for immediate effect but I would like to look at some of the more complex ones. =20 Lawrie Smith, Chris Bryant, Robert Sloane and Charles Ballowe gave similar simple answers along the following lines. set the user shell to /bin/false in the /etc/passwd file and make sure /bin/false is in the /etc/shells file also put /usr/bin/ftp in the /etc/shells file and then make /usr/bin/ftp the shell for that user account These were extremely simple and as this is a one time deal while we determine why the customer is unable to use the secure ftp from behind the firewall. One other simple one from Darryl Cook was to look into the ftpaccess man page and check the restricted uid section. He said this appears to restrict a uid to its home directory when that uid is added to the restricted uid section. Dennis Peacock suggested a user account with a shell set to /bin/false and a locked passwd. This looks pretty straightforward too. =20 Others suggested wu_ftp, ncftpd, ftp servers, anonymous ftp, profitpd. Sorry I did not list all names but I had quite a few replies. =20 On Thu, 31 Jan 2002, Smith, Mike R. wrote: > I have a request to set up an account for a customer. They will ftp > some files in on a regular basis but they do not need to go anywhere > else on the system. I found notes on the Rsh shell which seemed like > what I wanted except it does not allow ftp access. Can anyone point me > to the right way to do this. ------_=_NextPart_001_01C1AA92.1785E735 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Firstly, = thanks to all=20 who responed.  I got so many answers I felt like a Florida ballot=20 counter.  (American joke).  I got many answers some = easy to=20 implement, others more involved.  I went with one of the easy ones = for=20 immediate effect but I would like to look at some of the more complex=20 ones. 

Lawrie = Smith, Chris=20 Bryant, Robert Sloane and Charles Ballowe gave similar simple answers = along the=20 following lines.

set the = user shell to=20 /bin/false in the /etc/passwd file and make sure /bin/false is in the=20 /etc/shells file

also put = /usr/bin/ftp=20 in the /etc/shells file and then make /usr/bin/ftp the shell for that = user=20 account

These = were extremely=20 simple and as this is a one time deal while we determine why the = customer is=20 unable to use the secure ftp from behind the firewall.

One = other simple one=20 from Darryl Cook was to look into the ftpaccess man page and check the=20 restricted uid section.  He said this appears to restrict a uid to = its home=20 directory when that uid is added to the restricted uid=20 section.

Dennis = Peacock=20 suggested a user account with a shell set to /bin/false and a locked=20 passwd.  This looks pretty straightforward too.

 

Others = suggested=20 wu_ftp, ncftpd, ftp servers, anonymous ftp, profitpd. Sorry I did = not list=20 all names but I had quite a few replies.

 

On Thu, 31 Jan 2002, Smith, Mike R. = wrote:

> I have a request to set up an = account for a=20 customer. They will ftp

> some files in on a regular basis but = they do not=20 need to go anywhere

> else on the system. I found notes on = the Rsh=20 shell which seemed like

> what I wanted except it does not = allow ftp=20 access. Can anyone point me

> to the right way to do=20 this.

------_=_NextPart_001_01C1AA92.1785E735--