ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Andrey Liakhovets <liakh@dol.ru>
To: community@lists.altlinux.org
Subject: Re: [Comm] New samba not working
Date: Sun, 20 Dec 2015 18:28:24 +0300
Message-ID: <web-1305674132@cgp.dol.ru> (raw)
In-Reply-To: <20151220140733.GO2930@imap.altlinux.org>

On Sun, 20 Dec 2015 17:07:33 +0300 Michael Shigorin wrote:
>On Sun, Dec 20, 2015 at 02:48:23PM +0300, Andrey Liakhovets wrote:
>> На форуме Федоры http://forums.fedoraforum.org/showthread.php?t=303937
>> (7th April 2015) нашёл решение и нечто похожее на объяснение:
>> 
>> "... samba actually starts but systemd reports the timeout.
>> I believe this is due to the newer samba packages being compiled against
>> newer systemd packages and there is some interaction issue.
>> To fix it, I copied nmb.service and smb.service from /usr/lib/systemd/system/
>> into /etc/systemd/system/. I then edited the /etc/ copies to change
>> the [Service] Type from 'notify' to 'forking'.
>> You should then do a "systemctl daemon-reload". ..."
>> 
>> После этого nmbd и smbd пока в самом деле живы.
>> 
>> Что это? и как правильно действовать?
>> (откатывать samba не хочется из-за исправленных CVE...)
>
>Сейчас хорошо бы приложить полученные файлики или даже лучше
>строчку для sed по /usr/lib/systemd/system/{n,s}mb.service
>(чтоб не остались перекрытыми после исправления пакета);
>а вообще это критичный баг, который стоит повесить.
>
>Также забросил на форум:
>http://forum.altlinux.org/index.php?topic=32230.540

Разница выглядит так (у нас в P7 эти unit'ы в другом месте):


--- /lib/systemd/system/nmb.service     2015-12-18 10:11:22.000000000 +0300
+++ /etc/systemd/system/nmb.service     2015-12-20 15:39:48.064689719 +0300
@@ -3,7 +3,7 @@
 After=syslog.target network.target
 
 [Service]
-Type=notify
+Type=forked
 NotifyAccess=all
 PIDFile=/run/nmbd.pid
 EnvironmentFile=-/etc/sysconfig/samba


--- /lib/systemd/system/smb.service     2015-12-18 10:11:22.000000000 +0300
+++ /etc/systemd/system/smb.service     2015-12-20 15:40:00.936497182 +0300
@@ -3,7 +3,7 @@
 After=syslog.target network.target nmb.service winbind.service
 
 [Service]
-Type=notify
+Type=forked
 NotifyAccess=all
 PIDFile=/run/smbd.pid
 LimitNOFILE=16384


Возможно, то же самое надо и для winbind, но у меня он выключен.

Андрей Ляховец


  reply	other threads:[~2015-12-20 15:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-20 11:48 Andrey Liakhovets
2015-12-20 14:07 ` Michael Shigorin
2015-12-20 15:28   ` Andrey Liakhovets [this message]
2015-12-22 12:45     ` Andrey Liakhovets
2015-12-22 13:21       ` Andrey Cherepanov

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=web-1305674132@cgp.dol.ru \
    --to=liakh@dol.ru \
    --cc=community@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 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