ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Пирогов Алексей" <ipalex@ferplast.com.ua>
To: community@altlinux.ru
Subject: Re: [Comm] Local net: Sharing Folders in Windows Workgroup (for ALT Linux Junior 2.2)
Date: Tue, 29 Jul 2003 12:30:44 +0300
Message-ID: <200307291230.44318.ipalex@ferplast.com.ua> (raw)
In-Reply-To: <200307291425.56002.artyoml@narod.ru>

В сообщении от 29 Июль 2003 10:25 Artyom написал(a):
> как настроить расшаривание папок своего компьютера под ALT Linux Junior 2.2
> в локальной сети Windows, которая состоит из единственной рабочей группы.
> Более конкретно - хочу пускать всех подряд из рабочей группы (LSI) в свою
> расшаренную папку (/mnt/winpub) с правами только на чтение.
> ...
> Может быть дело в том, что не создан файл smbpasswd в etc/samba?

Если у тебя в сети нет контроллера домена и ты хочешь авторизовать юзеров у 
себя, то есть два варианта: а) использовать unix-овую авторизацию, тогда 
пароли передаваемые по сети не должны шифроваться и нужно на всех мастдайках 
отключать в реестре шифрование; б) использовать smb-авторизацию, тогда нужно 
создать файл паролей для smb и задавать smb-пароли отдельно от unix-паролей. 
Второй вариант предпочтительнее и я его опишу:
1) в /etc/samba/smb.conf пропиши примерно так
-----------------------------------------------------------------
[global]
        workgroup = LSI
        netbios name = YOUHOSTNAME
        server string = Samba server on %h (v. %v)
        hosts allow = 192.168.1. #<-- СВОЮ СЕТКУ !!!
        security = user
        encrypt passwords = yes
        smb passwd file = /etc/samba/smbpasswd
        password level = 8
        username level = 8
        log file = /var/log/samba/log.%m
        max log size = 50
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        load printers = no
        local master = no
	domain master = yes #<-- но если не хочешь, то no
        preferred master = no
        dns proxy = No
        username map = /etc/samba/smbusers
        client code page = 866
        character set = KOI8-R

[winpub]
        comment = Public Directory for Windows
        path = /mnt/winpub
        public = yes
        read only = yes
-----------------------------------------------------------------
2) создай файл паролей /etc/samba/smbpasswd из /etc/passwd
# cat /etc/passwd | mksmbpasswd.sh > /etc/samba/smbpasswd 

3) задай нужным самбаюзерам пароли
# smbpasswd smbusername

4) service smb restart & enjoy :)


> Можно ли обойтись без добавления всех пользователей рабочей группы в
> Линукс-систему?
Можно, прописать соответствие нескольких SMB-юзеров одному Linux-юзеру, тогда 
все они будут ходить с правами этого юзера. По умолчанию все, кто не прописан 
в smbusers, ходят как nobody
cat /etc/samba/smbusers
# Unix_name = SMB_name1 SMB_name2 ...
root = administrator admin
nobody = guest pcguest smbguest
linuxuser = SMBUser
если нужна шара только по чтению и всем, то это тебе подходит


Это очень кратко, подробнее см. документацию по samba — там все очень подробно 
описано. Можешь еще поднять swat — и из него все настроить, там и 
документацию удобно читать
# chkconfig swat on 
# service xinetd reload 
и браузером http://127.0.0.1:901

P.S. но я предпочитаю ручками конфы писать и тебе рекомендую
-- 
Наилучшие пожелания,                      Registered         .--.
Пирогов Алексей                       Linux User #293162    |@_@ |
mailto:ipalex@ukr.net                                       |!_/ |
mailto:ipalex@ferplast.com.ua                              //   \ \
UIN:172368093                                             (|     | )
                                                         /'\_   _/`\
                                       Powered by Linux  \___)=(___/

      parent reply	other threads:[~2003-07-29  9:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-29  7:25 Artyom
2003-07-29  7:28 ` Leonid B. Sysoletin
2003-07-29  7:51 ` Krasavin A.
2003-07-29  9:04 ` Shawkat
2003-07-29  9:30 ` Пирогов Алексей [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=200307291230.44318.ipalex@ferplast.com.ua \
    --to=ipalex@ferplast.com.ua \
    --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