1.1.2.1 Samba Debian 10 - sivasmartins/Documentos GitHub Wiki
> apt install samba
> samba -V
Version 4.9.5-Debian
> systemctl status smbd
> sudo ufw allow 139
> sudo ufw allow 445
> sufo ufw status
#gdbcommands : a file containing a set of entries for the GDB debugger (won’t be used at all here);
#smb.conf : the main Samba configuration file;
#tls : a directory used in order to store TLS and SSL information about your Samba server.
> useradd -rs /bin/false samba-public
> mkdir /home/samba-public
> chown samba-public /home/samba-public
> chmod u+rwx /home/samba-public
> vim /etc/samba/smb.conf
[public]
path = /example
available = yes
browsable = yes
public = yes
writable = yes
force user = samba-public
[private]
path = /private
available = yes
browsable = yes
public = no
writable = yes
valid users = <user>
> smbpasswd -a <user>
> apt install cifs-utils
#mount -t cifs //<server_ip>/<share_name> <mountpoint>
> mount -t cifs //SERVER_IP/public /mnt/samba
# Password for root@//192.168.1.24/public: [ENTER for public]
WinKey + R \SERVER_IP\public
> findmnt