Welcome, Guest. Please login or register.

Author Topic: Problems with samba nmbd run from inetd  (Read 2747 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline DesvergerTopic starter

  • Jr. Member
  • **
  • Join Date: Aug 2004
  • Posts: 67
    • Show only replies by Desverger
Problems with samba nmbd run from inetd
« 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?
#################################################
Amiga A1200:
Blizzard 1260 w/ SCSI
20GB Hitachi 2.5\\" IDE
ACT MV1200 Scandoubler
3com 589 pcmcia ethernet

SCSI tower:
TEAC CDROM
External floppy
#################################################
 

Offline KennyR

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 8081
    • Show only replies by KennyR
    • http://wrongpla.net
Re: Problems with samba nmbd run from inetd
« Reply #1 on: September 29, 2004, 02:39:24 PM »
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.
 

Offline DesvergerTopic starter

  • Jr. Member
  • **
  • Join Date: Aug 2004
  • Posts: 67
    • Show only replies by Desverger
Re: Problems with samba nmbd run from inetd
« Reply #2 on: September 29, 2004, 03:21:03 PM »
Quote

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.

Quote

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.
#################################################
Amiga A1200:
Blizzard 1260 w/ SCSI
20GB Hitachi 2.5\\" IDE
ACT MV1200 Scandoubler
3com 589 pcmcia ethernet

SCSI tower:
TEAC CDROM
External floppy
#################################################
 

Offline KennyR

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 8081
    • Show only replies by KennyR
    • http://wrongpla.net
Re: Problems with samba nmbd run from inetd
« Reply #3 on: September 29, 2004, 04:29:37 PM »
Quote
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...)

Quote
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.
 

Offline DesvergerTopic starter

  • Jr. Member
  • **
  • Join Date: Aug 2004
  • Posts: 67
    • Show only replies by Desverger
Re: Problems with samba nmbd run from inetd
« Reply #4 on: September 30, 2004, 03:14:56 AM »
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?
#################################################
Amiga A1200:
Blizzard 1260 w/ SCSI
20GB Hitachi 2.5\\" IDE
ACT MV1200 Scandoubler
3com 589 pcmcia ethernet

SCSI tower:
TEAC CDROM
External floppy
#################################################
 

Offline Thomas

Re: Problems with samba nmbd run from inetd
« Reply #5 on: September 30, 2004, 07:55:50 AM »

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

Offline amiga1260

Re: Problems with samba nmbd run from inetd
« Reply #6 on: September 30, 2004, 08:28:31 AM »
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'.



 

Offline DesvergerTopic starter

  • Jr. Member
  • **
  • Join Date: Aug 2004
  • Posts: 67
    • Show only replies by Desverger
Re: Problems with samba nmbd run from inetd
« Reply #7 on: September 30, 2004, 11:06:09 AM »
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!
#################################################
Amiga A1200:
Blizzard 1260 w/ SCSI
20GB Hitachi 2.5\\" IDE
ACT MV1200 Scandoubler
3com 589 pcmcia ethernet

SCSI tower:
TEAC CDROM
External floppy
#################################################