How i can subcribe to this list!!!

René Berber rberber@prodigy.net.mx
Wed Oct 26 23:04:00 GMT 2005


Mr. Yusdaniel Rodriguez Espinosa wrote:

> hello how to subcribe to this list, any one speack spanish?
> 
> 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ón de sshd, pero se puede evitar
agregándole una prueba a /etc/profile o .profile o .bashrc, por ejemplo algo como:

  USERS=`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íficos:

  LOGNAME=`who am i | awk '{print $1}'`
...
   if [ $LOGNAME = "xyz" ]; then
      echo "Not authorized to login."
      exec sleep 5
   fi
...

Yo solamente he probado esta segunda opción, esto quiere decir que la primera
opción tal vez no funcione.

Espero que esta información sirva de algo.
-- 
René 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/



More information about the Cygwin mailing list