LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-03-2006, 10:13 PM   #1
lnthai2002
Member
 
Registered: Jan 2005
Location: Montreal, QC, CANADA
Distribution: Red Hat Fedora
Posts: 135

Rep: Reputation: 15
how to share a folder on fat32 using samba?


Hi
I have SAMBA 3.0.10-1.4E.2 running on centOS 4 and here is my /etc/samba/smb.conf
<code>
[global]
netbios name = Darkportal
server string = SAMBA %v on (%L)
workgroup = MSHOME
log level = 2
#log file = /var/log by default, /var/log has samba log directory
max log size = 50
debug timestamp = yes
socket options = TCP_NODELAY IPTOS_LOWDELAY
guest ok = no
#this is used to let win98, winNT to connect to SAMBA
encrypt passwords = yes
hosts allow = 192.168.2. localhost

#this is used to guess if a user is trying to connect to his home dir on the unix server
#[home]
# browseable = no
# map archieve = yes

#similar to home, this is used to guess if a printer is available in the unix server
#[printers]
# path = /usr/tmp
# guest ok = no
# printable = yes
# min print space = 2000

[share]
path = /mnt/fat32/share
comment = shared data
browseable = yes
writeable = yes
# read only = yes
guest ok = yes
guest only = yes
guest account = user
</code>
After restart smb, and check by
<code>smbclient -U% -L localhost</code>
i got
<code>Domain=[MSHOME] OS=[Unix] Server=[Samba 3.0.10-1.4E.2]

Sharename Type Comment
--------- ---- -------
share Disk shared data
IPC$ IPC IPC Service (SAMBA 3.0.10-1.4E.2 on (darkportal))
ADMIN$ IPC IPC Service (SAMBA 3.0.10-1.4E.2 on (darkportal))
Domain=[MSHOME] OS=[Unix] Server=[Samba 3.0.10-1.4E.2]

Server Comment
--------- -------
DARKPORTAL SAMBA 3.0.10-1.4E.2 on (darkportal)

Workgroup Master
--------- -------
MSHOME DARKPORTAL
</code>
Here is the questions:
When i open Network Server, i see Windows Network but when i click on it i dont see anything else although 3 of my windows XP pro clients are sharing many folders. Do i have to setup anything to make Nautilus(Network Server) see shares on windowsXP?
On Windows XP pro clients, Network Neighbourhood can see the centOS machine but double click on it give error that the server is unreachable. Do i have to config anything on Windows XP pro client to access shares on samba on the linux machine?
I know that there is something Microsoft called "simple fire sharing" on windows XP that could cause the problem but although i tried to disable it, i still get the same problem
Hope anyone can help
Thai
 
Old 02-04-2006, 07:20 PM   #2
kyriakos
Member
 
Registered: Dec 2005
Location: Greece, Xanthi
Distribution: Red Hat 9, FreeBSD 5.4
Posts: 38

Rep: Reputation: 15
the easiest way to share with win XP is to put in your smb.conf GLOBAL security = share, guest ok = yes and make a comment of hosts allow = 192.168.2. localhost in case you r not in 192.168.2.

try testparam and see if you see the share

and if it doesnt work you should try WINS

this is a sample of my smb.conf

[global]
netbios name = nemesis
workgroup = servers
server string = All Esties Server
hosts allow = 192.168.
load printers = no
security = share
encrypt passwords = yes

socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192


local master = yes
os level = 250
preferred master = yes
domain master = yes
name resolve order = wins host bcast

wins support = yes
dns proxy = no

========


if you use wins support = yes then you should put your servers ip in windows WINS address (in tcp/ip options)
 
Old 02-04-2006, 10:35 PM   #3
lnthai2002
Member
 
Registered: Jan 2005
Location: Montreal, QC, CANADA
Distribution: Red Hat Fedora
Posts: 135

Original Poster
Rep: Reputation: 15
If i use wins then i must use static IP address in all windows machine. However, my uncle prefer using a dynamic IP. Is there anyway to work around?
Thanks
 
Old 02-04-2006, 11:46 PM   #4
kyriakos
Member
 
Registered: Dec 2005
Location: Greece, Xanthi
Distribution: Red Hat 9, FreeBSD 5.4
Posts: 38

Rep: Reputation: 15
Wins has notthing to do with static ip. you can configure your linux box to be a DCHP server. That means it can give dynamic ips but first try to fix your smb.conf as I told you above and u will see that everything will work
 
Old 02-08-2006, 04:35 PM   #5
lnthai2002
Member
 
Registered: Jan 2005
Location: Montreal, QC, CANADA
Distribution: Red Hat Fedora
Posts: 135

Original Poster
Rep: Reputation: 15
I did try wins but the windows machines still refuse to connect to linux althought i can connect from the linux server using smbclient. I guess there is something wrong with the port or firewall. I have SElinux enable. Do i have to open any port in iptable?

Last edited by lnthai2002; 02-10-2006 at 08:57 PM.
 
  


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
SAMBA Public Share Folder Echo Kilo Linux - Software 3 06-17-2008 01:32 AM
Samba - Share definition on a folder under a home directory craig467 Linux - Software 9 06-07-2005 03:29 AM
samba mount to windows share folder lewkh Red Hat 1 03-01-2005 03:31 PM
Can't see files in a FAT32 Folder +joni Mandriva 4 05-10-2004 11:48 AM
can't mount to windows share folder using samba yawhum80 Linux - Software 4 10-24-2003 11:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:16 PM.

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