I came across this this morning, and it rocks. For all those, I can't get
samba working questions.
e.g.: SMBD starts but NMBD doesn't.
Here is the text...
check your hostname
The above hostname commans should all return something good and no
errors. If you get errors then samba may not function well. If you
have a static IP address, then you configure your hostname through
/etc/hosts. If you get your IP address through DHCP then try setting
your hostname through "netconf" on the hostname line. Also, for DHCP,
3 other files sometimes get updated:
127.0.0.1 localhost.localdomain localhost your_hostname_can_go_here
Check your smb.conf file for the following:
Set your workgroup set your descriptor string Turn on encryption and point
to a smbpassword file (uncomment those 2 lines). shares are set up at the
end of the smb.conf file. at the end
you'll find a lot of samples, just take one, copy it, and make
modifications to it.
Set up your users by 1st adding them to linux (useradd / passwd)
Set up your users by then adding them to samba (smbadduser / smbpasswd)
Check the run levels you want samba to run in (usually 2,3,4, and 5)
- Use ntsysv or use chkconfig to set the runlevels:
chkconfig --list smb
chkconfig --level 2345 smb on
See if samba is running: "ps ax | grep mbd", you should see smbd
and nmbd running; if not, then they are not running.
start samba /etc/rc.d/init.d/smb start
Now the "ps -ax | grep mbd" should show both smbd and nmbd running.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!