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