Когда я запускаю smbstatus --shares
я не вижу ни одной акции.
Это в конце моего /etc/samba/smb.conf
:
[Share]
path = /var/www
available = yes
valid users = robert
read only = no
browsable = yes
public = yes
writable = yes
Это результат testparm
:
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[homes]"
Processing section "[printers]"
Processing section "[Share]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
# Global parameters
[global]
workgroup = MYGROUP
server string = Samba Server
server role = standalone server
log file = /usr/local/samba/var/log.%m
max log size = 50
dns proxy = No
idmap config * : backend = tdb
[homes]
comment = Home Directories
read only = No
browseable = No
[printers]
comment = All Printers
path = /usr/spool/samba
printable = Yes
browseable = No
[Share]
path = /var/www
valid users = robert
read only = No
guest ok = Yes
Я создал пользователя samba robert
с помощью smbpasswd -a robert
а также перезапустил samba с помощью sudo service samba restart
.
Изменить: Это результат smbclient -L 127.0.0.1 -U robert
:
Domain=[MYGROUP] OS=[Windows 6.1] Server=[Samba 4.3.11-Ubuntu]
Sharename Type Comment
--------- ---- -------
Share Disk
IPC$ IPC IPC Service (Samba Server)
robert Disk Home Directories
Domain=[MYGROUP] OS=[Windows 6.1] Server=[Samba 4.3.11-Ubuntu]
Server Comment
--------- -------
SHARE Samba Server
Workgroup Master
--------- -------
MYGROUP SHARE