samba
インストール [#d2e4c6a5]
yum install samba
chkconfig smb --list
chkconfig smb on
chkconfig smb --list
■LinuxとSambaのパスワードを同期するには
http://www.atmarkit.co.jp/flinux/rensai/linuxtips/458syncpwl2s.html
vi /etc/samba/smb.conf
[global]セクションに以下の記述を追加する。
# --------------------------- Logging Options -----------------------------
unix password sync = Yes
pam password change = yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*upda
ted*successfully*
mkdir smb_share
chmod 777 smb_share
vi /etc/samba/smb.conf
---
# workgroup = MYGROUP
workgroup = WORKGROUP
server string = Samba Server Version %v
; netbios name = MYSERVER
netbios name = SMB-SVR01
; interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24
; hosts allow = 127. 192.168.12. 192.168.13.
hosts allow = 127. 192.168.
unix charset = UTF-8
display charset = UTF-8
;unix charset = UTF-8-MAC
;unix charset = macosxfs
dos charset = CP932
unix password sync = Yes
pam password change = yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
unix extensions = no
[homes]
comment = Home Directories
browseable = no
; writable = no
writable = yes
valid users = %S
create mask = 0700
directory mask = 0700
[share] <ーーー共有名
comment = WebLife share Directory
path = /mnt/samba/share
writable = Yes
browseable = Yes
guest ok = no
guest only = no
directory mode = 0775
create mode = 0644