• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

samba again

daniel49

Diamond Member
ok reading a how to book I got from library now but its a bit oudated samba 2 and I got samba 3.
seems like I have my network eth0 ok smb and nmb is running.
shares enabled, workgroup.
In fact nautilus shows my workgroup but my fedora is the only member.
I cannot see the windows shares.
according to this book netbeiu, and ipx may create problems for samba could this be the case?
trouble is I use those for my lan gaming so don't rally want to disable them....what else should I be checking on the windows side of things?
 
Originally posted by: skyking
post your smb.conf


ok here it is at the moment. keep changing it according to what I read next.

# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2005/06/09 21:20:27

# Global parameters
[global]
workgroup = EPSILON
server string = mylinuxbox
username map = /etc/samba/smbusers
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = /etc/printcap
dns proxy = No
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
guest ok = Yes
hosts allow = 192.168.0.1, 169.254.85.96
cups options = raw

[homes]
comment = Home Directories
path = %H
valid users = %S
read only = No

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
 
try this, (from command line, I don't know any of the gui tools)

cd /mnt
mkdir test
mount -t smbfs -o username="usernameonwindowsbox" //servername/sharename /mnt/test


As a quick breakdown, we are issuing a simple mount, -t specifies type (SMBFS, Samba file system) -o lets you give credentials in the username=XXX,password=XXX (Can leave password out, it will prompt you. Bad thing about putting the password in is it's in your bash history) Unc path is the same as it's always been, //server/share and the last part is mount point, /mnt/test

that will let you know if the shares are working and if the box can connect. From there, to use nautilus would be configuration of network stuff. I am no help there, I don't use X much.
 
Whats the name or domain of the windows group?

I believe that for natilus it's /// at the address bar to see your samba shares.
 
Originally posted by: nweaver
try this, (from command line, I don't know any of the gui tools)

cd /mnt
mkdir test
mount -t smbfs -o username="usernameonwindowsbox" //servername/sharename /mnt/test


As a quick breakdown, we are issuing a simple mount, -t specifies type (SMBFS, Samba file system) -o lets you give credentials in the username=XXX,password=XXX (Can leave password out, it will prompt you. Bad thing about putting the password in is it's in your bash history) Unc path is the same as it's always been, //server/share and the last part is mount point, /mnt/test

well it created test directory fine.
it accepted mount -tsmbfs-o
it accepted username="me" //windowsmachinename/shareddocsfolder/mnt/test

through nautilus I now have icon that prompts me for password for my homes share on linux box so that side seems to be working.
windows side does not show and I cannot ping windows box have tried turning off iptables before should i try it again?

also cannot ping linux box from command prompt in xp :frown:

 
do:

smbclient -L <ip of a windows host>

I noticed that you don't have a wins entry in your smb.conf.

You should have a line in there:

wins server = <wins server>

or have samba act as the wins server:

wins support = yes
name resolve order = wins lmhosts host bcast


Is this just a workgroup with workstations or is there a machine running network services?

Just found this Link

SMB:/// not just ///
 
Originally posted by: TGS
do:

smbclient -L <ip of a windows host>

I noticed that you don't have a wins entry in your smb.conf.

You should have a line in there:

wins server = <wins server>

or have samba act as the wins server:

wins support = yes
name resolve order = wins lmhosts host bcast


Is this just a workgroup with workstations or is there a machine running network services?

Just found this Link

SMB:/// not just ///

ok have changed smb.conf to so:

# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2005/06/09 21:20:27

# Global parameters
[global]
log file = /var/log/samba/%m.log
idmap gid = 16777216-33554431
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
guest ok = Yes
username map = /etc/samba/smbusers
hosts allow = 192.168.0.1, 169.254.85.96
wins support = true
dns proxy = No
cups options = raw
netbios name = FEDORA
server string = mylinuxbox
idmap uid = 16777216-33554431
workgroup = EPSILON
os level = 20
printcap name = /etc/printcap
max log size = 50

[homes]
comment = Home Directories
path = %H
valid users = %S
read only = No

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No


normally these two machines have a simple peer to peer connection in windows in workgroup epsilon.(master drive machine 1(XP) to master drive(XP) machine 2)
the linux installation is on its own drive slaved off the drive that usually connects to the other machine.
(so now I am attempting to go (master drive machine 1(XP) to slave drive(fedora core3) machine 2)
after having chosen to boot into fedora instead of xp from grub menu.
hope that makes sense🙂


 
So

Two machines,

(A) WinXP

(B) Winxp/Fedora

Booting machine 2, into Fedora.

(B) machine running with Fedora is running samba.



Assuming that is correct, you said a peer to peer connection. So you are in a direct connect, or switched environment and using just netbeui for name resolution. Once the samba services are setup, try using smb:/// to view all local resources in nautilus. If that doesn't work try a "smbclient -L <ip of a windows host>".

If the network settings are the same in Fedora you should be able to see the other windows host. Wins really isn't needed to talk to resources on the same subnet. IE if machine (A) is 192.168.0.1 and (B) is 192.168.0.2.

I'd recommend if the above routes do not work, double check to make sure network connectivity is established between hosts.
 
check firewalls, I think it's iptables -F to flush all rules. Windows, disable all firewalls and check for basic ping connectivity.
 
Originally posted by: TGS
So

Two machines,

(A) WinXP

(B) Winxp/Fedora

Booting machine 2, into Fedora.

(B) machine running with Fedora is running samba.


You have a clear picture of exsisting setup

Assuming that is correct, you said a peer to peer connection. So you are in a direct connect, or switched environment and using just netbeui for name resolution. Once the samba services are setup, try using smb:/// to view all local resources in nautilus. If that doesn't work try a "smbclient -L <ip of a windows host>".

ok lets see if I understand what your saying here click on computer icon then windows networking icon then epsilon icon or how deep in nautilus do i go this is levels i see so far(computer/windows networking/epsilon/fedora(only thing in there) Go up to menu and select file? if I do i see option for open location and open server. So far when I have tried this it mounts bogus share that goes no where?

the smbclient -l <ip> is that just from root?

If the network settings are the same in Fedora you should be able to see the other windows host. Wins really isn't needed to talk to resources on the same subnet. IE if machine (A) is 192.168.0.1 and (B) is 192.168.0.2.

I'd recommend if the above routes do not work, double check to make sure network connectivity is established between hosts.

 
Originally posted by: nweaver
check firewalls, I think it's iptables -F to flush all rules. Windows, disable all firewalls and check for basic ping connectivity.

turned off both firewalls temporarily does not seem to be connectivity..no ping either side.
could the net beiu or ipx be the problem like the book stated ? first thing the book did was uninstall those protocols...which I really don't want to do since i use them?
 
Originally posted by: ITJunkie
You can also run testparm from the cmd line to test your smb.conf file. Not sure if this will help or not.

yes, have tried testparm but unfortunately that does not guarantee connectivity?
 
Originally posted by: daniel49


the smbclient -l <ip> is that just from root?

IIRC when I installed the samba packages, it put the executables in my path. If you can't run from a prompt anywhere just put in the absolute path, or drop into the install directory and do ./smbclient -L (IP address). If you are talking about which user can run it, you can also do a chmod 755 smbclient so you can run as a non-root user.

turned off both firewalls temporarily does not seem to be connectivity..no ping either side.
could the net beiu or ipx be the problem like the book stated ? first thing the book did was uninstall those protocols...which I really don't want to do since i use them?


This would be a larger concern for me than the use of broadcast protocols. You are using ICMP rather than netbeui here. If you cannot establish an ICMP connection than it may be a network settings issue between the linux and windows settings.

Post your Windows ipconfig/all and linux ifconfig.

How is the network setup? A switch between machines, cross-over cable, etc?

 
Back
Top