宮脇です。
私もsambaの設定では苦労しましたので、参考になればと思い
、投稿します。
まずsambaのバージョンですが、私のsambaも3.0.23d-0vl1です
ので、angelさんのと同じバージョンです。(バージョンが違
うと、設定が微妙に違いますので、まず確認しました。)
> たった今、ディレクトリが見えるようになりました^^
> available = Yesにしたことが良かったのだと思います。
> しかし、Linux側から1つのファイルが見えますが、
> Windows側から見るとディレクトリは空です・・・
> 逆にWindows側からファイルを入れるとLinux側からは見えな
いようです。
> 原因を探してみます。
angelさんのsambaの状況を整理してみると、2台のPCをsamba
でつないでいるということですね。
windows名=angelmaster3
vine=winserver(sambaserverでしょうか?)
workgroup=FAIRLAND
これで、上記のような問題が出るということは、windows側とvine
側の両方に問題があると思います。
windows側ー共有したいディレクトリを共有設定にする。(例
えば、Dドライブを共有設定にする。)この共有設定は、して
いるのでしょうか?
vine側では、/etc/samba/smb.confをgnomeテキストエディタで
編集する。
参考までに、私の/etc/samba/smb.confを張り付けておきます
。
# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2007/02/28 21:15:35
[global]
dos charset = cp932
unix charset = eucJP-ms
display charset = eucJP-ms
workgroup = MSHOME
server string = Samba Server on %h
log file = /var/log/samba/%m.log
max log size = 50
dns proxy = No
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
cups options = raw
[homes]
comment = %U's Home Directory
read only = No
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
[sambadoc]
comment = Samba Documents
path = /var/samba/docs
read only = No
guest ok = Yes
browseable = No
angelさんのsmb.confは、
> # Samba config file created using SWAT
> # from 127.0.0.1 (127.0.0.1)
> # Date: 2007/03/13 20:16:24
>
> [global]
> dos charset = cp932
> unix charset = eucJP-ms
> display charset = eucJP-ms
> workgroup = FAIRYLAND
> server string = SambaServer←ここに、on %h と付けてみ
てはどうでしょうか。
> log file = /var/log/samba/%m.log
> max log size = 50
> load printers = No
> os level = 1
> dns proxy = No
> idmap uid = 16777216-33554431
> ←swatが勝手に入れちゃいます
> idmap gid = 16777216-33554431
> ←swatが勝手に入れちゃいます
> cups options = raw
>
> [SambaServer]
> comment = SambaServer
ここは、read only = No を残して
browseable = No と記入し、あとは全部消していいの
ではないでしょうか。
> path = /home/SambaServer
> valid users = @group1
> force group = group1
> ←group1にはangelmasterとangelmaster3を設定してます
> read only = No
> force create mode = 0764
> force directory mode = 0775
>
[Winserver]←これも必要ないのではないでしょうか。
> comment = SambaServer
> path = /home/SambaServer
> valid users = @group1
> force group = group1
> ←group1にはangelmasterとangelmaster3を設定してます
> read only = No
> force create mode = 0764
> force directory mode = 0775
sambaの設定は、あまり必要のないものをつけるのは良くない
ようです。できるだけシンプルがいい。
あと、コンソールから#testparm として、異常がないかどうか
確かめるといいと思います。