help with samba

jhu

Lifer
Oct 10, 1999
11,918
9
81
i've got samba running on my linux machine. i'm also running win95 on vmware on the same machine. however, i'm unable to browse the shared drive under win95. my roommate's computer is also connected to this machine and his machine can't browse anything either. i know i've set up the conf file correctly 'cuz i can use the smbclient under linux to access said drive.
 

StuckMojo

Golden Member
Oct 28, 1999
1,069
1
76
2 things:

1) are you sure you have the networking in vmware set up right? can you ping the linux box from vmware/98?

2) on www.samba.org there is a page that gives a list of like 10 steps to confirm your setup is correct. i suggest you follow it, as the step that fails tells you ALOT about where to look for a problem

lastly, i (having played with it after i set up the config by hand) highly recommend the HTTP tool for setting up samba...mmm...forget the name now, but it works great and is super easy to use. the one that comes with samba...you just add a line to your inetd.conf file to activate it. grr..let me see if i can find the name of the thing...ah yes..SWAT its called, try it out, its really kewl :)

good luck, im sure an anand forum old salt like you will figure it out ;)

[edit]
found the page i was talking about:
http://us2.samba.org/samba/docs/DIAGNOSIS.html
 

jhu

Lifer
Oct 10, 1999
11,918
9
81
here's the thing, i set it up such that no password is needed (i think). i also notice that when i nmap the linux machine, nbs (or whatever it's called on port 137) isn't detected unless i run it manually. then again, that doesn't help either.
 

Damaged

Diamond Member
Oct 11, 1999
3,020
0
0
Samba is running right? You should be able to see both smbd and nmbd running if you do a ps aux. If not running, then just do a samba start.

Might also want to check your /etc/hosts.allow files and your /etc/hosts.deny files, thought that probably won't affect it. Make sure you have both tcp and udp entries for ports 137-139 in your /etc/services file, though, again, that shouldn't really affect it.

Finally you aren't running ipchains and filtering those requests out are you?
 

jhu

Lifer
Oct 10, 1999
11,918
9
81
oh yeah, all i did was get the sources and do the usual configure -> make -> make install. samba's uncommented in the inetd.conf file. so perhaps i should start it automatically then?

no ipchains and the like. the router's the other computer.
 

Damaged

Diamond Member
Oct 11, 1999
3,020
0
0
Yup. And I assume what you mean is that you uncommented the line regarding SWAT (Samba Web Administration Tool) from the inetd.conf file. Samba doesn't start that way. It's a daemon, hence once it's started it goes to the background and listens for connections.

The nmap troublehshooting you did was good. Quite helpful, and is why I'm thinking that SAMBA wasn't started.
 

jhu

Lifer
Oct 10, 1999
11,918
9
81
ok, i recommented the lines in inetd.conf and am now starting both smbd and nmbd manually (never used swat before but i uncommented them just for the hell of it). however, when i use nmap only smbd shows up. WTF???? ARRRGHGH. i hate computers.
 

jhu

Lifer
Oct 10, 1999
11,918
9
81
ok, everything seems to be working on the server side.

on the vmware side when i type "net view \\192.168.1.2" i get an error message saying that i need to log on first. how do i do that?
 

Damaged

Diamond Member
Oct 11, 1999
3,020
0
0
Most likely you should use the same username/password combo on your Windows box as you do on your Linux box.

You may want to first setup your samba passwd though: smbpasswd <username>. You may have to do a smbadduser <username> first though.
 

Damaged

Diamond Member
Oct 11, 1999
3,020
0
0
Heck, try using SWAT once. It's much easier. Just point your browser to http://<ip number, or localhost if you're on the Linux box>:901
 

jhu

Lifer
Oct 10, 1999
11,918
9
81
thanks for all the help. things seem to be working. now is there any way i can have win9x not prompt me for a password when i connect to the linux machine? does this have anything to do with the guest account?