LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 03: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, 04:18 AM   #2
MartinStrec
Member
 
Registered: Jan 2012
Location: Czech
Distribution: Fedora, RHEL, Ubuntu, Mint
Posts: 110

Rep: Reputation: 14
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, 06: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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:38 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration