Can't see Linux shares with Windows [SOLVED]

Connection sharing, Firewall, Samba..etc
Forum rules
Before you post please read this

Can't see Linux shares with Windows [SOLVED]

Postby txtinman on Sat Dec 29, 2012 11:46 pm

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 txtinman on Sun Dec 30, 2012 6:12 pm, edited 1 time in total.
txtinman
Level 1
Level 1
 
Posts: 6
Joined: Sun May 15, 2011 12:28 am

Linux Mint is funded by ads and donations.
 

Re: Can't see Linux shares with Windows

Postby Fornhamfred on Sun Dec 30, 2012 3:51 am

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.

viewtopic.php?f=90&t=120290&p=662054&hilit=sharing+with+windows#p662054

Good Luck
Fornhamfred
Level 6
Level 6
 
Posts: 1134
Joined: Wed Oct 31, 2007 3:38 pm
Location: Suffolk UK

Re: Can't see Linux shares with Windows

Postby opensam on Sun Dec 30, 2012 6:40 am

i had the same problem in lm11..
mayb this will help
http://forums.linuxmint.com//viewtopic.php?f=150&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.
opensam
Level 1
Level 1
 
Posts: 15
Joined: Wed Oct 24, 2012 9:37 am

Re: Can't see Linux shares with Windows

Postby altair4 on Sun Dec 30, 2012 8:57 am

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.
altair4
Level 15
Level 15
 
Posts: 5966
Joined: Tue Feb 03, 2009 10:27 am

Re: Can't see Linux shares with Windows

Postby txtinman on Sun Dec 30, 2012 2:15 pm

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.
txtinman
Level 1
Level 1
 
Posts: 6
Joined: Sun May 15, 2011 12:28 am

Re: Can't see Linux shares with Windows

Postby altair4 on Sun Dec 30, 2012 2:35 pm

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.
altair4
Level 15
Level 15
 
Posts: 5966
Joined: Tue Feb 03, 2009 10:27 am

Re: Can't see Linux shares with Windows

Postby opensam on Sun Dec 30, 2012 2:41 pm

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.
opensam
Level 1
Level 1
 
Posts: 15
Joined: Wed Oct 24, 2012 9:37 am

Re: Can't see Linux shares with Windows

Postby txtinman on Sun Dec 30, 2012 6:15 pm

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.
txtinman
Level 1
Level 1
 
Posts: 6
Joined: Sun May 15, 2011 12:28 am

Linux Mint is funded by ads and donations.
 

Return to Other networking topics

Who is online

Users browsing this forum: No registered users and 7 guests