Page 1 of 1

Can't see Linux shares with Windows [SOLVED]

Posted: Sat Dec 29, 2012 11:46 pm
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

Re: Can't see Linux shares with Windows

Posted: Sun Dec 30, 2012 3:51 am
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

Re: Can't see Linux shares with Windows

Posted: Sun Dec 30, 2012 6:40 am
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.)

Re: Can't see Linux shares with Windows

Posted: Sun Dec 30, 2012 8:57 am
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.

Re: Can't see Linux shares with Windows

Posted: Sun Dec 30, 2012 2:15 pm
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.

Re: Can't see Linux shares with Windows

Posted: Sun Dec 30, 2012 2:35 pm
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.

Re: Can't see Linux shares with Windows

Posted: Sun Dec 30, 2012 2:41 pm
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.

Re: Can't see Linux shares with Windows

Posted: Sun Dec 30, 2012 6:15 pm
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.