1. 程式人生 > >Arch Linux下配置Samba

Arch Linux下配置Samba

pos ios linux下 str start 添加 sudo samba acm

本文記錄筆者配置Samba的過程,供用於自用。

sudo pacman -S samba

這是不需要權限,直接訪問的方法:

sudo vim /etc/samba/smb.conf  添加以下內容

[global]

workgroup=WORKGROUP

server string=Samba Server %v

netbios name=arch linux

security=user

map to guest=bad user

dns proxy=no

[Cong‘s shares]

path=/home/shares

browsable=yes

writable=yes

guest ok=yes

read only=no

sudo chmod 777 /home/shares

sudo systemctl restart smbd

sudo systemctl enable smbd

Arch Linux下配置Samba