プロが教えるわが家の防犯対策術!

samba ubuntu

Linuxubuntu 14.04LTS
にて、sambaの環境を構築しているのですがwindowsから接続が出来ずまいっています。
\\192.168.1.111 でアクセスするとsambaで設定したフォルダの一覧が出てきます
\\192.168.1.111\public でアクセスすると以下のエラーメッセージが出てきて接続ができません
※publicはsambaで共有設定したフォルダになります
---------------------------------------------------------------------------------------------------------------------------------
\\192.168.1.111\public にアクセスできません。このネットワーク リソースを使用するアクセス許可がない可能性があります。アクセス許可があるかどうかこのサーバーの管理者に問い合わせてください

指定されたネットワーク名は利用できません
---------------------------------------------------------------------------------------------------------------------------------


以下smb.confで変更した場所
25行目付近

[global]
unix chareset = UTF-8
dos chareset = CP932
## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of
workgroup = WORKGROUP

# server string is the equivalent of the NT Description field
server string = %h server (Samba, Ubuntu)

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
# wins support = no

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
; wins server = w.x.y.z

# This will prevent nmbd to search for NetBIOS names through DNS.
dns proxy = no

#### Networking ####

# The specific set of interfaces / networks to bind to
# This can be either the interface name or an IP address/netmask;
# interface names are normally preferred
; interfaces = 127.0.0.0/8 192.168.1.0/255.255.255.0

# Only bind to the named interfaces and/or networks; you must use the
# 'interfaces' option above to use this.
# It is recommended that you enable this feature if your Samba machine is
# not protected by a firewall or is a firewall itself. However, this
# option cannot handle dynamic or non-broadcast interfaces correctly.
; bind interfaces only = yes

最終行

[public]
path = /home/samba
writable = yes
guest ok = yes
guest only = yes
create mode = 0777
directory mode = 0777
share modes = yes

どうすれば接続できるようになるのか
原因がわかる方がいれば教えていただけると幸いです。

質問者からの補足コメント

  • 追記したところ
    アクセスできません、というエラーが出ました

    No.1の回答に寄せられた補足コメントです。 補足日時:2016/09/19 01:09

A 回答 (4件)

[public]セクションに public = yes を追加してみてください。

    • good
    • 0
この回答へのお礼

どちらもエラーが出てsmbを再インストールなどしていたら
アクセスが出来るようになりました。

いろいろと考えていただきありまがとうございました。

お礼日時:2016/09/19 02:28

ふつうはログを見て理由を考える.

    • good
    • 0

[global]セクションに security = share を追加してみてください。

    • good
    • 0

[global]セクションに max protocol = NT1 を追加してみてください。

この回答への補足あり
    • good
    • 0

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


このQ&Aを見た人がよく見るQ&A