LoginSignup
2
1

More than 5 years have passed since last update.

ubuntu上でsambaを構築してmacosでアクセスできるようにする

Posted at

目的

Linuxドライバ開発用にLinux上でビルドを行いたい。コード編集などはmacでやりたいので、ファイルのやりとりをsambaでやろうと思う

https://www.virment.com/config-sambaserver/
を参考に構築した

やったことリスト

コマンド一覧

sudo useradd -m user_1 # Add Linux user 
sudo pdbedit -a user_1 # Add samba user
sudo groupadd samba # Add Linux group
sudo gpasswd -a user_1 samba 

smb.conf

 cat /etc/samba/smb.conf

[global]
   dos charset = CP932
   unix charset = UTF-8
   display charset = UTF-8
   security = user
   map to guest = Bad User
   account = nobody  

[share]
   path = /home/user_1/share_dir
   writeable = true
   #force create mode = 0666
   #force directory mode = 0777
   #guest ok = yes
   public = yes

この設定でFinderからsamba接続をして読み書きが出来た

2
1
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
2
1