[SOLVED] linux mint 19 samba woes

Connection sharing, Firewall, Samba..etc
Forum rules
Before you post please read how to get help
Post Reply
User avatar
Minty_64
Level 2
Level 2
Posts: 61
Joined: Mon Jun 30, 2014 3:18 am

[SOLVED] linux mint 19 samba woes

Post by Minty_64 » Sat Jul 21, 2018 10:15 am

so I had a computer die recently and I had everything working perfectly on it, the hard drive was still okay so all my files where safe and I bought a new computer. anyway it's been a while since I messed with samba and troubleshot a problem in linux mint so here is my problem: I can't get my linux mint 19 computer to even see my windows 10 computer and the windows 10 computer can see the mint computer but cannot connect.

I have messed with the smb.conf file with the help of forums on the net to no avail, any help would be appreciated
Last edited by Minty_64 on Sat Jul 21, 2018 12:01 pm, edited 1 time in total.

altair4
Level 19
Level 19
Posts: 9187
Joined: Tue Feb 03, 2009 10:27 am

Re: linux mint 19 samba woes

Post by altair4 » Sat Jul 21, 2018 10:25 am

For the can't see the Win10 machine issue you may be in a paradox:
Mint 19 and Samba File Sharing Changes
Samba and Windows 10

For the cannot conect to the Linux machine I have no idea how you set up your shares. Why not post the output of the following commands:

Code: Select all

testparm -s

Code: Select all

net usershare info --long
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

User avatar
Minty_64
Level 2
Level 2
Posts: 61
Joined: Mon Jun 30, 2014 3:18 am

Re: linux mint 19 samba woes

Post by Minty_64 » Sat Jul 21, 2018 10:38 am

testparm -s

Code: Select all

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.
Server role: ROLE_STANDALONE

# Global parameters
[global]
	dns proxy = No
	log file = /var/log/samba/log.%m
	map to guest = Bad User
	max log size = 1000
	name resolve order = bcast host lmhosts wins
	obey pam restrictions = Yes
	pam password change = Yes
	panic action = /usr/share/samba/panic-action %d
	passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
	passwd program = /usr/bin/passwd %u
	security = USER
	server role = standalone server
	server string = %h server (Samba, Ubuntu)
	syslog = 0
	unix password sync = Yes
	username map = /etc/samba/smbusers
	usershare allow guests = Yes
	idmap config * : backend = tdb


[printers]
	browseable = No
	comment = All Printers
	create mask = 0700
	path = /var/spool/samba
	printable = Yes


[print$]
	comment = Printer Drivers
	path = /var/lib/samba/printers


[share]
	path = /home/name/share
	read only = No
	valid users = sambaguest
net usershare info --long
comes up empty

altair4
Level 19
Level 19
Posts: 9187
Joined: Tue Feb 03, 2009 10:27 am

Re: linux mint 19 samba woes

Post by altair4 » Sat Jul 21, 2018 10:46 am

Nothing wrong with your smb.conf assuming:

** smbguest is an actual user name on the Linux box
** and you added it to the samba password database ( as in sudo smbpasswd -a smbguest ).
** and the Linux permissions on the /home/name/share folder allow access to that user.
** and you didn't do anything funky in /etc/samba/smbusers.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

User avatar
Minty_64
Level 2
Level 2
Posts: 61
Joined: Mon Jun 30, 2014 3:18 am

Re: linux mint 19 samba woes

Post by Minty_64 » Sat Jul 21, 2018 10:58 am

yeah, I had a set up already running with 18.3 which was upgraded since 17 on the computer that died, but this is a fresh install so who knows what I'm missing and that was years ago that I got it running.

its a name on the box
added a password
has access
haven't touched /etc/samba/smbusers.

altair4
Level 19
Level 19
Posts: 9187
Joined: Tue Feb 03, 2009 10:27 am

Re: linux mint 19 samba woes

Post by altair4 » Sat Jul 21, 2018 11:32 am

Then there is no reason why Win10 cannot access it. What is the error message?
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

User avatar
Minty_64
Level 2
Level 2
Posts: 61
Joined: Mon Jun 30, 2014 3:18 am

Re: linux mint 19 samba woes

Post by Minty_64 » Sat Jul 21, 2018 11:33 am

so now i can see the windows 10 machine thanks to the link altair4 gave me however I can't access the computer as the connection times out, that means neither machine can contact either machine and both time out, but now the see each other it's is progress.

altair4
Level 19
Level 19
Posts: 9187
Joined: Tue Feb 03, 2009 10:27 am

Re: linux mint 19 samba woes

Post by altair4 » Sat Jul 21, 2018 11:41 am

If you can see the Win10 machine in your file manager you will not be able to connect to it. Linux will use SMB1 to "see" the other machines but WIn10 disabled SMB1.

If you can't see the Win10 machine you will be able to connect to it but you have to do it explicitly in your file manager by name ( smb://win10-host-name ) , it's mDNS host name ( smb://win10-host-name.local) or by ip address ( smb://192.168.0.100 ).

This is the paradox that I mentioned before.

And remember Win10 can always access a Linux box by it's mDNS name. So on Win10 access your Mint machine with a:
\\mint-host-name.local
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

User avatar
Minty_64
Level 2
Level 2
Posts: 61
Joined: Mon Jun 30, 2014 3:18 am

Re: linux mint 19 samba woes

Post by Minty_64 » Sat Jul 21, 2018 11:47 am

"check the spelling of the name" and asks to diagnose or cancel, diagnosing does nothing.

oh okay so what you are saying is i need to connect manually instead of clicking on things

Post Reply

Return to “Other networking topics”