ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Vyt <vyt@vzljot.ru>
To: Mandrake-Russian <mandrake-russian@altlinux.ru>
Subject: [mdk-re] smb.conf mini-howto
Date: Mon Oct  8 17:40:14 2001
Message-ID: <20011008174344.13b54b20.vyt@vzljot.ru> (raw)

Hello, All!

Домучал я свою проблему, немного кривовато, но может, пригодится
кому:

Задача - завести на smb-сервере ресурсы и доступ к ним
пользователей с паролями, причем ресурсы должны быть у каждого
свои, часть пользователей должна иметь доступ к старым ресурсам
(Video, pub), часть - фигу :)

Сначала security была изменена на user, что оказалось неудобно
для пользователей старых ресурсов (security = share, без пароля),
т.к. винды при сеансе в домене (описываемый smb-сервер к домену
отношения не имеет) упорно подставляют текущее username, хотя
guest логин разрешен, smbclient из Linux подключается нормально.

В итоге в общем конфиге осталось security = share, в подключаемых
- user.

Образцы конфигов:

smb.conf
----
#<skipped стандартные настройки>

include = /etc/samba/%I.conf
[global]
security = share

#Начало описания общих ресурсов
[Video1]
   comment = Public Stuff
   path = /home/samba/hda3/Video1
   force user = samba
   public = yes
   only guest = yes
   writable = no
   browsable = yes
   guest ok = yes
----

192.168.0.1.conf
----
[global]
security = user

#Название ресурса должно отличаться от любого из общего конфига
#иначе пароль не принимается, видимо, влияет available = no
[cd_docs]
   comment = Документация для записи
   path = /home/samba/hda3/cd_docs
   writable = yes
   browsable = yes
   valid users = elena vyt
   force user = samba

[global]
available = no
----

В итоге пользователь с ip 192.168.0.1 должен будет указать пароль
для доступа к ресурсу cd_docs и не получит доступа (и не увидит)
к ресурсам общего конфига.

Пароли берутся из /etc/samba/smbpasswd.

Дистрибутив - Spring2001/Sisyphus (08-10-2001)

samba-2.2.1a-alt10
kernel-2.4.9-alt5-up

-- 
Regards, Vyt
mailto:  vyt@vzljot.ru
JID:     vyt@jabber.org



             reply	other threads:[~2001-10-08 17:40 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-08 17:40 Vyt [this message]
2001-10-08 18:05 ` [mdk-re] [JT] " Peter V. Saveliev
2001-10-08 18:20   ` [mdk-re] ip to netbios name Vyt
2001-10-08 18:25     ` [mdk-re] " Peter V. Saveliev
2001-10-08 18:29     ` [mdk-re] " Peter V. Saveliev
2001-10-08 18:46       ` Peter V. Saveliev
2001-10-08 21:52   ` [mdk-re] [JT] smb.conf mini-howto Ihar Viarheichyk
2001-10-09  6:52   ` Re[2]: " Russu V.F.
2001-10-09  9:38 ` [mdk-re] " Artem K. Jouravsky
2001-10-09 10:03   ` [mdk-re] [JT] " Vyt
2001-10-10  7:04     ` [mdk-re] libXrender.so A. Mamonov
2001-10-10 14:52       ` Aleksey Novodvorsky
2001-10-12  5:12         ` A. Mamonov

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=20011008174344.13b54b20.vyt@vzljot.ru \
    --to=vyt@vzljot.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