[ILUG] Samba not running or something - for an earlier mail that I lost. ...

Wynne, Conor Conor.Wynne at compaq.com
Mon Sep 17 11:45:36 IST 2001


Hi Guys,

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. 

http://www.geocities.com/rlcomp_1999/samba.html

Here is the text...
check your hostname 
     hostname
     hostname -a
     hostname -s
     hostname -d
     hostname -f
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:
/etc/hosts
127.0.0.1       localhost.localdomain   localhost your_hostname_can_go_here

/etc/HOSTNAME
your_fully_qualified_domain_name_goes_here

/etc/sysconfig/network
NETWORKING=yes
FORWARD_IPV4=false
HOSTNAME="your_fully_qualified_domain_name_goes_here"
GATEWAY=
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.

Regards,
CW




More information about the ILUG mailing list