Extreme Samba Newbie needs more help

Tom Syroid tom at syroidmanor.com
Sun Apr 15 07:31:13 GMT 2001


Michael,

Three deep calming breaths <grin>.

1. If you have an error in your smb.conf file, Samba will start, then 
quietly quit. After a reboot, always do a ps -ef to see that Samba is 
indeed running. If it's not, go check your log files. Log files are your 
friend. Get to know them.

2. When you're having trouble with an initial Samba configuration, and your 
logs do not give you an indication of the problem, strip *all you don't 
need* out of your smb.conf file. Then add things back *one line at a time*. 
Hint: You do not need to restart the daemons (unless they're not running, 
of course) after a configuration change; Samba re-reads it's configuration 
file every 60 seconds (aside -- now if I could just convince the Apache 
team to put such an incredibly intelligent feature into their product...)

Samba is a remarkably simple, yet powerful, program. I would suggest if 
your friends tell you that it's "impossible", then (a) they haven't taken 
the time to read any of the attached documentation, or (b) haven't taken 
the time to read any of the attached documentation.

Regards,
/tom

--On Saturday, April 14, 2001 21:26 -0400 Michael Sandford 
<sandford_michael at hotmail.com> wrote:

> Tom Syroid was kind enough to answer my first question.  I had some
> really  weird errors and he told me to uninstall the samba that I had
> compiled on my  own and reinstall the samba.tgz that came with slackware
> 7.1 which is what I  am running.  I did so, and the weird errors no
> longer occur.  Instead when I  try:
> root at vader82:/# smbclient -L localhost
> added interface ip=192.168.0.1 bcast=192.168.0.255 nmask=255.255.255.0
> error connecting to 127.0.0.1:139 (Connection refused)
> Connection to localhost failed
>
> Not good.  He said it should work almost out of the box with only slight
> changes to smb.conf.  I managed to get SWAT working, and so created a
> smb.conf file.  What I have though to be most interesting is that samba
> doesn't appear on ps x or ps ax.
>
> root at vader82:/# ps ax
>   PID TTY      STAT   TIME COMMAND
>     1 ?        S      0:09 init [3]
>     2 ?        SW     0:00 [kflushd]
>     3 ?        SW     0:00 [kupdate]
>     4 ?        SW     0:00 [kpiod]
>     5 ?        SW     0:00 [kswapd]
>    58 ?        S      0:00 /bin/sh /etc/rc.d/rc.M
>    74 ?        S      0:00 /sbin/rpc.portmap
>    78 ?        S      0:00 /usr/sbin/syslogd
>    81 ?        S      0:00 /usr/sbin/klogd -c 3
>    83 ?        S      0:00 /usr/sbin/inetd
>    85 ?        S      0:00 /usr/local/sbin/sshd
>    87 ?        S      0:00 /usr/sbin/lpd
>    89 ?        S      0:00 /usr/sbin/rpc.mountd
>    92 ?        S      0:00 /usr/sbin/rpc.nfsd
>    94 ?        S      0:00 /usr/sbin/crond -l10
>    96 ?        S      0:00 /usr/sbin/atd -b 15 -l 1
>   108 ?        S      0:00 /usr/local/apache/bin/httpd
>   110 ?        S      0:00 /usr/local/apache/bin/httpd
>   111 ?        S      0:00 /usr/local/apache/bin/httpd
>   112 ?        S      0:00 /usr/local/apache/bin/httpd
>   113 ?        S      0:00 /usr/local/apache/bin/httpd
>   114 ?        S      0:00 /usr/local/apache/bin/httpd
>   146 ?        S      0:00 dhclient eth0
>   219 ?        S      0:00 sh /usr/local/mysql/bin/safe_mysqld
>   232 ?        S      0:00 /usr/local/mysql//libexec/mysqld
> --basedir=/usr/local/mysql/ --datadir=/usr/local/mysql//var --user=root
>   234 ?        S      0:00 /usr/local/mysql//libexec/mysqld
> --basedir=/usr/local/mysql/ --datadir=/usr/local/mysql//var --user=root
>   235 ?        S      0:00 /usr/local/mysql//libexec/mysqld
> --basedir=/usr/local/mysql/ --datadir=/usr/local/mysql//var --user=root
>   236 ?        S      0:02 /usr/local/sbin/sshd
>   241 pts/0    S      0:00 -bash
>   320 ?        S      0:00 /usr/local/apache/bin/httpd
>   321 ?        S      0:00 /usr/local/apache/bin/httpd
>   322 ?        S      0:00 /usr/local/apache/bin/httpd
>   323 ?        S      0:00 /usr/local/apache/bin/httpd
>   324 ?        S      0:00 /usr/local/apache/bin/httpd
>   397 pts/0    R      0:00 ps ax
>
> this is the script that starts samba up when I boot my machine, and smbd
> and  nmbd are both where they should be.
>
> root at vader82:/etc/rc.d# more rc.samba
> #
> # rc.samba: Start the samba server
> #
> if [ -x /usr/sbin/smbd -a -x /usr/sbin/nmbd ]; then
> echo "Starting Samba..."
> /usr/sbin/smbd -D
> /usr/sbin/nmbd -D
> fi
>
> here is my smb.conf file:
> root at vader82:/etc# more smb.conf
> # Samba config file created using SWAT
> # from SirLancelot (192.168.0.2)
> # Date: 2001/04/14 13:52:13
>
> # Global parameters
> [global]
>         workgroup = CAMELOT
>         netbios name = KINGARTHUR
>         interfaces = 192.168.0.1/24
>         preferred master = Yes
>
> [msandford]
>         comment = Mikes Directory
>         path = /home/msandford/
>         writeable = Yes
>
> I saw one other message like this posted in the archives which I have
> looked  through pretty thoroughly.  There was no reply to the message,
> much to my  dismay.  If anyone can help me I would greatly appreciate it.
> Not only will  I be able to use samba, but I will be able to tell 3 of my
> friends from  school who say that samba is impossible to make work that
> they are wrong.
>
> Thank You,
> Michael Sandford
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba






More information about the samba mailing list