Windowsから見えるように
参考:
http://www123.ddo.jp/pukiwiki/?%B8%BC%C8%A2%2Fdebian%B2%BD%2Fsamba%C0%DF%C4%EA http://www.ne.jp/asahi/hishidama/home/tech/unix/samba.html
# apt-get install samba smbclient swat 基本はデフォルト ただし、ユーザーパスワード管理はYesにする。 (デーモン設定の後聞かれます)
ここからフォルダ作成
# mkdir /mnt/video # chmod g+w /mnt/video # chgrp staff /mnt/video # cp /etc/samba/smb.conf /etc/samba/smb.conf.20120817 ↑ただの保存 # vi /etc/samba/smb.conf ---- 以下を追記(Unixユーザーでのアクセス) ----- [video] path = /mnt/video writable = yes ---- 追記ここまで ---- guest ok = yes を追加することでpublicになる・・・はず valid users = user1,user2,user3,user4,user5 でユーザーを限定できる
で、アクセスするためのユーザー追加
# smbpasswd -a hogehoge
これでOK
変更が適応されない時は
swatに接続(KURO-BOXのIP:901)してSTATUSから自動更新をしてその秒数待てば
多分OK
samba起動・再起動のコマンド
起動 /etc/init.d/smb start 再起動 /etc/init.d/smb reload …smb.confの再読込 /etc/init.d/smb restart …sambaの再起動
設定の確認
# testprm