# yum install samba samba-client samba-common
# systemctl enable smb.service
# systemctl enable nmb.service
# systemctl restart smb.service
# systemctl restart nmb.service
# firewall-cmd --reload
# chcon -t samba_share_t /home/takahab/Common -R
# vi /etc/samba/smb.conf
# See smb.conf.example for a more detailed config file or
# read the smb.conf manpage.
# Run 'testparm' to verify the config is correct after
# you modified it.
[global]
workgroup = WORKGROUP
security = user
guest account = nobody
map to guest = Bad User
wide links = yes
unix extensions =no
passdb backend = tdbsam
printing = cupsprintcap name = cups
load printers = yes
cups options = raw
# read the smb.conf manpage.
# Run 'testparm' to verify the config is correct after
# you modified it.
[global]
workgroup = WORKGROUP
security = user
guest account = nobody
map to guest = Bad User
wide links = yes
unix extensions =no
passdb backend = tdbsam
printing = cupsprintcap name = cups
load printers = yes
cups options = raw
[share]
comment = common
path = /home/takahab/Common
public = yes
guest ok = yes
browseable = yes
writable = yes
printable = no
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
comment = common
path = /home/takahab/Common
public = yes
guest ok = yes
browseable = yes
writable = yes
printable = no
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @printadmin root
force group = @printadmin
create mask = 0664
directory mask = 0775
# testparm -v
■samba でシンボリックリンクがアクセスできない。
グローバルセクションに下記を追加したら動いた。
[global]
wide links = yes
unix extensions =no
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @printadmin root
force group = @printadmin
create mask = 0664
directory mask = 0775
■samba でシンボリックリンクがアクセスできない。
グローバルセクションに下記を追加したら動いた。
[global]
wide links = yes
unix extensions =no
0 件のコメント:
コメントを投稿