LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-17-2006, 07:13 PM   #1
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: Ubuntu 18.04.3 LTS
Posts: 539

Rep: Reputation: 30
shared directory


I have a home network behind a NAT.
Each box on the network has an ip addr like 192.168.0.x

I want to have a shared directory on the linux box that my windows box can read/write.
I created /mnt/shared and 777'd it.
I added a [data] segment to the /etc/samba/smb.conf file like so:

[data]
path = /mnt/shared
comment = Transfer all data here.
volume = Data-Drive
writeable = yes
guest ok = yes

Anything else?
How do I get windows to see it?

Using Win2K and Suse 9.2
 
Old 03-17-2006, 08:01 PM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
all the computers can ping each other?

make sure "hosts allow =" includes "192.168.0."

as long as smbd is running, the SuSE should receive share requests quite happily. Windows computers should connect to the share automagically.
 
Old 03-18-2006, 02:13 AM   #3
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: Ubuntu 18.04.3 LTS
Posts: 539

Original Poster
Rep: Reputation: 30
The linux machine can ping the windows machine and vice versa.

If i do a 'top' command, I see smbd in the list.

Quote:
make sure "hosts allow =" includes "192.168.0."
Not sure what you mean...where is "host allow ="?
I don't see anything like that in smb.conf
 
Old 03-18-2006, 02:45 AM   #4
rdwinders
LQ Newbie
 
Registered: May 2005
Location: Seattle
Distribution: Fedora Core 6
Posts: 26

Rep: Reputation: 15
I'm working on the same thing. I read that in windows 'windows file and printer sharing service' has to be running for samba.
 
Old 03-18-2006, 09:05 AM   #5
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: Ubuntu 18.04.3 LTS
Posts: 539

Original Poster
Rep: Reputation: 30
rdwinders, if you haven't figured it out yet, maybe we can figure it out toghether.

So, another way to tell if samba is running is to use this linux command:
> smbclient -U% -L localhost
Domain=[USERS] OS=[Unix] Server=[Samba 3.0.9-2.3-SUSE]

Sharename Type Comment
--------- ---- -------
profiles Disk Network Profiles Service
users Disk All users
groups Disk All groups
pdf Printer PDF creator
print$ Disk Printer Drivers
data Disk Transfer all data here.
IPC$ IPC IPC Service (Samba 3.0.9-2.3-SUSE)
ADMIN$ IPC IPC Service (Samba 3.0.9-2.3-SUSE)
Domain=[USERS] OS=[Unix] Server=[Samba 3.0.9-2.3-SUSE]

Server Comment
--------- -------
MYSUSEBOX Samba 3.0.9-2.3-SUSE

Workgroup Master
--------- -------
MYWINDOWSGROUP MYWINDOWSBOX
USERS MYSUSEBOX

The name of my windows machine is there (2nd last line)
So I guess that's good.
 
Old 03-18-2006, 06:01 PM   #6
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: Ubuntu 18.04.3 LTS
Posts: 539

Original Poster
Rep: Reputation: 30
Quote:
'windows file and printer sharing service' has to be running
"File and Printer Sharing for Microsoft Networks" is enabled on the Window machine
 
Old 03-18-2006, 10:28 PM   #7
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: Ubuntu 18.04.3 LTS
Posts: 539

Original Poster
Rep: Reputation: 30
http://www.novell.com/coolsolutions/tip/16815.html
 
Old 03-19-2006, 03:01 PM   #8
rdwinders
LQ Newbie
 
Registered: May 2005
Location: Seattle
Distribution: Fedora Core 6
Posts: 26

Rep: Reputation: 15
hey allelopath,
was working on the linux to windows via samba thing a couple of weeks ago, reading the 'linux fedora core 4 Bible' and following directions. Got to the point that I could see files on the windows machine and open and read them but could not copy, modify, or upload to the win machine. Seems like a permissions thing in the windows environment. I should of left alone and got some rest but instead I went on atweaking and ended up breaking it.
Am in finals week in school and then plan an upgrade to the windows box before I get back to this problem. Did the link you posted get you up and running?
 
  


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
Linux shared directory for XP sjmgeezer Linux - Networking 1 06-03-2005 10:49 PM
Where to put shared directory? mikieboy Slackware 11 02-12-2005 04:07 PM
Shared directory Sir.Del Linux - General 1 07-27-2004 01:35 PM
Problem with shared directory Tezdread Linux - Networking 5 03-16-2004 05:46 PM
Umounting NFS shared directory matta Linux - Networking 2 03-09-2004 06:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:08 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