Can't stop questioning!

Install Samba on Ubuntu

Tuyen D. Le August 20, 2023 [Server] #samba

1. Install samba package

sudo apt-get update
sudo apt-get install samba

2. Configure samba

  1. Change samba user password

You need to change the user name according to your current Linux system.

# ldtuyen is existing user in Linux
sudo  smbpasswd -a ldtuyen				
  1. Change samba configuration
# edit the bellow configuration according to your system
sudo vi /etc/samba/smb.conf

[ldtuyen]
path = /home/ldtuyen
available = yes
valid users = ldtuyen
read only = no
browsable = yes
public = yes
writable = yes
  1. Restart samba service
sudo /etc/init.d/smbd restart

3. Configure Windows machine

On your Windows machine, right click to the My Computer icon >> Map network Drive >> Folder: \YOUR_SAMBA_IP_ADDRESS\ldtuyen

YOUR_SAMBA_IP_ADDRESS need to be replaced by the actual IP address of your Linux machine.