This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How i can subcribe to this list!!!


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]