๐๐ป Samba Server๋ ๋ค๋ฅธ ์ด์์ฒด์ ๋ ๊ธฐ๊ธฐ์์ ๋คํธ์ํฌ๋ก ์๋ฒ์ ์ ์ํ ์ ์๋๋ก ๋์์ค๋๋ค.(์๋์ฐ ํ์ผ๊ณต์ )
Samba Server allows you to connect to a server over a network from other operating systems or devices (Windows file sharing).
๐๐ป ์ค์น / Install
sudo apt install samba
๐๐ป ์ค์ ํ์ผ ์์ / Edit configuration file
โ๏ธ ๋ค์ ์ค์ ํ์ผ์ ์์ ํฉ๋๋ค. / Modify the following settings file
sudo nano /etc/samba/smb.conf
โ๏ธ ํ์ผ ๋์ ๋ค์ ๋ด์ฉ์ ์ถ๊ฐํฉ๋๋ค. / Add the following to the end of the file
[share]
path = /home/์ฌ์ฉ์/share
browsable = yes
writable = yes
valid users = ์ฌ์ฉ์๋ช
/ Username
create mask = 0664
directory mask = 0775
โ๏ธ ๊ฒ์คํธ ์ค์ / Guest settings
[share]
path = /home/์ฌ์ฉ์/share
browsable = yes
writable = yes
guest ok = yes
read only = no
โ๏ธ samba ์๋ฒ ๋น๋ฐ๋ฒํธ ์ถ๊ฐ / Add samba server password
โญ๏ธ sudo smbpasswd -a ์ฌ์ฉ์๋ช
๋ช
๋ น์ผ๋ก Samba ์ ์ฉ ๋น๋ฐ๋ฒํธ๋ฅผ ์ค์ ํ์ง ์์ผ๋ฉด, ๋ค๋ฅธ ์ด์์ฒด์ (๋งฅ, ์๋์ฐ, ์๋๋ก์ด๋ ๋ฑ)์์ ๋น๋ฐ๋ฒํธ ์ธ์ฆ์ด ํ์ํ ๊ณต์ ํด๋์ ์ ์ํ ์ ์์ต๋๋ค.
If you do not set a Samba-specific password using the sudo smbpasswd -a username command, you will not be able to access shared folders that require password authentication from other operating systems (Mac, Windows, Android, etc.).
sudo smbpasswd -a ์ฌ์ฉ์๋ช
/Username # Samba ๋น๋ฐ๋ฒํธ ์ค์ / Setting the Samba password
โ๏ธ samba ์๋ฒ ์ฌ์์ / Restart the Samba server
sudo systemctl restart smbd
๋๋ / or
sudy service samba restart
๐๐ป UFW ๋ฐฉํ๋ฒฝ ์คํ / UFW firewall open
sudo ufw allow samba
sudo ufw reload
๐๐ป ๋งฅ์์ ์ ์ / Connect from Mac
โ๏ธ ์๋จ ๋ฉ๋ด์์ ์๋ฒ์ฐ๊ฒฐ์ ์ ํํฉ๋๋ค. (๋จ์ถํค: Command + K)
Select Server Connection from the top menu (shortcut: Command + K)
โ๏ธ ์๋ฒ ์ฃผ์ ์
๋ ฅ์ฐฝ์ด ๋จ๋ฉด ๋ค์ ์ฒ๋ผ ์ฃผ์๋ฅผ ์
๋ ฅํฉ๋๋ค.
When the server address input window appears, enter the address as follows.
— smb://Xubuntu-PC์-IP-์ฃผ์ ์: smb://192.168.1.100
โ๏ธ ์ฐ๊ฒฐ ๋ฒํผ์ ๋๋ฅด๋ฉด ์ธ์ฆ์ฐฝ์ด ๋ํ๋ฉ์ด๋ค.
When you click the connect button, an authentication window will appear.
โ๏ธ ๋ฆฌ๋
์ค ์ฌ์ฉ์์ด๋ฆ๊ณผ sudo smbpasswd -a๋ก ์ค์ ํ samba์ ์ฉ ํจ์ค์๋๋ฅผ ์
๋ ฅํฉ๋๋ค.
Enter your Linux username and the Samba-specific password you set with sudo smbpasswd -a.
โ๏ธ ์ ์์ ์ผ๋ก ์ฐ๊ฒฐ๋๋ฉด ๋ค์๊ณผ ๊ฐ์ ํ๋ฉด์ ๋ณผ ์ ์์ต๋๋ค.
If connected successfully, you will see the following screen.

