tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: ftp-only-account - preventing telnet
@ 2000-06-20  9:54 Werner Rost
  0 siblings, 0 replies; only message in thread
From: Werner Rost @ 2000-06-20  9:54 UTC (permalink / raw)
  To: tru64-unix-managers

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2992 bytes --]


Hi all,

many thanks for your help. This list is very helpful. Below my original
question.

There are 3 ways you mentioned.

----- first solution -------

Kai Grunau [kgrunau@ifm.uni-kiel.de]
root@Uprava.ev.co.yu.mannesmann.de  im Auftrag von Nikola Milutinovic
[Nikola.Milutinovic@ev.co.yu]
David LaPorte [david_laporte@harvard.edu]
Declan Lennon [declan.lennon@onebox.com]

You should be able to give the FTP-only user a bogus shell (like
/bin/false) and add it to /etc/shells.  He/she will not be able to login via
telnet, but can via FTP.

This works fine.

Declan Lennon [declan.lennon@onebox.com] suggests:

Also, refer to man ftpd, which contains guidelines on how you should
configure the ftp account for anonymous access.


----- second solution -------

Lucio Chiappetti [lucio@ifctr.mi.cnr.it]:

have such a "public access" password protected account. Just define a
normal account using /bin/csh as shell.

In the home directory place a .login file like the following (and no .cshrc
file) :

stty susp ^-
onintr -
logout

The purpose of the three lines are : to replace the default suspend
interrupt
character (control-Z) with one nobody will usually expect (so that a telnet
user can't branch to the shell). To trap any other interrupt, And of course
to
log the user out.

This works fine too.



--- third solution -----------------

makino@hpc.co.jp>


This may not be 100% accurate, but should be right.

1) Edit /etc/passwd
Change ftp only user's group and shell
Say 21 for group, and shell as /usr/bin/passwd

If you do above, and user attempt to telnet, only thing they can do, is to
change their passwd.

2) Edit /etc/shells
add /usr/bin/passwd

3) Edit /etc/group
add ftponly:*:21: and ftponly group

4) Edit /etc/ftpaccess
set
guestgroup ftponly

5) Copy following files

/users/ftp/bin/*
/users/ftp/etc/*
/users/ftp/lib/*

all contents to

/users/ftpuser1/bin
/users/ftpuser1/etc
/users/ftpuser1/lib

You should be ready to start service then,

good luck,


I didn't try that solution.


regards
Werner Rost
------------------------------------------------------
Werner Rost, Mannesmann-Boge GmbH
Abt:    KIR
Tel:    0228/3825-420
Fax:    0228/3825-398
Email:  werner.rost@boge.mannesmann.de
Friesdorfer Str. 175, 53175 Bonn - Bad Godesberg
------------------------------------------------------



-----Urspr�ngliche Nachricht-----
Von:	Werner Rost [mailto:werner.rost@boge.mannesmann.de]
Gesendet am:	Dienstag, 20. Juni 2000 09:36
An:	ALPHA-System-Managers (E-Mail)
Betreff:	ftp-only-account - preventing telnet

Hi all,

I need an account which allows connections via ftp but prevents logging on
via telnet. How to do?

Environment:  Alpha 1000,  DU 3.2F

regards
Werner Rost
------------------------------------------------------
Werner Rost, Mannesmann-Boge GmbH
Abt:    KIR
Tel:    0228/3825-420
Fax:    0228/3825-398
Email:  werner.rost@boge.mannesmann.de
Friesdorfer Str. 175, 53175 Bonn - Bad Godesberg
------------------------------------------------------

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-06-20  9:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-06-20  9:54 SUMMARY: ftp-only-account - preventing telnet Werner Rost

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox