12,925
回編集
84行目: | 84行目: | ||
# /<Sambaのインストールディレクトリ>/etc/smb.confファイル | # /<Sambaのインストールディレクトリ>/etc/smb.confファイル | ||
# smb.conf is the main Samba configuration file. | |||
[global] | [global] | ||
unix charset = UTF-8 | |||
dos charset = CP932 | |||
display charset = CP932 | |||
workgroup = WORKGROUP | |||
server string = Samba Server | |||
passdb backend = tdbsam | |||
printing = cups | |||
printcap name = cups | |||
printcap cache time = 750 | |||
cups options = raw | |||
map to guest = Bad User | |||
logon path = \\%L\profiles\.msprofile | |||
logon home = \\%L\%U\.9xprofile | |||
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> |