ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Russu V.F." <ruwa@psrp.te.ru>
To: alt <mandrake-russian@altlinux.ru>
Subject: Re: [mdk-re] user logins
Date: Mon Feb 11 07:56:15 2002
Message-ID: <16235642355.20020211093746@psrp.te.ru> (raw)
In-Reply-To: <20020208135333.4f5a78f5.peet@infosite.ru>

Hello mandrake-russian-admin,

Friday, February 08, 2002, 3:53:33 PM, you wrote:

> Hello!

> Совсем дурацкий вопрос, но не знаю даже, куда смотреть. Как
> можно разрешить юзеру открывать только одну сессию
> одновременно? Скажем, залогинился он по ssh, и пока не выйдет,
> второй раз не зайти?

Это через pam рульно делается.
В /etc/pam.d/sshd добавляется строка
session    required     /lib/security/pam_limits.so

В /etc/security/limits.conf добавляем строку
UserVasya      -       maxlogins       1


-- 
 ОП ТюменьЭнергоСпецРемонт
 Системный администратор
 Руссу В.Ф.                  e-mail: ruwa@psrp.te.ru
                             phone: (3462)76-40-56





  parent reply	other threads:[~2002-02-11  7:56 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-08 13:49 Peter V. Saveliev
2002-02-08 14:35 ` Sergei
2002-02-08 14:42   ` Peter V. Saveliev
2002-02-08 17:12   ` Peter V. Saveliev
2002-02-09  0:13     ` Sergei
2002-02-09  2:14       ` Peter V. Saveliev
2002-02-09  7:20         ` Sergei
2002-02-09 15:27           ` Alexey Voinov
2002-02-11  7:56     ` Re[2]: " Russu V.F.
2002-02-11  7:56 ` Russu V.F. [this message]
2002-02-11 11:32   ` Peter V.Saveliev
2002-02-11 13:38     ` Re[2]: " Russu V.F.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=16235642355.20020211093746@psrp.te.ru \
    --to=ruwa@psrp.te.ru \
    --cc=mandrake-russian@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git