Help us understand the problem. What is going on with this article?

Samba4で認証なしで共有フォルダにアクセスさせる

More than 3 years have passed since last update.

windows10からのアクセスは認証が必要になります。

参考

「security=share」の代替としては、「security=user」かつ「map to guest=Bad User」の組み合わせがあります。
この設定では、ユーザ認証でコケたユーザは、guestにマップされるようになります。

インストール

  • fedora22にて確認
yum install samba

設定

/etc/samba/smb.conf
    security = user
    passdb backend = tdbsam
+   map to guest=Bad User
/etc/samba/smb.conf
-;  [public]
-;  comment = Public Stuff
-;  path = /home/samba
-;  public = yes
-;  writable = yes
-;  printable = no
-;  write list = +staff
+   [public]
+   comment = Public Stuff
+   path = /srv/samba
+   guest ok = yes
+   public = yes
+   writable = yes
+   printable = no
mkdir /srv/samba
chmod 777 /srv/samba

systemctl start samba

アクセス元を制限する

/etc/samba/smb.conf
 [global]
+  hosts allow = 192.168.100.
  • 192.168.100.0/24 以外からはアクセスできない。

もしくは

/etc/samba/smb.conf
 [global]
+  hosts allow = 192.168.100.0/24 127.0.0.1/32
tukiyo3
インフラ / web開発
http://tukiyo.github.io/
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした