LoginSignup
1
2

More than 5 years have passed since last update.

Ubuntu Server に Samba を設定

Last updated at Posted at 2016-11-14

Ubuntu server に samba を設定

おもにココを参考
https://www.server-world.info/query?os=Ubuntu_14.04&p=samba

インストール

~# apt-get -y install samba

設定

~# mkdir /home/share 
~# chmod 777 /home/share 
~# vi /etc/samba/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

# 60行目:追記 (認証なし)
map to guest = Bad User

# 最終行に以下7行追記
[Share]    # テキトーに好きな名前指定
   path = /home/share       # 共有フォルダ指定
   writable = yes           # 書き込みOK
   guest ok = yes           # ゲストユーザーOK
   guest only = yes         # 全てゲストとして扱う
   create mode = 0777       # フルアクセスでファイル作成
   directory mode = 0777    # フルアクセスでフォルダ作成
   share modes = yes        # 複数人が同一ファイルに同時アクセス時に警告

samba 再起動

~# service smbd restart 
1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2