ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Andrei Bulava <abulava@altlinux.ru>
To: ALT Linux Sisyphus discussion list <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] большие проблемы с courier-authdaemon для imapd
Date: Mon, 03 Apr 2006 17:51:28 +0300
Message-ID: <44313670.6050407@altlinux.ru> (raw)
In-Reply-To: <200604031832.23864.kopilo4ka@gmail.com>

kopilo4ka@gmail.com wrote:
> Hi all
> 
> Имеем:
> courier-authlib-0:0.58-alt2 installed
> courier-authlib-0:0.56-alt1 removed
> 
> Заметил что в конфиге теперь демон стартует от пользователя courier.
> Оставил варианты авторизации: authmodulelist="authpam".

Тогда надо было или а) сразу запускать authdaemon'а от root - не очень
хорошо по безопасности; или б) модифицировать пользователя courier так,
чтобы он принадлежал в том числе к группе auth, - уже лучше, чем вариант а).

Почему? Ответ - в правах на файлы /etc/tcb/<username>/shadow.

> самое. Меняем от кого будет запускаться authdaemon на рута, и что-то 
> поменялось.
> 
> # authtest henker
> Authenticated: henker  (system username: henker)
> Home Directory: /home/henker
> Maildir: (none)
> Quota: (none)
> Encrypted Password: $2a$08$h2mqOd......
> Cleartext Password: (none)
> Options: (none)
> 
> И на imap уже нормально заходит.

См. выше.

> Однако почему authtest пишет что нету 
> Maildir, а она есть? Тоже проблема с доступом?

Похоже, что да.

> Почему тогда pam не сработал?

Потому что авторизацией занимался authdaemon, запущенный от root'а, а
доступом к Maildir - какой-то другой процесс из комплекта courier,
запущенный с правами, например, пользователя courier?

-- 
// AB1002-UANIC



  reply	other threads:[~2006-04-03 14:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-03 14:32 kopilo4ka
2006-04-03 14:51 ` Andrei Bulava [this message]
2006-04-03 15:39   ` kopilo4ka
2006-04-05 15:18     ` Dmitry Lebkov
2006-04-05 15:26 ` Dmitry Lebkov

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=44313670.6050407@altlinux.ru \
    --to=abulava@altlinux.ru \
    --cc=sisyphus@lists.altlinux.org \
    /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 Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

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


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