電子書籍の厳選無料作品が豊富!

centos5でsamabaを構築しましたが、vistaから共有フォルダが見えません。
環境とconfの設定は以下の通りです。
原因と対処が解る方がいらっしゃればお教え願います。

環境
vmwereプレイヤーを用い、vistaの上に仮想的にcentos5を起動しています。
ともに、172.16.16.0 255.255.240.0 のネットワークに属しており、普段はvistaからteratermを用いsshでlinuxに接続します。
ファイアウォール全開でも、見えませんでした。
今回、ワークグループ名は VISTA1_ADMIN01 を使います。

設定
confの各セクションの設定は以下の通りです ※コメント行等一部、省略して貼ってます

55 #======================= Global Settings =====================================
56
57 [global]
58 unix charset = UTF-8
59 dos charset = CP932
60 display charset = UTF-8
61 # ----------------------- Network Related Options -------------------------
62 #
63 # workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH
64 workgroup = VISTA1_ADMIN01
65 ; hosts allow = 172.16.16 127.
66
67 #
68 # server string is the equivalent of the NT Description field
69 #
70 # netbios name can be used to specify a server name not tied to the hostname
71 #
72 # Interfaces lets you configure Samba to use multiple interfaces
73 # If you have multiple network interfaces then you can list the ones
74 # you want to listen on (never omit localhost)
75 #
76 # Hosts Allow/Hosts Deny lets you restrict who can connect, and you can
77 # specifiy it as a per share option as well
78 #
79 ;workgroup = VISTA1_ADMIN01
80 server string = Samba Server Version %v
81
82 netbios name = smb_linux1
83
84 ;interfaces = lo eth0 172.16.20.254/20
85 ;hosts allow = 127. 172.16.16
86
87 # --------------------------- Logging Options -----------------------------
88 #
89 # Log File let you specify where to put logs and how to split them up.
90 #
91 # Max Log Size let you specify the max size log files should reach
92
93 # logs split per machine
94 ;log file = /var/log/samba/%m.log
95 # max 50KB per log file, then rotate
96 ;max log size = 50
97
98 # ----------------------- Standalone Server Options ------------------------
99 #
100 # Security can be set to user, share(deprecated) or server(deprecated)
101 #
102 # Backend to store user information in. New installations should
103 # use either tdbsam or ldapsam. smbpasswd is available for backwards
104 # compatibility. tdbsam requires no further configuration.
105
106 security = share
107 passdb backend = tdbsam

A 回答 (3件)

> service nmb status


の実行結果は
nmb: 認識されていないサービスです。

表示されます。
これはどうすれば?

service smb status のコマンドで smb, nmb の両方とも確認できているようですので正常です。(CentOSではnmbが分かれていないので、nmbサービス単独で認識されなくてもいいです)
    • good
    • 0
この回答へのお礼

回答ありがとうございます!

後は何でしょうね・・・
vmwereが怪しいような気がるのですが。。
vmの設定に"共有フォルダを有効する"のような設定項目があったので、有効にして再度仮想hostを起動してみたのですが、やはりダメでした。。

お礼日時:2010/03/03 00:18

Windowsとのファイル共有であれば、ほとんどデフォルト設定のままでOKなはずです。


見えないということはNETBIOSが確立していない、という最も基本的な現象だと思います。

# service nmb status
# service smb status
の実行結果は正常ですか。

Vistaログイン時にはユーザーID、パスワードを入力していますか。
(自動ログインなら入力して試してみてください)

私の場合の共有フォルダ設定はsbm.confで下記の3行だけでOKです。
XP、Vista、Win7のどれからも見えて、アクセス(読み書き)できています。
[dat]
path = /dat
read only = no
guest ok = yes

この回答への補足

回答ありがとうございます!

service smb status 
の実行結果は
smbd (pid 3019 3014) を実行中...
nmbd (pid 3017) を実行中...

正常なのですが、

service nmb status
の実行結果は
nmb: 認識されていないサービスです。

表示されます。
これはどうすれば?

また、VISTAにはログインパスワードが設定されています。

補足日時:2010/03/02 14:51
    • good
    • 0

confの肝心な部分が欠けていますので何とも言えません。


共有フォルダは設定してありますか。(設定していないとVistaから見えません)

テストする段階ではSELinuxも無効にしてみてください。
    • good
    • 0
この回答へのお礼

回答ありがとうございます!
SElinux無効でも状況変わらずです。

共有ファイルの部分の記述は以下のとおりです
[public]
285 ; comment = Public Stuff
286 path = /public2
287 ; public = yes
288 writable = yes
289 guest ok = yes
290 guest only = yes

お礼日時:2010/03/02 03:56

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!