Running ubuntu 16.04. desktop. Samba installed and client is working as expected. Ubuntu can access the windows machines. The problem is the samba server does not seem to be working. I used the info from this page https://ubuntu.com/server/docs/samba-file-server and followed the steps there to configure the samba server on ubuntu. I used this guide How can I edit the lightdm.conf file and save it? and edited the smb.conf file. I used gedit to edit the conf file. I closed terminal and checked that the conf file had the edits I needed. I restart the server to make sure on startup everything was working and I would think that would have caused the smb.conf file to be read with the changes I made. Did not work. From windows I still can not access the share I configured in the smb.conf file. Would be gratefull for any help. From windows I get windows can not access and the name of the share I am trying to access.
testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
WARNING: The "syslog" option is deprecated
Processing section "[printers]"
Processing section "[print$]"
Processing section "[share]"
Loaded services file OK.
WARNING: The 'netbios name' is too long (max. 15 chars).
Server role: ROLE_STANDALONE
# Global parameters
[global]
server string = %h server (Samba, Ubuntu)
server role = standalone server
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
[share]
comment = Ubuntu File Server Share
path = /media/david/Elements
read only = No
create mask = 0755
guest ok = Yes
Change this:
To this:
Then restart smbd:
/media/david by design allows only david to get to the Elements folder. force user makes the "guest" network user appear to be "david" - at least for this share.
You have another problem with the host name of your machine which we can fix but see how far this gets you.