LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 01-24-2012, 04:58 AM   #1
ksmatthews
Member
 
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 ...

https://help.ubuntu.com/11.04/server...ileserver.html

The config looks like this ...

[share]
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 ?

regards,

Steven M
 
Old 01-24-2012, 05:18 AM   #2
MartinStrec
Member
 
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
or
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, 07:43 AM   #3
tha.siegrist
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):

[global]
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
socket options = TCP_NODELAY IPTOS_LOWDELAY
preferred master = Yes
domain master = Yes
wins support = Yes
socket address = xxx.xxx.xxx.xxx
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
 
  


Reply


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 11:26 AM
Communication between Linux to Windows rasa Linux - Server 9 09-03-2009 08:08 AM
communication between windows and linux problem naveenisback Linux - Software 1 07-02-2009 09:16 AM
communication library for linux and windows jwstric2 Programming 3 02-10-2005 06:20 PM
Windows - Linux communication sujte Programming 1 09-17-2004 09:36 PM


All times are GMT -5. The time now is 06:16 AM.

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