Amiga.org
Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: Desverger on September 29, 2004, 01:42:13 PM
-
I have installed samba 2.0.7 and am having a problem. The amiga can see the pc so I know I mostly have everything done right.
My problem is that nmbd is not running. I have genesis configured to spawn nmbd with inetd. I have not tryed a startup script yet that will run as a genesis event. Also I have tried running nmbd as a daemon from the cli.
All this produces the same result. Whenever the pc tries to resolve the amiga's name nmbd tries to load and abnormally exits with a return code of 0x1 according to the genesis log.
Any ideas?
-
Do you have a Samba:lib/lmhosts file made up? This is necessary for nmbd to find clients. Amiga samba doesn't handle dynamic IPs very well, and you'll probably have to map them yourself.
If you don't have such a file, make one yourself. It's simple text, in this format:
IP NETBIOSNAME
IP NETBIOSNAME
...etc.
For example:
192.168.0.1 PC1
192.168.0.2 AMIGA
192.168.0.3 PC2
Uhm, just one more piece of info, remember that to run nmbd as a daemon you must specify the -D perameter, and disable it in inetd.
-
KennyR wrote:
Do you have a Samba:lib/lmhosts file made up? This is necessary for nmbd to find clients. Amiga samba doesn't handle dynamic IPs very well, and you'll probably have to map them yourself.
So I am now guessing that this would be different than the hosts config from genesis. Sorry I'm not in front of the machine to check for sure.
Uhm, just one more piece of info, remember that to run nmbd as a daemon you must specify the -D perameter, and disable it in inetd.
I am currently running it from inetd. You're saying I should disable it in inetd and run it from a script? Also another question since you have a good grip on this. How do you stop it once you've run it as a daemon?
Thanks.
-
So I am now guessing that this would be different than the hosts config from genesis. Sorry I'm not in front of the machine to check for sure.
Yes, it's different. It's usually necessary to have both set up if you want to run Samba properly, at least on the Amiga version. (Although I had to set up lmhosts on Debian too, so...)
I am currently running it from inetd. You're saying I should disable it in inetd and run it from a script? Also another question since you have a good grip on this. How do you stop it once you've run it as a daemon?
You can do it either way. The advantage of running it as a daemon is that you won't get disk access every time the netbios port is accessed and the nmbd client is run again (which isn't really that often, btw). The only real disadvantage is that you lose some ram because it's always loaded. I personally run as a daemon from a Miami startup script, but either way is fine.
To break the nmbd client running in daemon mode, just use AmigaOS c:break, send it a control+C, or use Scout or some similar tool to break it just like any cli tool.
One more thing: if, when you try to run nmbd -D from a shell and it just returns and seems to do nothing, you may have a broken compile. Some of the beta versions of Samba on the AmigaSamba site don't work. If you don't have any of these, don't worry. If you do, I recommend the stable build, at least until you have things working.
-
Ok I added the lmhosts file and tried starting from inetd and from the command line as a daemon. This thing just refuses to run. I redownloaded and reinstalled 2.0.7 from aminet. Same problem. Is there anything else that could be causing this?
-
Try to Telnet from the PC to the Amiga nmdb port. If it says something like "nmdb must be run as root", you have the same problem as I had. Somehow Genesis refuses to run servers as root although inetd specifies it. I had to set Genesis' default user to root. You can set it temprarily in the GUI or permanent in the Tooltypes IIRC.
Bye,
Thomas
-
Mabye this is the solution:
Throw all 'Users' away and make these two users:
pcguest, nopassword, 586, 99,Samba Guest, sys:, noshell
root, password, 0, 0, , , sys:
Throw all 'Groups' away and make this group:
guest, 99, pcguest
Go to 'Access' en click on '$' en change it in 'allow'.
-
I tried to telnet to any every port that samba uses and it wouldn't connect. Weird since I can access swat from my pc.
I tried logging in as root and it did the same thing.
I'm going crazy. Help!