# apt-get install samba-client
mount -t smbfsするにはクライアントのパッケージのみで十分。で、マウントテスト。
# mount -t smbfs //192/168.0.1/hoge /home/hage/smb -o uid=hage,gid=hage,fmask=644,dmask=755,username=hoge
パーミッションのチェック。/home/hage/smbの中身とそれ自身のオーナーとグループがhageであることを確認。
$ ls /home/hage /home/hage/smb -l
一般ユーザで読み込み書き込みチェック。
$ touch /home/hage/smb/tmp.txt $ echo aaa >> /home/hage/smb/tmp.txt $ cat /home/hage/smb/tmp.txt $ rm /home/hage/smb/tmp.txt
fstabに追加
# vi /etc/fstab > //192/168.0.1/hoge /home/hage/smb smbfs ro,noauto,uid=hage,gid=hage,fmask=644,dmask=755,username=hoge 0 0