Samba - alandrade21/docsCompartilhados GitHub Wiki
sudo apt install samba
sudo smbpasswd -a andre
Configure o arquivo /etc/samba/smb.conf
. Exemplo abaixo:
# NOTE: Whenever you modify this file you should run the command
# "testparm" to check that you have not made any basic syntactic
# errors.
#======================= Global Settings =======================
[global]
## Browsing/Identification ###
netbios name = pegasus
serverstring = Computador do André
workgroup = SOLER-ANDRADE
wins support = yes
;wins server = 192.168.1.7
#### Debugging/Accounting ####
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
####### Authentication #######
server role = standalone server
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
invalid users = root
hosts allow = 192.168.1.
############ Browse Options ###########
os level = 90
local master = yes
preferred master = no
#======================= Share Definitions =======================
[homes]
comment = Home Directories
browseable = no
read only = no
create mask = 0700
directory mask = 0700
valid users = %S
vfs objects = recycle
recycle:keeptree = yes
recycle:versions = yes
sudo service smbd restart