Install Samba server on Ubuntu

Започео admin, Феб 2022 08:56:03

« претходна тема - следећа тема »

admin

sudo apt update
sudo apt-get install samba

Starting, Stopping, and Restarting Samba

sudo systemctl stop smbd
sudo systemctl start smbd
sudo systemctl restart smbd

sudo systemctl status smbd.service

Configuration file of the Samba Server:
/etc/samba/smb.conf

Create a Samba User and a Password

sudo adduser smbuser
sudo smbpasswd -a smbuser

Configuring a Basic Samba Share

sudo mkdir /var/freeshare
sudo chmod 755 /var/freeshare/
sudo chown smbuser /var/freeshare

/etc/samba/smb.conf file:

[freeshare]
path=/var/freeshare
browseable = yes
read only = no
valid user=smbuser

sudo systemctl reload smbd.service

8)

admin