> mksmbpasswd.sh < /etc/passwd > /etc/samba/smbpasswd > cd /etc/samba > smbpasswd -e notes今回、ノーツ管理向けに定義したユーザマップは次のとおりです。 実際に設定する際は、SMBクライアントのユーザ名には、自分のアカウントか ノーツ管理者のユーザ名を指定してください。
> cat /etc/samba/smbusers notes = administrator hogehogeユーザマップの書式は下記のとおりです。
<UNIXユーザ名> = <SMBクライアントのユーザ名>2. 設定(smb.conf)
# 全体共通 [global] coding system = <サーバ側のコーディングシステム euc> client code page = <クライアント側の文字コード SJIS:932> workgroup = <マイクロソフトネットワークのワークグループ名> netbios name = <NetBios名(マイクロソフトネットワーク上のコンピュータ名)> security = SHARE encrypt passwords = Yes username map = /etc/samba/smbusers socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192共有の設定は下記のように記述します。
[<共有名>] comment = <ビュー上のコメント> path = <共有するディレクトリ> valid users = <アクセスできるユーザ> writeable = <書込の可否> browseable = <表示/非表示> ;設定した例は下記のとおりです。
> cat /etc/samba/smb.conf # Global parameters [global] coding system = euc client code page = 932 workgroup = WG-HOGE netbios name = hoge1 security = SHARE encrypt passwords = Yes username map = /etc/samba/smbusers socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 [notes_log] comment = Domino Server Log DIR path = /var/log/notes valid users = notes writeable = No browseable = Yes ; [notesdata] comment = Domino Server Log DIR path = /local/notesdata valid users = notes writeable = No browseable = No3. デーモンの起動
> ps -Af | grep 'nmbd' | grep -v 'grep'
root 646 1 0 Feb26 ? 00:00:07 nmbd -D