| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| To: | cygwin AT cygwin DOT com |
| From: | =?ISO-8859-1?Q?Ren=E9_Berber?= <rberber AT prodigy DOT net DOT mx> |
| Subject: | Re: How i can subcribe to this list!!! |
| Date: | Wed, 26 Oct 2005 18:01:57 -0500 |
| Lines: | 35 |
| Message-ID: | <djp1t6$mik$1@sea.gmane.org> |
| References: | <435FF5C8 DOT 6040005 AT gmail DOT com> |
| Mime-Version: | 1.0 |
| User-Agent: | Mozilla Thunderbird 1.0.2 (Windows/20050317) |
| In-Reply-To: | <435FF5C8.6040005@gmail.com> |
| OpenPGP: | url=ldap://keyserver.pgp.com |
| X-IsSubscribed: | yes |
Mr. Yusdaniel Rodriguez Espinosa wrote:
> hello how to subcribe to this list, any one speack spanish?
>=20
> como puedo evitar que mas de un usuario se conecte a mi servidor SSH
> usando la misma cuenta???
No se puede evitar usando la configuraci=F3n de sshd, pero se puede evitar
agreg=E1ndole una prueba a /etc/profile o .profile o .bashrc, por ejemplo a=
lgo como:
USERS=3D`who | cut -d " " -f 1 | uniq | wc -l`
if [ $USERS -gt 1 ]; then
echo "No more logins allowed (No se permiten mas usuarios)"
sleep 5
fi
otra forma usada para usuarios espec=EDficos:
LOGNAME=3D`who am i | awk '{print $1}'`
...
if [ $LOGNAME =3D "xyz" ]; then
echo "Not authorized to login."
exec sleep 5
fi
...
Yo solamente he probado esta segunda opci=F3n, esto quiere decir que la pri=
mera
opci=F3n tal vez no funcione.
Espero que esta informaci=F3n sirva de algo.
--=20
Ren=E9 Berber
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |