Abbiate pazienza ma sono una rapa. Ho reinstallato Ubuntu e non riesco più a condividere la cartella.....
Seguendo la guida
viewtopic.php?f=28&t=614354
Mi sono creato la
Codice: Seleziona tutto
[global]
netbios name = SRV-SAMBA
workgroup = WORKGROUP
server string = %h Samba Server - Version %v
domain logons = no
domain master = no
local master = yes
preferred master = no
os level = 3
server role = auto
security = user
encrypt passwords = yes
map to guest = Bad User
guest account = nobody
directory mask = 0755
create mask = 0644
# Protocolli di connessione che dovranno essere supportati dal client
; client min protocol = CORE
; client max protocol = default
# Protocolli di connessione supportati dal server
; server min protocol = NT1
server min protocol = SMB2
server max protocol = SMB3
# Permette la connessione dei client che supportano il protocollo di connessione LANMAN (Windows NT / 2000 / 95 / 98)
; lanman auth = yes
# Permette la connessione dei client che supportano il protocollo di connessione NTLM (Windows XP)
; ntlm auth = yes
dns proxy = yes
wins support = yes
name resolve order = lmhosts host wins bcast
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
########## Usershare ##########
# Le definizioni degli share creati tramite DE (Unity, Gnome, KDE, XFCE, ... ) vengono memorizzate nella directory /var/lib/samba/usershares
# Per condividere una qualsiasi directory del filesystem
; usershare owner only = false
# Per abilitare l'accesso agli share senza autenticazione
; usershare allow guests = yes
[Condiviso]
comment = Condiviso
path = /home/emo/Condiviso
available = yes
browseable = yes
writeable = yes
# If this parameter is yes for a service, then no password is required to connect to the service
guest ok = no
# If this parameter is yes for a service, then only guest connections to the service are permitted
# This parameter will have no effect if guest ok is not set for the service
guest only = no
Seguendo poi la guida
Riavvio il servizio
Codice: Seleziona tutto
emo@emo-Macmini:/etc/samba$ sudo systemctl restart nmbd.service
emo@emo-Macmini:/etc/samba$ sudo systemctl restart smbd.service
Verifico localmente il server
Codice: Seleziona tutto
emo@emo-Macmini:/etc/samba$ smbclient -L localhost -U="emo"%"PASSWORD"
lpcfg_do_global_parameter: WARNING: The "domain logons" option is deprecated
lpcfg_do_global_parameter: WARNING: The "encrypt passwords" option is deprecated
lpcfg_do_global_parameter: WARNING: The "syslog" option is deprecated
Sharename Type Comment
--------- ---- -------
Condiviso Disk Condiviso
IPC$ IPC IPC Service (emo-Macmini Samba Server - Version 4.15.13-Ubuntu)
SMB1 disabled -- no workgroup available
Sembra tutto ok, da PC con Winzoz pingo il server ma non riesco ad accedere alla cartella condivisa (?!?!?!)