Click to See Complete Forum and Search --> : samba?


vhg119
01-02-2002, 04:13 AM
i'm having a little problem.
i setup samba on my linux box to share a directory called /home/shared_directory.
the directory is mounted and accessed perfectly from any other linux box but i cant even "see" it from my windows boxes. the linux boxes can also mount and access windows shares perfectly.
very strange!
when i right click "my network places" (i'm running winme) and select "search for computers" and i enter the name of the linux box, i cant even find it.
keep in mind that using smbclient -L from any linux box and mounting the samba share works fine... it is only windows accessing samba shares that is fscked up.

anyone else have this problem?
i'm not at my linux box right now so i cant post my smb.conf.. but as soon as i am, i will post it up.

thank you for any help!

Keyser Soze
01-02-2002, 04:38 AM
#1 this has so many possible problems you should just read the NHF on this site.

#2 again, this one belongs in networking. ;)

vhg119
01-02-2002, 02:53 PM
i tried the nhf.
heres my smb.conf

[global]
workgroup = WORKGROUP
server string = TINA
interfaces = 192.168.0.1/24 127.0.0.1/24
security = share
log level = 0
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY
wins support = yes
os level = 65
#preferred master = yes
#domain master = yes
dns proxy = no
guest account = smbuser
hide dot files = yes
load printers = no

[SHARED]
comment = Directory
path = /home/shared_directory
read only = no
create mask = 0777
directory mask = 0777
guest ok = yes
browseable = yes
writable = yes

TheMuso
01-02-2002, 08:11 PM
For starters, you eed to have a netbios name entry in your smb.conf file. So if your server string is TINA, you could have: netbios name = TINA
server string = TINA Samba Server

If you say you cannot see your linux box, can you see your windows boxes? If not, there is a chance that you didn't log into the network with a username and password, try logging in with a username and password that is in the Samba database.

Good luck and post back with any other problems if you need to.

vhg119
01-04-2002, 04:43 PM
tried the netbios thing... didnt work.
i still cant browse my linux box from my windows box but i could browse my linux box from a linux box and my windows box from a linux box.

m3rlin
01-04-2002, 08:12 PM
vhg119 did't you edit the lmhosts, and enabled WINS and put it there the ip of the linux machine?

vhg119
01-04-2002, 10:32 PM
i fixed it... for some reason this line was the one doing it:

interfaces = 192.168.0.1/24 127.0.0.1/24

cuz when i commented it out, it works great now.. thanks alot guys.

vhg119
01-06-2002, 04:47 PM
not enuf. :D

DMR
01-07-2002, 02:59 AM
Originally posted by vhg119:
<STRONG>i fixed it... for some reason this line was the one doing it:

interfaces = 192.168.0.1/24 127.0.0.1/24

cuz when i commented it out, it works great now.. thanks alot guys.</STRONG>If 192.168.0.1 is the address of the Linux box's (there's that word again) NIC, then that part is OK. If not, it should be set to the IP of the NIC, with the proper subnet mask. For the localhost (127.0.0.1) interface, the subnet mask should be /8 (255.0.0.0), not /24 (255.255.255.0).

[ 07 January 2002: Message edited by: DMR ]