ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: cornet <cornet@zmail.ru>
To: mandrake-russian@altlinux.ru
Subject: Re: [mdk-re] advanced smb.conf
Date: Mon Oct  8 13:21:17 2001
Message-ID: <3BC17091.A9439A43@zmail.ru> (raw)
In-Reply-To: <20011008131229.1bd05564.vyt@vzljot.ru>

Vyt wrote:
> 
> On Mon, 8 Oct 2001 12:49:31 +0400
> Vyt <vyt@vzljot.ru> wrote:
> 
> <skipped>
> 
> > И, как всегда, захотелось комфорту: подскажите, пожалуйста,
> > есть
> > способ просто отключить все ресурсы? А то приходится во
> > включаемом конфиге перечислять все ресурсы общего конфига с
> > avaible = no.
> 
> Ну и отвечу себе, любимому :)
> 
> Можно включение, например, по ip-адресу, написать _перед_
> описанием общих ресурсов:
> 
> smb.conf
> ----
> include = /etc/samba/%I.conf
> 
> [share1]
>    comment = Public Stuff
>    path = /home/samba/share1
>    force user = samba
>    public = yes
>    only guest = yes
>    writable = no
>    browsable = yes
>    guest ok = yes
> ----
> 
> и для отдельного ip:
> 
> 192.168.0.1.conf
> ----
> [pub]
>    comment = Public Stuff
>    path = /var/ftp/pub
>    force user = samba
>    public = no
>    only guest = no
>    writable = no
>    browsable = yes
>    guest ok = no
> 
> [global]
> available = no
> ----
> 
> Последняя строка отключает все последующие ресурсы, так что нужно
> внимательно добавлять этот параметр в общий конфиг.

Хммм... А Вы занятно мыслите, коллега :-)) Это своего рода
обратное мышление, у меня то же иногда бывают просветления
подобного рода.
Я этот приемчик запомнил и взял на вооружение.
Сеньк за науку :-)

P.S. Какое же это счастье - структурированные текстовые конфиги!!
Лепота :-)))

-- 
******** FIRE & STEEL ********



      reply	other threads:[~2001-10-08 13:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-08 12:46 Vyt
2001-10-08 12:58 ` Peter V. Saveliev
2001-10-08 13:11   ` [mdk-re] [JT] " Vyt
2001-10-08 13:08 ` [mdk-re] " cornet
2001-10-08 13:12   ` Vyt
2001-10-08 13:09 ` Vyt
2001-10-08 13:21   ` cornet [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=3BC17091.A9439A43@zmail.ru \
    --to=cornet@zmail.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