Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 01-24-2012, 03:58 AM   #1
Registered: Aug 2008
Posts: 86

Rep: Reputation: 15
Question Linux - Windows communication

I have installed and set up a Samba server on my Linux (Ubuntu) using this simple tutorial ...

The config looks like this ...

comment = Ubuntu File Server Share
path = /srv/samba/share
browsable = yes
guest ok = yes
read only = no
create mask = 0755

restart ...

sudo restart smbd
sudo restart nmbd

I cannot however see /srv/samba/share from the windows machine using win explorer.

What might I be doing wrong ?

As I understand it Samba enables windows clients to connect to Linux servers running a Samba server ...

How can a Linux client connect to another windows machine within the same LAN ?


Steven M
Old 01-24-2012, 04:18 AM   #2
Registered: Jan 2012
Location: Czech
Distribution: Fedora, RHEL, Ubuntu, Mint
Posts: 110

Rep: Reputation: 13
Try windows explorer to connect you server directly (not browsing) e.g. type into the adderss \\my-server-ip\share

If that works, check workgroup settings and wins, windows uses that to detect network shares. If it doesn't work, check if firewall enables samba.

Linux can connect windows shares (samba) over samba protocol. Use smb* commands for CLI communication or mount samba share as a local path. That depends on your system, most common cases are:

mkdir /mnt/share
mount -t cifs windows-pc-or-ip/share -o username=vivek,password=myPassword /mnt/share
mount -t smbfs windows-pc-or-ip/share -o username=vivek,password=myPassword /mnt/share

or use GVFS, so when you are running linux desktop (GNOME or other), find 'Connect computer' or something so in the menu.
Old 01-26-2012, 06:43 AM   #3
LQ Newbie
Registered: Jan 2012
Location: Bern, Switzerland
Distribution: SuSE Ubuntu RedHat AIX HP-UX
Posts: 3

Rep: Reputation: Disabled
How does your smb.conf look in the global part (see example below):

workgroup = WORKGROUP
netbios name = servername
netbios aliases = SERVERNAME
server string = Samba Server 1
log level = 1
max log size = 50
max xmit = 65535
time server = Yes
preferred master = Yes
domain master = Yes
wins support = Yes
socket address =
usershare max shares = 100
usershare allow guests = No
security = user
encrypt passwords = true
passdb backend = smbpasswd:/etc/samba/smbpasswd
map to guest = bad user
username map = /etc/samba/smbusers
strict locking = no


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
serial port communication between linux & windows agk Linux - General 4 07-25-2011 10:26 AM
Communication between Linux to Windows rasa Linux - Server 9 09-03-2009 07:08 AM
communication between windows and linux problem naveenisback Linux - Software 1 07-02-2009 08:16 AM
communication library for linux and windows jwstric2 Programming 3 02-10-2005 05:20 PM
Windows - Linux communication sujte Programming 1 09-17-2004 08:36 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:05 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration