ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Borovoy M." <massa_lists@pisem.net>
To: community@altlinux.ru
Subject: Re: [Comm] Squid auth
Date: Thu, 30 Oct 2003 17:24:31 +0300
Message-ID: <3FA11F1F.3090109@pisem.net> (raw)
In-Reply-To: <200310291246.44567.shawkat@samitc.uzsci.net>

Shawkat Nizamov пишет:

>>Пишите! Лично мне - интересно.
>>
> 
> 
> Ну в общем потребовалось авторизовать пользователей на сквиде. 
> Пользователи системные.  Для этого лучше всего использовать pam_auth. 
> ncsa_auth - не годится - он по /etc/shadow работает - а он у нас пустой ;-)
> 
> (Если делать по ncsa_auth, то ему можно подсунуть файл паролей, который в свою 
> очередь легко генерируется htpasswd из состава апача.)
> 
> Первый трабл - pam_auth должен быть suid. Иначе авторизация не пройдет. 
> 
> Второй трабл - нету файла /etc/pam.d/squid
> 
> #%PAM-1.0
> auth    required        /lib/security/pam_stack.so service=system-auth
> account required        /lib/security/pam_stack.so service=system-auth
> 
> Дальше идет все по накатанной - настройка сквида на авторизацию 
> 
> auth_param basic program /usr/lib/squid/pam_auth
> 
> заведение пользователей - 
> 
> acl users proxy_auth REQUIRED
> 
> и соответственно 
> 
> http_access allow users
> 
> Еще можно сквид настроить чтоб один пользователь мог только с одного любого 
> компа в интернет выйти - но как это сделать - до меня еще не дошло %*) 
Попробуй прописать в /etc/pam.d/squid строку
   session    required     pam_limits.so
и в /etc/security/limits.conf file строку
   @squidusers        -       maxlogins       1
где squidusers - группа, в которую включены пользователи squid.

-- 
С уважением, Боровой Михаил



      parent reply	other threads:[~2003-10-30 14:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-28  8:18 Shawkat Nizamov
2003-10-29  3:08 ` Shawkat Nizamov
2003-10-29  6:44   ` Dmitriy Shcherbakov
2003-10-29  7:46     ` Shawkat Nizamov
2003-10-29  8:13       ` Alexey I. Froloff
2003-10-29  8:23         ` Shawkat Nizamov
2003-11-01 13:14         ` [Comm] " Michael Shigorin
2003-10-30 14:24       ` Borovoy M. [this message]

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=3FA11F1F.3090109@pisem.net \
    --to=massa_lists@pisem.net \
    --cc=community@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