Re: user selection for ssh connections

From: Phil Park (philp@csds.uidaho.edu)
Date: 11/29/01


Date: Wed, 28 Nov 2001 21:11:44 -0800 (PST)
From: Phil Park <philp@csds.uidaho.edu>
To: "james d. butler" <jamesDB@rocketmail.com>
Subject: Re: user selection for ssh connections
Message-ID: <Pine.LNX.4.30.0111282106480.19718-100000@megatron.csds.uidaho.edu>


-----BEGIN PGP SIGNED MESSAGE-----

By excluding them from SSH, I assume that you do not want them to have shell access.

How about changing their shells? That's what we do when we crack a password with John the Ripper. The disabled shell will give an error message, kick them out, but still give them web/ftp/mail access.

#!/bin/sh

echo "WARNING! ACCOUNT DISABLED!"
echo ""
echo "Your account has been cracked, and the password "
echo "has not been changed by the requested deadline. Please "
echo "see the System Administrators "
echo "to get your account re-enabled."
/bin/sleep 10
exit 1

- --
phil park
system administrator
philp@uidaho.edu
208.885.5562 (phone)
208.885.7099 (fax)
419.730.3247 (e-fax)
http://www.csds.uidaho.edu

On Tue, 27 Nov 2001, james d. butler wrote:

> Is it possible to exclude individual users from connecting via
> SSH? I'd like to have a list of users that are allowed to
> connect and a list of those that are not. Can it be done? If
> so, how?
>
> TIA - james
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
> http://geocities.yahoo.com/ps/info1
>

- - -----BEGIN PGP PUBLIC KEY BLOCK-----
Version: PGP 6.5.8

mQENAzllGJoAAAEIAJy3lkt/ppE5RSnc5scbwgBIDJIurUPVCtuaucL/OjtSgtlp
QM1jKAHSBug+ZcZe8GJwd7mK1xS/UPHUQ7CQn8eN9uTOL0ydxkZXlGIbUVLhuKG9
m1tmCNAZ3K7atZJjOujJgyp9XSl++y1OX1jbIGK90vW/HyDXZWb6l2U68I9fXCsK
+Qk1EFvzebySyt2cmfXsshh2uO/aC6is5557zSzad4SBq+RhLvOYo1YwHUE5nd4h
dwPZAn62+WMaQJ06ltKmWcv/TYCZBi61iv4W6Dj9h1IB9uwob51+1ZGsD96/P+Qz
CROxV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
KN5ZW5ik49FOB8bCQv87CbFJ6ti+y4g5UOG7DAAjKwDwcr+20hBKyp758qkNGeOH
ty7SlvL46OFE8DW5B/v91pDna1rlYDPKLyarlxODD6o3jMtt9vXyaxl7sm+i/hEA
DUrx9vrw6Ni9h9lqmRi3sMHw6819bWU4L5OwPSshyX2OZSD0+t1fNL+mIB/++q25
PuZPsRFubETo42qCOvuT075DaOlRf5Ff1kJZf44iEnKeiA5bDz5L2A==
=TNsF
-----END PGP SIGNATURE-----



Relevant Pages

  • Re: WTF? Printing unicode strings
    ... variable to Linux and python will know that your terminal is utf-8. ... ssh clients don't transfer it between machines. ... What version of python and what shell do you run? ... ron@www01:~$ echo $SHELL ...
    (comp.lang.python)
  • Re: WTF? Printing unicode strings
    ... variable to Linux and python will know that your terminal is utf-8. ... ssh clients don't transfer it between machines. ... What version of python and what shell do you run? ... ron@www01:~$ echo $SHELL ...
    (comp.lang.python)
  • Re: SFTP is not working
    ... When I try to use sftp or scp2, I get a message like this: ... sftp and scp2 both actually work by running ssh in a subprocess, ... The reason the shell startup files are relevant at all, ...
    (comp.security.ssh)
  • Re: Did you hack into my UNIX server Bible Bob?
    ... But that's not a shell question. ... >> OSX users, should I be using ssh instead of telnet for security? ... OSX as a built in firewall tab. ...
    (comp.unix.shell)
  • Re: using ssh to run remote commands? [ssh -T, scp/ssh flags]
    ... I use SSH to forward connections between an intranet server at home and my ... To do this, the user on the remote machine need not have a shell, either ... start a shell on the remote host, ... you can have ssh run a command instead of an interactive shell by ...
    (FreeBSD-Security)