Networking :: nmbd works sometimes



Hi  U intelligent guys.  Salutations from a dumb newbie

well I got this samba installed. and I cannot manage nmbd to start sometimes whereas smbd is always there
can anyone tell me how to start the nmbd daemon once the box has booted and a user logged in , in the event nmbd has not started ?

Place
sudo /etc/init.d/nmbd start
in a user login script, such as ~/.bash_profile

pardon me Sir,
but I think that  "nmbd start" would not work
nmbd can take param -i as immedeate and -D as Daemon.
I tried the immedeate param -i, but it does not run saying
Quote

debug_parse_params : unrecognised debug class name or format [0]
standard input is not a socket, assuming -D option
ERROR: can't open /var/locks/nmbd.pid : Error was file exists

Should I delete this file ? and try it ?
what is this pid file for ?
seems both smbd and nmbd generate these pid files

That file is created when nmbd is running. I think pid = process id

You could place something like
Code Sample
if ! [ -f /var/locks/nmdb.pid ]
 #Start nmbd here how I like to
fi


Essentially this looks if that file is there - if it is, it assumes nmdb is running.  If not, it will run nmdb.  I suppose you could also do a `ps -Ax|grep nmdb`.

Also, you'll probably need root perms, so you might have to prepend sudo or do something similar.


original here.