Can't see Linux shares with Windows [SOLVED]

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
txtinman
Level 1
Level 1
Posts: 22
Joined: Sun May 15, 2011 12:28 am

Can't see Linux shares with Windows [SOLVED]

Post by txtinman »

I have a desktop running LM14 and a laptop dual booting LM14 and Windows Vista. I can see and access the desktop from the laptop and the laptop from the desktop as long as both are running Linux. I cannot access the desktop from the laptop if the laptop is running Vista. I can't access the Vista files from the desktop either. I'm trying to access my music directory on the desktop from the laptop running Vista. I've enabled sharing on the music directory. What else should I do?

Mike
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
Fornhamfred
Level 6
Level 6
Posts: 1243
Joined: Wed Oct 31, 2007 3:38 pm
Location: Suffolk UK

Re: Can't see Linux shares with Windows

Post by Fornhamfred »

Hi

This is quite a common problem but I think if you look at this thread and the associated threads with it you should be able to set it up.

http://forums.linuxmint.com/viewtopic.p ... ws#p662054

Good Luck
opensam

Re: Can't see Linux shares with Windows

Post by opensam »

i had the same problem in lm11..
mayb this will help
http://forums.linuxmint.com//viewtopic. ... 0&t=116499

umm before u do any of the above just check if ur hostname is less than 15 characaters.

Code: Select all

hostname
if not either change ur hostname or follow the instructions given in above url.



Then install a package samba (it is the gui for samba). It's really easy to use.
use this gui to share whatever files u wanna share.

P.S. make sure the partitions containing ur shared files are mounted and launch the samba gui after u boot.(u can close the gui afterwards.)
Last edited by opensam on Sun Dec 30, 2012 2:43 pm, edited 1 time in total.
altair4
Level 20
Level 20
Posts: 11426
Joined: Tue Feb 03, 2009 10:27 am

Re: Can't see Linux shares with Windows

Post by altair4 »

Please post the output of the following commands from the LM14 Desktop:

Code: Select all

testparm -s

Code: Select all

net usershare info --long

Code: Select all

smbtree
When you say you cannot access the Linux share from Windows what do you mean?

** You can see the Linux host and it's shares but cannot gain access?
** Or you can't see the Linux host at all?

It makes a difference since one is a Samba issue and one is more a networking issue.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
User avatar
txtinman
Level 1
Level 1
Posts: 22
Joined: Sun May 15, 2011 12:28 am

Re: Can't see Linux shares with Windows

Post by txtinman »

Code: Select all

txtinman@txtinman-System-Product-Name ~ $ testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[printers]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
	server string = %h server (Samba, LinuxMint)
	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* .
	username map = /etc/samba/smbusers
	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
	print ok = Yes
	browseable = No

Code: Select all

txtinman@txtinman-System-Product-Name ~ $ net usershare info --long
[mike]
path=/home/mike
comment=
usershare_acl=Everyone:R,TXTINMAN-SYSTEM-PRODUCT-NAME\txtinman:F,
guest_ok=y

[Pictures]
path=/home/txtinman/Pictures
comment=
usershare_acl=Everyone:F,
guest_ok=y

[txtinman-desktop]
path=/home/txtinman
comment=
usershare_acl=Everyone:R,TXTINMAN-SYSTEM-PRODUCT-NAME\txtinman:F,
guest_ok=y

[Linux-Music]
path=/home/txtinman/Music
comment=
usershare_acl=Everyone:F,
guest_ok=y
When I entered the smbtree command I was asked for my password. After entering the password I was brought back to the command prompt.

when I say I can't access the Linux share from Windows, I mean I cannot see the Linux host at all.

A previous post says the host name should be less than 15 characters. I changed the /etc/hosts file and the /etc/hostname file but the long hostname still shows.
altair4
Level 20
Level 20
Posts: 11426
Joined: Tue Feb 03, 2009 10:27 am

Re: Can't see Linux shares with Windows

Post by altair4 »

txtinman@txtinman-System-Product-Name
Changing /etc/hosts and /etc/hostname should have fixed it only if you ran the following command:

Code: Select all

sudo service nmbd restart
If that doesn't fix it outright then edit /etc/samba/smb.conf and add a line under the workgroup line:

Code: Select all

netbios name = something
Make sure something is 15 characters or less in length
Then restart samba:

Code: Select all

sudo service smbd restart

Code: Select all

sudo service nmbd restart
EDIT: BTW, there is not one thing wrong with either your smb.conf or your usershares files.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
opensam

Re: Can't see Linux shares with Windows

Post by opensam »

A previous post says the host name should be less than 15 characters. I changed the /etc/hosts file and the /etc/hostname file but the long hostname still shows.
dude don't do that..

If it's more that 15 characters long you could change the hostname but an easier way for samba purposes is to use a samba configuration file:

Code: Select all

gksudo gedit /etc/samba/smb.conf
Add a line to the [global] section - right under the "workgroup" line is where I would put it:
netbios name = some-name

Just make sure "some-name" is 15 characters or less in length.


anyways the other guy on this topic,altair4 , is the one who helped me when i was having problems, So don't worry he'll figure it out.
User avatar
txtinman
Level 1
Level 1
Posts: 22
Joined: Sun May 15, 2011 12:28 am

Re: Can't see Linux shares with Windows

Post by txtinman »

altair4 wrote:
txtinman@txtinman-System-Product-Name
Changing /etc/hosts and /etc/hostname should have fixed it only if you ran the following command:

Code: Select all

sudo service nmbd restart
If that doesn't fix it outright then edit /etc/samba/smb.conf and add a line under the workgroup line:

Code: Select all

netbios name = something
Make sure something is 15 characters or less in length
Then restart samba:

Code: Select all

sudo service smbd restart

Code: Select all

sudo service nmbd restart
EDIT: BTW, there is not one thing wrong with either your smb.conf or your usershares files.
OK. This did the trick. Thank you very much.
Locked

Return to “Networking”