cifsのfstabの書き方メモ。 書き方はこんな感じ。
//file_srv/public /mnt/public cifs rw,credentials=/etc/cred.file,domain=GROUP,iocharset=utf8 0 0
fstabは普通いろんなユーザーから見ることができるので、ユーザーIDやパスワー ドを直接書き込むのは避けたい。そのため、credentialsでユーザーIDとパスワー ドを書いたファイルを指定する。こんなかんじ。
username=hogehoge password=fugafuga
当然、credential で指定するファイルのパーミッションには注意。
あとは mount -a -t cifs とやってテスト。
posted at: Sun, 08 Oct 2006 02:38
[linux]
permanent link/comments(0)
