Samba 3.6.9

Contents

環境




サーバの構築


vi /etc/sysconfig/iptables

-A INPUT -p udp --dport 137 -j ACCEPT
-A INPUT -p udp --dport 138 -j ACCEPT
-A INPUT -p tcp --dport 139 -j ACCEPT
-A INPUT -p tcp --dport 445 -j ACCEPT

service iptables restart

Sambaの構築


インストール


パッケージからインストール


  1. インストールされていないことを確認
    yum list installed | grep samba
  2. インストール
    yum install samba
    • 出力例

      [root@samba1 ~]# yum install samba
      Loaded plugins: fastestmirror, presto
      Determining fastest mirrors
       * base: ftp.nara.wide.ad.jp
       * extras: ftp.nara.wide.ad.jp
       * updates: ftp.nara.wide.ad.jp
      base                                                                                                                                                          | 3.7 kB     00:00
      extras                                                                                                                                                        | 3.4 kB     00:00
      treasuredata                                                                                                                                                  |  951 B     00:00
      updates                                                                                                                                                       | 3.4 kB     00:00
      updates/primary_db                                                                                                                                            | 3.1 MB     00:00
      Setting up Install Process
      Resolving Dependencies
      --> Running transaction check
      ---> Package samba.x86_64 0:3.6.9-168.el6_5 will be installed
      --> Processing Dependency: samba-winbind-clients = 3.6.9-168.el6_5 for package: samba-3.6.9-168.el6_5.x86_64
      --> Processing Dependency: samba-common = 3.6.9-168.el6_5 for package: samba-3.6.9-168.el6_5.x86_64
      --> Processing Dependency: libtevent.so.0(TEVENT_0.9.9)(64bit) for package: samba-3.6.9-168.el6_5.x86_64
      --> Processing Dependency: libtdb.so.1(TDB_1.2.5)(64bit) for package: samba-3.6.9-168.el6_5.x86_64
      --> Processing Dependency: libtdb.so.1(TDB_1.2.2)(64bit) for package: samba-3.6.9-168.el6_5.x86_64
      --> Processing Dependency: libtdb.so.1(TDB_1.2.1)(64bit) for package: samba-3.6.9-168.el6_5.x86_64
      --> Processing Dependency: libtalloc.so.2(TALLOC_2.0.2)(64bit) for package: samba-3.6.9-168.el6_5.x86_64
      --> Processing Dependency: libwbclient.so.0()(64bit) for package: samba-3.6.9-168.el6_5.x86_64
      --> Processing Dependency: libtevent.so.0()(64bit) for package: samba-3.6.9-168.el6_5.x86_64
      --> Processing Dependency: libtdb.so.1()(64bit) for package: samba-3.6.9-168.el6_5.x86_64
      --> Processing Dependency: libtalloc.so.2()(64bit) for package: samba-3.6.9-168.el6_5.x86_64
      --> Running transaction check
      ---> Package libtalloc.x86_64 0:2.0.7-2.el6 will be installed
      ---> Package libtdb.x86_64 0:1.2.10-1.el6 will be installed
      ---> Package libtevent.x86_64 0:0.9.18-3.el6 will be installed
      ---> Package samba-common.x86_64 0:3.6.9-168.el6_5 will be installed
      ---> Package samba-winbind-clients.x86_64 0:3.6.9-168.el6_5 will be installed
      --> Processing Dependency: samba-winbind = 3.6.9-168.el6_5 for package: samba-winbind-clients-3.6.9-168.el6_5.x86_64
      --> Running transaction check
      ---> Package samba-winbind.x86_64 0:3.6.9-168.el6_5 will be installed
      --> Finished Dependency Resolution
      
      Dependencies Resolved
      
      =====================================================================================================================================================================================
       Package                                             Arch                                 Version                                        Repository                             Size
      =====================================================================================================================================================================================
      Installing:
       samba                                               x86_64                               3.6.9-168.el6_5                                updates                               5.0 M
      Installing for dependencies:
       libtalloc                                           x86_64                               2.0.7-2.el6                                    base                                   20 k
       libtdb                                              x86_64                               1.2.10-1.el6                                   base                                   33 k
       libtevent                                           x86_64                               0.9.18-3.el6                                   base                                   26 k
       samba-common                                        x86_64                               3.6.9-168.el6_5                                updates                                10 M
       samba-winbind                                       x86_64                               3.6.9-168.el6_5                                updates                               2.1 M
       samba-winbind-clients                               x86_64                               3.6.9-168.el6_5                                updates                               2.0 M
      
      Transaction Summary
      =====================================================================================================================================================================================
      Install       7 Package(s)
      
      Total download size: 19 M
      Installed size: 68 M
      Is this ok [y/N]: y
      Downloading Packages:
      Setting up and reading Presto delta metadata
      updates/prestodelta                                                                                                                                           | 271 kB     00:00
      Processing delta metadata
      Package(s) data still to download: 19 M
      (1/7): libtalloc-2.0.7-2.el6.x86_64.rpm                                                                                                                       |  20 kB     00:00
      (2/7): libtdb-1.2.10-1.el6.x86_64.rpm                                                                                                                         |  33 kB     00:00
      (3/7): libtevent-0.9.18-3.el6.x86_64.rpm                                                                                                                      |  26 kB     00:00
      (4/7): samba-3.6.9-168.el6_5.x86_64.rpm                                                                                                                       | 5.0 MB     00:00
      (5/7): samba-common-3.6.9-168.el6_5.x86_64.rpm                                                                                                                |  10 MB     00:02
      (6/7): samba-winbind-3.6.9-168.el6_5.x86_64.rpm                                                                                                               | 2.1 MB     00:00
      (7/7): samba-winbind-clients-3.6.9-168.el6_5.x86_64.rpm                                                                                                       | 2.0 MB     00:00
      -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      Total                                                                                                                                                5.6 MB/s |  19 MB     00:03
      Running rpm_check_debug
      Running Transaction Test
      Transaction Test Succeeded
      Running Transaction
        Installing : libtalloc-2.0.7-2.el6.x86_64                                                                                                                                      1/7
        Installing : libtevent-0.9.18-3.el6.x86_64                                                                                                                                     2/7
        Installing : libtdb-1.2.10-1.el6.x86_64                                                                                                                                        3/7
        Installing : samba-common-3.6.9-168.el6_5.x86_64                                                                                                                               4/7
        Installing : samba-winbind-clients-3.6.9-168.el6_5.x86_64                                                                                                                      5/7
        Installing : samba-winbind-3.6.9-168.el6_5.x86_64                                                                                                                              6/7
        Installing : samba-3.6.9-168.el6_5.x86_64                                                                                                                                      7/7
        Verifying  : samba-winbind-3.6.9-168.el6_5.x86_64                                                                                                                              1/7
        Verifying  : libtdb-1.2.10-1.el6.x86_64                                                                                                                                        2/7
        Verifying  : samba-common-3.6.9-168.el6_5.x86_64                                                                                                                               3/7
        Verifying  : samba-winbind-clients-3.6.9-168.el6_5.x86_64                                                                                                                      4/7
        Verifying  : samba-3.6.9-168.el6_5.x86_64                                                                                                                                      5/7
        Verifying  : libtevent-0.9.18-3.el6.x86_64                                                                                                                                     6/7
        Verifying  : libtalloc-2.0.7-2.el6.x86_64                                                                                                                                      7/7
      
      Installed:
        samba.x86_64 0:3.6.9-168.el6_5
      
      Dependency Installed:
        libtalloc.x86_64 0:2.0.7-2.el6               libtdb.x86_64 0:1.2.10-1.el6                         libtevent.x86_64 0:0.9.18-3.el6       samba-common.x86_64 0:3.6.9-168.el6_5
        samba-winbind.x86_64 0:3.6.9-168.el6_5       samba-winbind-clients.x86_64 0:3.6.9-168.el6_5
      
      Complete!
  3. インストールされていることを確認する
    smbd --version

共有フォルダ作成


以下は共有フォルダを作成するサンプルである。

  1. 共有フォルダを作成する
    mkdir -p /usr/local/samba_shared/public
    chmod 777 /usr/local/samba_shared/public
  2. 設定ファイルを作成する
    cat > /etc/samba/smb.conf << EOT
    [global]
    log file = /var/log/samba/samba.log
    max log size = 50
    security = user
    
    [public]
    read only = no
    path = /usr/local/samba_shared/public
    create mask = 660
    force create mode = 660
    directory mask = 770
    force directory mode = 770
    EOT
  3. ユーザを作成する
    groupadd public
    useradd --no-create-home --shell /sbin/nologin -g public public
    pdbedit -a -u public
    # パスワードを入力する
  4. Sambaを起動する
    service smb start
  5. WIndow PCからエクスプローラで「\\<IPアドレス>\」にアクセスする。
    その際のユーザ名はpublicで、パスワードは上記で入力したものである。

管理


管理コマンド一覧


pdbedit


ユーザの追加・削除・一覧表示を行う。






Common samba options:

smbpasswd


ユーザの作成、パスワードの設定・変更が行える。






smbstatus


Sambaサーバに接続されているクライアント、利用中の共有、ロックされているファイルを表示できる。

nmblookup


ワークグループ内のホストやマスターブラウザを調べる


eventlogadm


mksmbpasswd.sh


smbstatus


nmbd


smbd


net


pdbedit


profiles


smbcontrol


smbcquotas


smbpasswd


testparm


設定ファイル(smb.conf)の記載誤りの確認や、パラメータの表示などを行える。



一覧表示




設定確認


testparm -s

実行例





winbindd


ntlm_auth


wbinfo






設定


Sambaサーバの設定は次のファイルを変更することで行う。
/etc/samba/smb.conf

設定ファイルの初期状態


# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# For a step to step guide on installing, configuring and using samba,
# read the Samba-HOWTO-Collection. This may be obtained from:
#  http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf
#
# Many working examples of smb.conf files can be found in the
# Samba-Guide which is generated daily and can be downloaded from:
#  http://www.samba.org/samba/docs/Samba-Guide.pdf
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not made any basic syntactic errors.
#
#---------------
# SELINUX NOTES:
#
# If you want to use the useradd/groupadd family of binaries please run:
# setsebool -P samba_domain_controller on
#
# If you want to share home directories via samba please run:
# setsebool -P samba_enable_home_dirs on
#
# If you create a new directory you want to share you should mark it as
# "samba_share_t" so that selinux will let you write into it.
# Make sure not to do that on system directories as they may already have
# been marked with othe SELinux labels.
#
# Use ls -ldZ /path to see which context a directory has
#
# Set labels only on directories you created!
# To set a label use the following: chcon -t samba_share_t /path
#
# If you need to share a system created directory you can use one of the
# following (read-only/read-write):
# setsebool -P samba_export_all_ro on
# or
# setsebool -P samba_export_all_rw on
#
# If you want to run scripts (preexec/root prexec/print command/...) please
# put them into the /var/lib/samba/scripts directory so that smbd will be
# allowed to run them.
# Make sure you COPY them and not MOVE them so that the right SELinux context
# is applied, to check all is ok use restorecon -R -v /var/lib/samba/scripts
#
#--------------
#
#======================= Global Settings =====================================

[global]

# ----------------------- Network Related Options -------------------------
#
# workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH
#
# server string is the equivalent of the NT Description field
#
# netbios name can be used to specify a server name not tied to the hostname
#
# Interfaces lets you configure Samba to use multiple interfaces
# If you have multiple network interfaces then you can list the ones
# you want to listen on (never omit localhost)
#
# Hosts Allow/Hosts Deny lets you restrict who can connect, and you can
# specifiy it as a per share option as well
#
        workgroup = MYGROUP
        server string = Samba Server Version %v

;       netbios name = MYSERVER

;       interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24
;       hosts allow = 127. 192.168.12. 192.168.13.

# --------------------------- Logging Options -----------------------------
#
# Log File let you specify where to put logs and how to split them up.
#
# Max Log Size let you specify the max size log files should reach

        # logs split per machine
        log file = /var/log/samba/log.%m
        # max 50KB per log file, then rotate
        max log size = 50

# ----------------------- Standalone Server Options ------------------------
#
# Scurity can be set to user, share(deprecated) or server(deprecated)
#
# Backend to store user information in. New installations should
# use either tdbsam or ldapsam. smbpasswd is available for backwards
# compatibility. tdbsam requires no further configuration.

        security = user
        passdb backend = tdbsam


# ----------------------- Domain Members Options ------------------------
#
# Security must be set to domain or ads
#
# Use the realm option only with security = ads
# Specifies the Active Directory realm the host is part of
#
# Backend to store user information in. New installations should
# use either tdbsam or ldapsam. smbpasswd is available for backwards
# compatibility. tdbsam requires no further configuration.
#
# Use password server option only with security = server or if you can't
# use the DNS to locate Domain Controllers
# The argument list may include:
#   password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name]
# or to auto-locate the domain controller/s
#   password server = *


;       security = domain
;       passdb backend = tdbsam
;       realm = MY_REALM

;       password server = <NT-Server-Name>

# ----------------------- Domain Controller Options ------------------------
#
# Security must be set to user for domain controllers
#
# Backend to store user information in. New installations should
# use either tdbsam or ldapsam. smbpasswd is available for backwards
# compatibility. tdbsam requires no further configuration.
#
# Domain Master specifies Samba to be the Domain Master Browser. This
# allows Samba to collate browse lists between subnets. Don't use this
# if you already have a Windows NT domain controller doing this job
#
# Domain Logons let Samba be a domain logon server for Windows workstations.
#
# Logon Scrpit let yuou specify a script to be run at login time on the client
# You need to provide it in a share called NETLOGON
#
# Logon Path let you specify where user profiles are stored (UNC path)
#
# Various scripts can be used on a domain controller or stand-alone
# machine to add or delete corresponding unix accounts
#
;       security = user
;       passdb backend = tdbsam

;       domain master = yes
;       domain logons = yes

        # the login script name depends on the machine name
;       logon script = %m.bat
        # the login script name depends on the unix user used
;       logon script = %u.bat
;       logon path = \\%L\Profiles\%u
        # disables profiles support by specifing an empty path
;       logon path =

;       add user script = /usr/sbin/useradd "%u" -n -g users
;       add group script = /usr/sbin/groupadd "%g"
;       add machine script = /usr/sbin/useradd -n -c "Workstation (%u)" -M -d /nohome -s /bin/false "%u"
;       delete user script = /usr/sbin/userdel "%u"
;       delete user from group script = /usr/sbin/userdel "%u" "%g"
;       delete group script = /usr/sbin/groupdel "%g"


# ----------------------- Browser Control Options ----------------------------
#
# set local master to no if you don't want Samba to become a master
# browser on your network. Otherwise the normal election rules apply
#
# OS Level determines the precedence of this server in master browser
# elections. The default value should be reasonable
#
# Preferred Master causes Samba to force a local browser election on startup
# and gives it a slightly higher chance of winning the election
;       local master = no
;       os level = 33
;       preferred master = yes

#----------------------------- Name Resolution -------------------------------
# Windows Internet Name Serving Support Section:
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
#
# - WINS Support: Tells the NMBD component of Samba to enable it's WINS Server
#
# - WINS Server: Tells the NMBD components of Samba to be a WINS Client
#
# - WINS Proxy: Tells Samba to answer name resolution queries on
#   behalf of a non WINS capable client, for this to work there must be
#   at least one        WINS Server on the network. The default is NO.
#
# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups.

;       wins support = yes
;       wins server = w.x.y.z
;       wins proxy = yes

;       dns proxy = yes

# --------------------------- Printing Options -----------------------------
#
# Load Printers let you load automatically the list of printers rather
# than setting them up individually
#
# Cups Options let you pass the cups libs custom options, setting it to raw
# for example will let you use drivers on your Windows clients
#
# Printcap Name let you specify an alternative printcap file
#
# You can choose a non default printing system using the Printing option

        load printers = yes
        cups options = raw

;       printcap name = /etc/printcap
        #obtain list of printers automatically on SystemV
;       printcap name = lpstat
;       printing = cups

# --------------------------- Filesystem Options ---------------------------
#
# The following options can be uncommented if the filesystem supports
# Extended Attributes and they are enabled (usually by the mount option
# user_xattr). Thess options will let the admin store the DOS attributes
# in an EA and make samba not mess with the permission bits.
#
# Note: these options can also be set just per share, setting them in global
# makes them the default for all shares

;       map archive = no
;       map hidden = no
;       map read only = no
;       map system = no
;       store dos attributes = yes


#============================ Share Definitions ==============================

[homes]
        comment = Home Directories
        browseable = no
        writable = yes
;       valid users = %S
;       valid users = MYDOMAIN\%S

[printers]
        comment = All Printers
        path = /var/spool/samba
        browseable = no
        guest ok = no
        writable = no
        printable = yes

# Un-comment the following and create the netlogon directory for Domain Logons
;       [netlogon]
;       comment = Network Logon Service
;       path = /var/lib/samba/netlogon
;       guest ok = yes
;       writable = no
;       share modes = no


# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
;       [Profiles]
;       path = /var/lib/samba/profiles
;       browseable = no
;       guest ok = yes


# A publicly accessible directory, but read only, except for people in
# the "staff" group
;       [public]
;       comment = Public Stuff
;       path = /home/samba
;       public = yes
;       writable = yes
;       printable = no
;       write list = +staff

設定ファイルの記法


設定ファイルは次のような書き方となっている。
[セクション]
パラメータ名 = 値
セクションはそれぞれ共有リソースに対応し、そのセクション中で設定されたパラメータが適用される。
セクション名は規定のもの以外では任意の名前をつけられ、それが共有名となる。
セクション定義行から次のセクション定義までがそのセクションの設定となる。
;か#で始まる行はコメントである。

変数


値には %X の記法で変数を使用できる。


設定の構文チェック


構文チェックをtestparmコマンドで行うことができる。

globalセクション


Samba全体にわたる設定を行うセクション。
下記の設定はglobalセクションのみで記述できる。

workgroup


Sambaサーバが所属するワークグループ名もしくはドメイン名を指定する
workgroup = <グループ名>

netbios name


SambaサーバのNetBIOS名を指定する
netbios name = <NetBIOS名>

server string


サーバの説明文を記述する。ブラウジングの際にマウスオーバーで表示される。
server string = <サーバ説明文>

interfaces


Sambaによる接続を受け付けるインタフェースを指定する。
interfaces = <インタフェース名>|<インタフェースIPアドレス> [...]

hosts allow


接続を許可するホストを指定する。
このパラメータを設定した場合、許可されなかったホストは拒否される。
スペースで区切って複数記述できる。
192.168.と書くことで、192.168.0.0/16の範囲を許可することができる。
hosts allow = <ホスト> [...]

hosts deny


接続を拒否するホストを指定する。
このパラメータを設定した場合、拒否されなかったホストは許可される。
hosts deny = <ホスト> [...]

guest account


Guestとして利用するアカウント名を指定する
デフォルトは”nobody”アカウントとなる。
guest account = <アカウント名>

map to guest


Sambaユーザ認証ができなかった場合の挙動を指定する

map to guest = (Never|Bad User|Bad Password)

log file


ログファイルを指定する
log file

max log size


ログファイルの最大サイズをKB単位で指定する。
0の場合は制限がない。
max log size = <最大ログファイルサイズ>

encrypt passwords = (Yes|No)


YesとNoが指定でき、Yesの場合はNetBIOS認証をハッシュ値で行う方式にする。
encrypt passwords

smb passwd file


パスワード認証をsmbpasswd方式で行う場合のパスワードファイルを指定する
smb passwd file

unix password sync


YesかNoを記述し、SambaのパスワードとLinuxのパスワードを同期させるかどうかを指定する。
このパラメータを有効にする場合、passwd programパラメータを必ず設定する必要がある。
unix password sync = (Yes|No)

passwd program


Samba側でパスワードを変更した際に実行するプログラムを指定する。
passwd program = <パスワード変更プログラムパス>

passwd program = /usr/bin/passwd %u

passwd chat


Samba側でパスワードを変更した際の応答内容を記述する
passwd chat

username map


Linuxのユーザーを別のユーザー名にマッピングした内容を記述したファイルを指定する。
マッピングファイル内では、次の書式で記述する。
<Linuxユーザ名> = "<Windowsユーザ名>"
Windowsユーザ名は日本語にも対応できる。
username map

logon script


ログオン時に実行するスクリプトファイルを指定する
logon script

wins support


YesかNoで指定し、SambaサーバをWINSサーバとして動作させるときにYesとする
wins support

wins server


WINSサーバのIPアドレスを指定する
wins server

security


認証方法の設定

security = (user|share|server|domain|ads)

null passwords


!!廃止!!
YesかNoで指定し、空のパスワードの使用を許可・禁止する
null passwords = (Yes|No)

enable privileges


特定の権限をWindowsのSIDに割り当てる機能を有効にするかどうかを指定する。



unix extensions


UNIX拡張を利用するかどうかを制御する。
専らリンク(シンボリックリンク、ハードリンク)を使用可能にするために設定される。
Unix系クライアントからリンクを使用する場合はYesにし、Windows系クライアントからリンクを使用する場合はNoにすること。
ただし、リンクを使用する場合は「wide links」も有効にする必要がある。



個別セクション共通設定


globalセクション以降の個別の各セクション内で使用できる共通の設定項目が以下である。
globalセクション内でも設定可能である。

comment


コメント文。ブラウジングしたときに表示される。

browsable


YesかNoで指定し、ブラウジングしたときに表示されるかどうかを指定する。
ただし、共有名を直接指定するとアクセスすることは可能。
セクション名の最後に$を書くことでNoとするのと同様の効果が得られる。



writable/writeable


書き込み可能かどうかを指定する。
パラメータ”read only”の反対である。




read only


YesかNoで指定し、読み込み専用かどうかを指定する



path


共有ディレクトリのパスを指定する


force user


共有内に作成するファイル・ディレクトリのオーナーを指定する


force group


共有内に作成するファイル・ディレクトリのオーナーグループを指定する


write list


writableで書き込みできない状態の場合でも書き込みできるユーザ・グループを指定する



hide dot files


YesかNoで記述し、.で始まる名前のファイルやディレクトリを
表示しないようWindowsの隠しファイル属性を適用するかどうかを指定する。

hide files


表示させないファイル・ディレクトリを指定する。ただし、アクセスは可能。

veto files


表示させないファイル・ディレクトリを指定する。ただし、アクセスも不可。

create mask


ファイルに適用可能なパーミッションを指定する。
この値とDOSでの属性をUNIXのパーミッションに変換した値との論理積(AND)を
ファイルのパーミッションとする。
パーミッションを削除する場合に使用する。
デフォルトは0744。
create mask = <パーミッション>

directory mask


ディレクトリに適用可能なパーミッションを指定する。
この値とDOSでの属性をUNIXのパーミッションに変換した値との論理積(AND)を
ディレクトリのパーミッションとする。
パーミッションを削除する場合に使用する。
デフォルトは0755。
directory mask = <パーミッション>

force create mode


必ずファイルに適用されるパーミッションを指定する。
この値と”create mask”で算出された値との論理和(OR)が最終的なファイルのパーミッションとなる。
パーミッションを設定する場合に使用する。
デフォルトは0000。
force create mode = <パーミッション>

force directory mode


必ずディレクトリに適用されるパーミッションを指定する。
この値と”create mask”で算出された値との論理和(OR)が最終的なディレクトリのパーミッションとなる。
パーミッションを設定する場合に使用する。
デフォルトは0000。
force directory mode = <パーミッション>

valid users


アクセス可能なユーザ・グループを指定する

guest ok


YesかNoで記述し、Yesの場合はパスワード無しのゲストログインを許可する
guest ok = (Yes|No)

public


guest okと同じ
public = (Yes|No)

wide links


UNIXファイルシステム上のリンクをたどってアクセス可能かどうかを設定する。
リンクを有効にすると、不正なリンクファイルを配置することで意図しないパスにアクセス可能になるリスクがある。






homesセクション


Linuxユーザの各ホームディレクトリを一括して共有するためのセクション。
SambaにログインしたユーザがLinuxに存在する場合、そのホームディレクトリが利用可能となる。

printers


共有プリンタに関する設定を行います。

printable




print ok


このパラメーターはprintableパラメーターの別名である


lmhosts


Windowsネットワーク上にてホストのNetBIOS名とIPアドレスの名前解決のために使われるファイル。
WINSサーバで名前解決が出来なかった際にlmhostsファイルが使用される。
通常以下のパスに存在する。
/etc/samba/lmhosts


Sambaクライアント


LinuxからSambaサーバへアクセスし、Windowsネットワークを利用するにはSambaクライアントを利用する。

smbclientコマンド


Sambaクライアントとして利用できるコマンド。


接続が成功すると対話式で操作を行う。
以下のサブコマンドが使用可能である。
なお、テキストファイルを直接読み出すサブコマンドは無い。



マウントして利用


smbmount \\<サーバ名>\<共有名> <マウントポイント> [-o <オプション>]


Notice: Trying to get property 'queue' of non-object in /usr/local/wordpress/wp-includes/script-loader.php on line 2876

Warning: Invalid argument supplied for foreach() in /usr/local/wordpress/wp-includes/script-loader.php on line 2876