「インストール - Samba」の版間の差分

ナビゲーションに移動 検索に移動
84行目: 84行目:
  # /<Sambaのインストールディレクトリ>/etc/smb.confファイル
  # /<Sambaのインストールディレクトリ>/etc/smb.confファイル
   
   
# smb.conf is the main Samba configuration file.
  [global]
  [global]
unix charset = EUC-JP
    unix charset = UTF-8
dos charset = CP932
    dos charset = CP932
display charset = CP932
    display charset = CP932
workgroup = WORKGROUP
    workgroup = WORKGROUP
server string = Samba Server
    server string = Samba Server
security = USER
    passdb backend = tdbsam
encrypt passwords = Yes
    printing = cups
smb passwd file = /etc/samba/smbpasswd
    printcap name = cups
guest account = nobody
    printcap cache time = 750
unix password sync = no
    cups options = raw
log file = /var/log/samba/log.%m
    map to guest = Bad User
max log size = 50
    logon path = \\%L\profiles\.msprofile
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
    logon home = \\%L\%U\.9xprofile
dns proxy = No
    logon drive = P:
    usershare allow guests = Yes
    security = USER
    encrypt passwords = Yes
    smb passwd file = <Sambaのユーザパスワードファイルのパス  例. /<Sambaのインストールディレクトリ>/etc/samba/smbpasswd>
    guest account = nobody
    unix password sync = no
    log file = <Sambaのログファイルのパス  例. /var/log/samba/log.%m>
    max log size = 50
    socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
    dns proxy = No
[homes]
    comment = Home Directories
    valid users = %S, %D%w%S
    browseable = No
    read only = No
    inherit acls = Yes
    guest ok = no
[profiles]
    comment = Network Profiles Service
    path = %H
    read only = No
    store dos attributes = Yes
    create mask = 0600
    directory mask = 0700
    guest ok = no
[users]
    comment = All users
    path = /home
    read only = No
    inherit acls = Yes
    veto files = /aquota.user/groups/shares/
[groups]
    comment = All groups
    path = /home/groups
    read only = No
    inherit acls = Yes
    guest ok = no
[printers]
    comment = All Printers
    path = /var/tmp
    printable = Yes
    create mask = 0600
    browseable = No
[print$]
    comment = Printer Drivers
    path = /var/lib/samba/drivers
    write list = @ntadmin root
    force group = ntadmin
    create mask = 0664
    directory mask = 0775
[<共有ディレクトリ名  例. Share>]
  comment = Samba on SUSE
  path = <共有ディレクトリのパス  例. /home/user-name/Public>
  read only = no
  browsable = yes
  public = yes
  guest ok = yes
  #available = yes
  #valid users = <Sambaのユーザ名1> <Sambaのユーザ名2> <Sambaのユーザ名3> ...
<br>
<br>
SambaのSystemdサービスファイルを、/etc/systemd/systemディレクトリにコピーする。<br>
SambaのSystemdサービスファイルを、/etc/systemd/systemディレクトリにコピーする。<br>

案内メニュー