Samba weirdness in LM 10.1 Need help!

Bird222

Diamond Member
Jun 7, 2004
3,641
132
106
Ok, I am a newbie, I am frustrated, and I need help. :)
First the network connection is fine as I am using VNC (both with hostname and by IP address) to access the Mandrake machine. So no problems with the network itself.

I am trying to get Samba 3.0.10 running on my new install of Mandrake 10.1 running KDE 3.2. My other computer is WinXP Pro. I downloaded the source from samba.org. I managed to compile it from some instructions I found (basically ./configure, make, make install). Everything ended up in /usr/local/samba. The main programs (smbd and nmbd ended up in /usr/local/samba/sbin. The smb.conf file is in /usr/local/samba/lib. Other utilities ended up in /usr/local/samba/bin. I made a script called 'smb' to start samba which looks like this:

#!/bin/sh
/usr/local/samba/sbin/smbd -D
/usr/local/samba/sbin/nmbd -D

I made the script executable and put it in /etc/rc.d/init.d (this may be the wrong place. Like I said I'm a newbie) I also setup a samba user 'AC' and created my shares. Then rebooted.

Here is the weirdness/problems

1. Konqueror shows the smb.conf file type as a 'C++ source file (this might not matter) instead of a plain text file.

2. smbclient -L hostname returns the error
tree connect failed: NT_STATUS_BAD_NETWORK_NAME

3. After bootup, smbd nor nmbd are running according to 'ps -e'. However, if I run my script manually (I didn't run it from the /etc/rc.d/init.d directory if that matters); 'ps -e' shows I have two smbd processes and one nmbd process running.

4. # smbstatus shows no information under the different headers. As if samba is not running.

5. Samba commands mostly aren't found unless I specify the exact directory they are in (path problem maybe). None of the samba information I read indicated you had to point directly to the files once samba was installed, maybe it was assumed.

6. When I run my 'smb' script manually or do a 'smb restart'; I don't see the normal 'shutting down smb services' or 'starting smb services' I just immediately get the command prompt again with NO error messages.

7. Samba IS having some kind of effect because I can't browse other network shares in my workgroup on my XP machine when I used to be able to. I don't see ANY machines listed in the workgroup when I click on the '+' sign beside the workgroup name and I also get the 'you don't have permissions etc...' error message when I click on the workgroup name a second time.

8. The log.myWinXPmachine file in /usr/local/samba/var says something about '/root/tmp does not exist' when I run my smb script.

9. I am using the same smb.conf (99.9% sure it's the same)file I used once before when I was trying to learn linux. It worked fine. I will include it below.

I had nowhere near this kind of problem setting up samba before (of course I didn't try to compile it myself, I just installed it from a rpm)

I think I have covered everything. :) I am just beginning to think this truly just isn't installed right.

Here is my smb.conf file:

# Global parameters
[global]
workgroup = Home Office <==There is a 'space' in my workgroup name. Is this ok?
server string =
security = SHARE
encrypt passwords = Yes
log file = /var/log/samba/log.%m
max log size = 50
domain master = yes
local master = yes
preferred master = yes
os level = 65


[homes]
comment = Home Directories
read only = No
browseable = No

[music]
path = /home/AC/mp3
public = yes
write list = AC

[downloads]
path = /home/AC/downloads
public = yes
write list = AC

Please help.
Thanks in advance
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
I am trying to get Samba 3.0.10 running on my new install of Mandrake 10.1 running KDE 3.2. My other computer is WinXP Pro. I downloaded the source from samba.org. I managed to compile it from some instructions I found (basically ./configure, make, make install). Everything ended up in /usr/local/samba. The main programs (smbd and nmbd ended up in /usr/local/samba/sbin. The smb.conf file is in /usr/local/samba/lib. Other utilities ended up in /usr/local/samba/bin. I made a script called 'smb' to start samba which looks like this:

I take it you couldn't find any RPMs? Did you make sure to remove the old RPMs before compiling your new copy?

1. Konqueror shows the smb.conf file type as a 'C++ source file (this might not matter) instead of a plain text file.

I can't imagine why, the mime types shipped with Mandrake must suck. But it's irrelevant anyway.

2. smbclient -L hostname returns the error
tree connect failed: NT_STATUS_BAD_NETWORK_NAME

I believe that means it either can't find the host you tried to connect or the remote host said it's not configured to respond to being called that name.

3. After bootup, smbd nor nmbd are running according to 'ps -e'. However, if I run my script manually (I didn't run it from the /etc/rc.d/init.d directory if that matters); 'ps -e' shows I have two smbd processes and one nmbd process running.

That's because putting them init.d does not set them up to be started, they need to be enabled for a specific run-level

4. # smbstatus shows no information under the different headers. As if samba is not running.

smbstatus won't show anything if noone is connected.

5. Samba commands mostly aren't found unless I specify the exact directory they are in (path problem maybe). None of the samba information I read indicated you had to point directly to the files once samba was installed, maybe it was assumed.

Yes, it's a PATH problem. I would highly recommend finding a precompiled package for your distribution, it would have avoided problems like this.

6. When I run my 'smb' script manually or do a 'smb restart'; I don't see the normal 'shutting down smb services' or 'starting smb services' I just immediately get the command prompt again with NO error messages.

That's because your script doesn't print any of those messages, look at the other scripts in the init.d directory, they all do the status messages themselves the daemons print nothing.

7. Samba IS having some kind of effect because I can't browse other network shares in my workgroup on my XP machine when I used to be able to. I don't see ANY machines listed in the workgroup when I click on the '+' sign beside the workgroup name and I also get the 'you don't have permissions etc...' error message when I click on the workgroup name a second time.

SMB browsing sucks, Samba can usually be used to stabilize it by forcefully maintaining the browse lists but if not done properly it'll just confuse all the machines and give you random bits and pieces or nothing.

8. The log.myWinXPmachine file in /usr/local/samba/var says something about '/root/tmp does not exist' when I run my smb script.

Try posting the entire error message.

workgroup = Home Office <==There is a 'space' in my workgroup name. Is this ok?

I tried a space here and it seems to work, but I would still avoid 'odd' characters like spaces, they can cause lots of odd problems.