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
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.
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