2013年7月19日金曜日

CentOS7 samba 設定

■samba インストール
# 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 --permanent --zone=public --add-service=samba
# 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
[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
[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 = @printadmin root
force group = @printadmin
create mask = 0664
directory mask = 0775

# testparm -v

■samba でシンボリックリンクがアクセスできない。
グローバルセクションに下記を追加したら動いた。
[global]
wide links = yes
unix extensions =no

0 件のコメント:

コメントを投稿

zabbix7 amazon linux2023 インストール postgres15

【postgres】 dnf -y install postgresql15-server postgresql15-server-devel postgresql-setup initdb passwd postgres vi `find / -name pg_hba.con...