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

Ubuntuでファイルサーバーをたてる(Samba)

More than 3 years have passed since last update.

ubuntu 14.04 及び 16.04 でのファイルサーバー構築メモです

インストール

$ sudo apt-get -y install samba 

共有するディレクトリの作成

$ sudo mkdir /home/share
$ sudo chmod 777 /home/share 

ファイルサーバーの設定

$ sudo nano /etc/samba/smb.conf
smb.conf
# 25行目:以下2行追記
unix charset = UTF-8
dos charset = CP932

# 30行目:必要があれば変更 (Windows側に合わせる)
workgroup = WORKGROUP

# 51行目:コメント解除しアクセス許可IP追記
interfaces = 127.0.0.0/8 10.0.0.0/24

# 58行目:コメント解除 & 追記
bind interfaces only = yes
map to guest = Bad User

# 最終行に追記
[Share]# 任意の共有名称を指定
   path = /home/share# 共有フォルダ指定
   writable = yes# 書き込みOK
   guest ok = yes# ゲストユーザーOK
   guest only = yes# 全てゲストとして扱う
   create mode = 0777# フルアクセスでファイル作成
   directory mode = 0777# フルアクセスでフォルダ作成

以下のコマンドでファイルサーバーを再起動します

@ubuntu16.04
$ sudo systemctl restart smbd
$ sudo systemctl enable smbd # 自動起動設定  
@ubuntu14.04
$ sudo service smbd restart 
$ sudo service smbd enable # 自動起動設定

これで、他のPCから smb://"ip-address" にアクセスすればファイルサーバーを使えます

参考: https://www.server-world.info/query?os=Ubuntu_16.04&p=samba

msrks
Computer Scienceと物理が好きです
http://msrks.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
ユーザーは見つかりませんでした