主にWindowsとファイルを共有するためにファイルサーバーを構築します。
yum install samba としてインストールします。
# yum install samba
設定ファイル(/etc/samba/smb.conf)を編集します。workgroupとserver stringぐらいを変更しておけばいいでしょう。
workgroup = thaliana server string = Samba on thaliana
自動起動の設定をして、サーバーを起動します。
# chkconfig smb on # service smb start
sambaに接続できるユーザーを追加します。またLinuxとは認証方式が異なるのでパスワードを別にsambaに登録する必要があります。
# pdbedit -a takamasa new password: retype new password: Unix username: takamasa NT username: Account Flags: [U ] User SID: S-1-5-21-371xxxxxxxxxxxxxxxxx Primary Group SID: S-1-5-21-371xxxxxxxxxxxxxxxxx Full Name: Home Directory: \\thaliana\takamasa HomeDir Drive: Logon Script: Profile Path: \\thaliana\takamasa\profile Domain: THALIANA Account desc: Workstations: Munged dial: Logon time: 0 Logoff time: never Kickoff time: never Password last set: 金, xx x月 2009 xx:xx:xx JST Password can change: 金, xx x月 2009 xx:xx:xx JST Password must change: never Last bad password : 0 Bad password count : 0 Logon hours : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
パスワードを変更するときには smbpasswd コマンドを使います。