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@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@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@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@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
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@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@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@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@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@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
at first time samba is not running run "smbstatus" for more info about samba a suggestion don't use swat use joe or vi and edit the smb.conf by default it work edit the smb.conf file change the workgroup doing only this you would see your home directory in the network run "smbclient -U msandford -L localhost" Wenceslao Hernandez C.
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@hotmail.com] Sent: Saturday, April 14, 2001 9:27 PM To: samba@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@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@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@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@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