Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jul 2001 15:45:59 +0200
From:      Francesco Casadei <fcasadei@inwind.it>
To:        Lee Mark Mercado <mercadolee@hotmail.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: login access
Message-ID:  <20010727154559.A2641@goku.kasby>
In-Reply-To: <F33a48v4hkXiMaobomh00005aea@hotmail.com>; from mercadolee@hotmail.com on Thu, Jul 26, 2001 at 11:42:38AM -0700
References:  <F33a48v4hkXiMaobomh00005aea@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--jRHKVT23PllUwdXP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Jul 26, 2001 at 11:42:38AM -0700, Lee Mark Mercado wrote:
> how could i deny login from FTP, TELNET - allowing only POP3 access ?
>=20
> please help. thx
>=20
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>=20
>=20
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
>=20
> end of the original message

To prevent incoming login systemwide create the file /var/run/nologin as ro=
ot
(this will block ftp access also):

# echo 'Access denied.' > /var/run/nologin

To disable login access to user 'exampleusr':

# pw usermod exampleusr -s /sbin/nologin

To disable ftp access to user 'exampleusr':

# echo 'exampleusr' >> /etc/ftpusers

For more information:

man 5 nologin
man 8 nologin
man ftpd

	Francesco Casadei
--=20
You can download my public key from http://digilander.iol.it/fcasadei/
or retrieve it from a keyserver (pgpkeys.mit.edu, wwwkeys.pgp.net, ...)

Key fingerprint is: 1671 9A23 ACB4 520A E7EE  00B0 7EC3 375F 164E B17B


--jRHKVT23PllUwdXP
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE7YXCXfsM3XxZOsXsRAqJZAKCWJ0rfM7WvEqh0VelwFDp1zmbvngCgtJ1+
FQ/Imomdzs1zgrOvsHne0SQ=
=cK+U
-----END PGP SIGNATURE-----

--jRHKVT23PllUwdXP--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010727154559.A2641>