Extreme Samba Newbie needs more help
MCCALL,DON (HP-USA,ex1)
don_mccall at hp.com
Mon Apr 16 13:54:33 GMT 2001
Hi Michael,
Just guessing without looking at your log files, but in a previous post
you mentioned that you had set up samba to run from inetd; if you HAVEN'T
removed or commented out the lines for samba in the inetd.conf file and
restarted
inetd, then samba is going to fail to come up, because inetd will have
already
claimed the ports 137,138, and 139.
I would recommend NOT running samba under inetd control, but instead use the
script
you mention in rc.d. (Personal preference).
To do this,
comment out (put a # in front of the lines ) the entries for nmbd and smbd
in your
inetd.conf file.
stop and restart your inetd daemon (or kill -HUP <process id of inetd> to
get it to
re-read the configuration file)
and then execute /usr/sbin/nmbd -D and /usr/sbin/nmbd -D
Check with ps to see if the daemons are running, and if not check the log
files
for smbd and nmbd to see WHY... If you can't figure it out from the logs,
send them to me offlist, and I'll take a look to see if I can help.
Hope this helps,
Don
Your smb.conf file looks fine; the defaults because of what you have
included in the
smb.conf file is that you will be running in user security mode, and so will
either have
to have your pc users send cleartext passwords (registry hack), or add
encrypted passwords=yes, and maintain a samba smbpasswd file for the
NT/Win9x passwords for your
pc users. BUT before worring about all that, you're right to try to get a
simple
smbclient -L localhost or smbclient -L kingauthor to work.
Hope this helps,
don
-----Original Message-----
From: Michael Sandford [mailto:sandford_michael at hotmail.com]
Sent: Saturday, April 14, 2001 9:27 PM
To: samba at lists.samba.org
Subject: Extreme Samba Newbie needs more help
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