Samba needs "...client software on the PC..."
from Samba.org at http://www.samba.org/samba/docs/man/...diagnosis.html
What software is this referring to??
5. Run the command nmblookup -B ACLIENT `*'.
You should get the PC's IP address back. If you do not, then the client software on the PC isn't installed correctly, or isn't started, or you got the name of the PC wrong.
Re: Samba needs "...client software on the PC..."
It's referring to the samba client (smbclient) :p
Re: Samba needs "...client software on the PC..."
Quote:
Originally Posted by
Joe of loath
It's referring to the samba client (smbclient) :p
OK so this is some type of ftp clone... but is it required for SAMBA to work? I don't it see it mentioned in any other how-to's... not even the one on samba.org.
I'm trying to open a ubuntu share to a number of WIN7 machines.
Re: Samba needs "...client software on the PC..."
Quote:
Originally Posted by
kevcoder
OK so this is some type of ftp clone... but is it required for SAMBA to work? I don't it see it mentioned in any other how-to's... not even the one on samba.org.
What do you mean by required? It is the command line interface to the Samba daemon smbd. Of course you need it, but you don't have to use it if you don't want to. :-)
Quote:
I'm trying to open a ubuntu share to a number of WIN7 machines.
Are you having problems doing that? If so, what errors do you get? Did you pass the first two steps?
- What did you get with
- Can you ping all hosts from all hosts?
Re: Samba needs "...client software on the PC..."
kevcoder00 is the Ubuntu box
KLSTRFK is the WIN7 box
for right now I want this share to be wide open requiring no permissions
I can ping both boxes from each other by name and ip (i added an entry in both c:\windows\system32\driver\etc\hosts and /etc/hosts)
testparm -S
Code:
dev@kevcoder00:~$ testparm -S
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[Share]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
workgroup = METALWAVE
netbios name = KLSTRFK
security = SHARE
lanman auth = Yes
client lanman auth = Yes
[Share]
comment = kevcoder00 file share
path = /srv/samba/share
read only = No
create mask = 0777
guest ok = Yes
smbclient -L kevcoder00
Code:
Domain=[METALWAVE] OS=[Unix] Server=[Samba 3.5.8]
Sharename Type Comment
--------- ---- -------
Share Disk kevcoder00 file share
IPC$ IPC IPC Service (Samba 3.5.8)
Domain=[METALWAVE] OS=[Unix] Server=[Samba 3.5.8]
Server Comment
--------- -------
KLSTRFK Samba 3.5.8
Workgroup Master
--------- -------
METALWAVE KLSTRFK
smbclient -L KLSTRFK
Code:
Domain=[KLSTRFK] OS=[Windows 7 Ultimate N 7601 Service Pack 1] Server=[Windows 7 Ultimate N 6.1]
Sharename Type Comment
--------- ---- -------
ADMIN$ Disk Remote Admin
C$ Disk Default share
Fax - HP Officejet 6500 E710n-z Printer Fax - HP Officejet 6500 E710n-z
HP Officejet 6500 E710n-z Printer HP Officejet 6500 E710n-z
IPC$ IPC Remote IPC
METALWAVE_PUBLIC Disk THE PUBLIC FOLDER
metalwave_share Disk
print$ Disk Printer Drivers
Users Disk
session request to KLSTRFK failed (Called name not present)
session request to *SMBSERVER failed (Called name not present)
NetBIOS over TCP disabled -- no workgroup available
nmblookup -B kevcoder00 __SAMBA__
Code:
querying __SAMBA__ on 127.0.1.1
192.168.2.2 __SAMBA__<00>
nmblookup -d 2 '*'
Code:
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
added interface eth0 ip=fe80::d227:88ff:fe19:ce11%eth0 bcast=fe80::ffff:ffff:ffff:ffff%eth0 netmask=ffff:ffff:ffff:ffff::
added interface eth0 ip=192.168.2.2 bcast=192.168.2.255 netmask=255.255.255.0
querying * on 192.168.2.255
Got a positive name query response from 192.168.2.2 ( 192.168.2.2 )
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
192.168.2.2 *<00>
I stopped there
and finally my share permissions
dev@kevcoder00:/srv/samba$ ls -l
Code:
total 4
drwxr-xr-x 4 nobody nogroup 4096 2011-06-12 00:49 share
Re: Samba needs "...client software on the PC..."
Quote:
Originally Posted by
kevcoder
kevcoder00 is the Ubuntu box
KLSTRFK is the WIN7 box
for right now I want this share to be wide open requiring no permissions
I can ping both boxes from each other by name and ip (i added an entry in both c:\windows\system32\driver\etc\hosts and /etc/hosts)
Can the Ubuntu host kevcoder00 can ping itself by name?
My comments below will be in red
Quote:
testparm -S
Code:
dev@kevcoder00:~$ testparm -S
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[Share]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
workgroup = METALWAVE
netbios name = KLSTRFK <--This should be the Samba server machine
security = SHARE <-- This means Linux directory and file perms only
lanman auth = Yes <-- This is for Win95/98
client lanman auth = Yes <-- Also for win95/98
[Share]
comment = kevcoder00 file share
path = /srv/samba/share
read only = No
create mask = 0777
guest ok = Yes <- this is for security = user
smbclient -L kevcoder00
Code:
Domain=[METALWAVE] OS=[Unix] Server=[Samba 3.5.8]
Sharename Type Comment
--------- ---- -------
Share Disk kevcoder00 file share
IPC$ IPC IPC Service (Samba 3.5.8)
Domain=[METALWAVE] OS=[Unix] Server=[Samba 3.5.8]
Server Comment
--------- -------
KLSTRFK <--??? Samba 3.5.8 [B]
Workgroup Master
--------- -------
METALWAVE KLSTRFK <-- Which machine is this?
smbclient -L KLSTRFK
Code:
Domain=[KLSTRFK] OS=[Windows 7 Ultimate N 7601 Service Pack 1] Server=[Windows 7 Ultimate N 6.1]
Sharename Type Comment
--------- ---- -------
ADMIN$ Disk Remote Admin
C$ Disk Default share
Fax - HP Officejet 6500 E710n-z Printer Fax - HP Officejet 6500 E710n-z
HP Officejet 6500 E710n-z Printer HP Officejet 6500 E710n-z
IPC$ IPC Remote IPC
METALWAVE_PUBLIC Disk THE PUBLIC FOLDER
metalwave_share Disk
print$ Disk Printer Drivers
Users Disk
session request to KLSTRFK failed (Called name not present)
session request to *SMBSERVER failed (Called name not present)
NetBIOS over TCP disabled -- no workgroup available <--Why is this desabled?
nmblookup -B kevcoder00 __SAMBA__
Code:
querying __SAMBA__ on 127.0.1.1
192.168.2.2 __SAMBA__<00>
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
added interface eth0 ip=fe80::d227:88ff:fe19:ce11%eth0 bcast=fe80::ffff:ffff:ffff:ffff%eth0 netmask=ffff:ffff:ffff:ffff::
added interface eth0 ip=192.168.2.2 bcast=192.168.2.255 netmask=255.255.255.0
querying * on 192.168.2.255
Got a positive name query response from 192.168.2.2 ( 192.168.2.2 )
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
192.168.2.2 *<00>
[/CODE]
I stopped there
and finally my share permissions
dev@kevcoder00:/srv/samba$ ls -l
Code:
total 4
drwxr-xr-x 4 nobody nogroup 4096 2011-06-12 00:49 share
- I think should comment out the "netbios name = " section.
- Comment out the lanman auth entries
- See if the nmbd daemon is running
See if that works. It might not, but it is a start.
What are the IP addresses of all the hosts involved. On the Ubuntu host, can you post the output of I really don't like using security = share you loose Samba control of the share.
Re: Samba needs "...client software on the PC..."
if I didn't already say this, I've been running linux for a full 4 months now although I work as a .Net developer. So I understand the concepts, but have almost no idea where anything is in linux/unbuntu...
... at work now so this is from memory...
I added a new user/group (Kevin/Kevin) to that matches my WIN7 user and password
Correcting the netbios name in smb.conf now allows me to see the samba share in Nautilus. :)
I'll change security to user and remove those lines form smb.conf. I assume that this means I should run
Code:
chown -R Kevin:Kevin /srv/samba/Share
and set a password for samba with In the output from smbclient -L kevcoder00 KLSTRFK is the WIN7 machine and METALWAVE is the workgroup name in WIN7 and smb.conf
I have no idea why NETBIOS over TCIP is disabled, or how to change it in Ubunto.
From the WIN7 machine ipconfig/all reports
Code:
NetBIOS over Tcpip ..... Enabled
Once again, I can ping both machines from each other and from themselves by name and ip. I can reach the apache server from WIN7 and navigate the php files there fine.
thanks for any and all help... I appreciate it!
kevcoder
Re: Samba needs "...client software on the PC..."
Quote:
Originally Posted by
kevcoder
if I didn't already say this, I've been running linux for a full 4 months now although I work as a .Net developer. So I understand the concepts, but have almost no idea where anything is in linux/unbuntu...
I was there once. :-) I started with DOS in in the 1980's and moved on to SUN OS and later Solaris. My first Linux machine was Debian potato some 11 or 12 years ago.
Quote:
... at work now so this is from memory...
I added a new user/group (Kevin/Kevin) to that matches my WIN7 user and password.
This is correct including the smbpasswd -a command. This adds the user to the Ubuntu and to Samba. Note: the practice is to use all lower case in Linux. The OS is case sensitive. My login is capscrew not Capscrew.
Quote:
Correcting the netbios name in smb.conf now allows me to see the samba share in Nautilus. :)
I'll change security to user and remove those lines form smb.conf. I assume that this means I should run
Code:
chown -R Kevin:Kevin /srv/samba/Share
and set a password for samba with
IMHO, Linux in general and Samba data in particular are best controlled by the correct use of groups. For example I created a group called smbusers for my Samba users. All users on the Ubuntu host that are also users of the Samba services are in that group.
This makes the share much more flexible. I don't care who owns the file since all users can access it via the group permissions. If I want to restrict users I can always use the parameter valid users = for that purpose.
Now guest users parameters make sense. If a file is created it will be with the user nobody, but I force group to be smbusers. As you can see the smbusers group allows all files to be available to all Samba users. I DO NOT put the user nobody in the smbusers group.
Quote:
In the output from smbclient -L kevcoder00 KLSTRFK is the WIN7 machine and METALWAVE is the workgroup name in WIN7 and smb.conf
I have no idea why NETBIOS over TCIP is disabled, or how to change it in Ubunto.
Netbios names are resolved by the daemon (service) nmbd this is also converts DNS (hosts) names to netbios names. This means you really don't have to declare the netbiso name in the smb.conf file as you did. We do have to make sure it is running though. To check if nmbd is running youcan do this This shuld return somthing like this
Code:
ps -e| grep mbd
943 ? 00:00:00 smbd
978 ? 00:00:00 nmbd
1080 ? 00:00:00 smbd
1629 ? 00:00:00 smbd
Quote:
From the WIN7 machine ipconfig/all reports
Code:
NetBIOS over Tcpip ..... Enabled
Once again, I can ping both machines from each other and from themselves by name and ip. I can reach the apache server from WIN7 and navigate the php files there fine....
I think we have the connectivity working fine, so that is not an issue.
Re: Samba needs "...client software on the PC..."
... I'm back for more pain,
I can do everything on that checklist but run the following from WIN7: both report that the machine is unreachable
Code:
net view \\kevcoder00
net use x: \\kevcoder00\share
I assume that this is good: running ps -e|grep mbd gives
Code:
2765 ? 00:00:00 smbd
2768 ? 00:00:00 smbd
2775 ? 00:00:00 nmbd
2807 ? 00:00:00 smbd
2816 ? 00:00:00 smbd
2823 ? 00:00:00 smbd
2878 ? 00:00:00 smbd
smbclient //klstrfk/metalwave_public gets me to the WIN7 box and I can navigate around with read-only permissions... but how can this fail (the first line) if I'm able to run ls???
Code:
session request to KLSTRFK failed (Called name not present)
Domain=[KLSTRFK] OS=[Windows 7 Ultimate N 7601 Service Pack 1] Server=[Windows 7 Ultimate N 6.1]
smb: \> ls
. DR 0 Tue Mar 29 21:56:05 2011
.. DR 0 Tue Mar 29 21:56:05 2011
Desktop DHR 0 Sat May 7 18:26:38 2011
desktop.ini AHS 174 Tue Jul 14 00:08:58 2009
Documents DR 0 Sun May 15 12:14:08 2011
Downloads DR 0 Tue Jun 7 22:26:40 2011
Favorites DHR 0 Mon Jul 13 22:04:25 2009
Libraries DHR 0 Tue Jul 14 00:08:58 2009
Music DR 0 Mon Jan 17 19:49:46 2011
Pictures DR 0 Sun Apr 3 00:44:46 2011
scheduled_tasks D 0 Tue Dec 21 02:05:04 2010
Torrents D 0 Tue Apr 19 00:50:10 2011
Videos DR 0 Wed Jun 8 22:58:12 2011
37781 blocks of size 4194304. 13217 blocks available
smb: \>
I'm assuming that my issue is from the WIN7 machine. Once I replace the fan in my daughters laptop I'll have a clean install of WIN7 to test this against.
If anyone any words of wisdom, I'm listening... and thanks for your time... seriously
kevcoder
Re: Samba needs "...client software on the PC..."
Quote:
Originally Posted by
kevcoder
... I'm back for more pain,
I can do everything on that checklist but run the following from WIN7: both report that the machine is unreachable
Code:
net view \\kevcoder00
net use x: \\kevcoder00\share
This is a networking connectivity issue. Do you have any firewalls running that would get in the way?
Quote:
I assume that this is good: running ps -e|grep mbd gives
Code:
2765 ? 00:00:00 smbd
2768 ? 00:00:00 smbd
2775 ? 00:00:00 nmbd
2807 ? 00:00:00 smbd
2816 ? 00:00:00 smbd
2823 ? 00:00:00 smbd
2878 ? 00:00:00 smbd
Yes it's fine. The multiple forks of smbd reflect multiple connections.
Quote:
smbclient //klstrfk/metalwave_public gets me to the WIN7 box and I can navigate around with read-only permissions... but how can this fail(the first line) if I'm able to run ls???
Code:
session request to KLSTRFK failed (Called name not present)
Domain=[KLSTRFK] OS=[Windows 7 Ultimate N 7601 Service Pack 1] Server=[Windows 7 Ultimate N 6.1]
smb: \> ls
. DR 0 Tue Mar 29 21:56:05 2011
.. DR 0 Tue Mar 29 21:56:05 2011
Desktop DHR 0 Sat May 7 18:26:38 2011
desktop.ini AHS 174 Tue Jul 14 00:08:58 2009
Documents DR 0 Sun May 15 12:14:08 2011
Downloads DR 0 Tue Jun 7 22:26:40 2011
Favorites DHR 0 Mon Jul 13 22:04:25 2009
Libraries DHR 0 Tue Jul 14 00:08:58 2009
Music DR 0 Mon Jan 17 19:49:46 2011
Pictures DR 0 Sun Apr 3 00:44:46 2011
scheduled_tasks D 0 Tue Dec 21 02:05:04 2010
Torrents D 0 Tue Apr 19 00:50:10 2011
Videos DR 0 Wed Jun 8 22:58:12 2011
37781 blocks of size 4194304. 13217 blocks available
smb: \>
I'm assuming that my issue is from the WIN7 machine. Once I replace the fan in my daughters laptop I'll have a clean install of WIN7 to test this against...
The problem does appear to be a Windows problem.
I believe the "Called name not present..." error is the WORKGROUP name getting lost. This shouldn't stop you from looking at the share, but it might hinder GUI browse functions.
I can't see what you have done as far as your host name to IP mapping, so I can't really advise you directly. Are the DNS (hosts) names the same as the COMPUTER NAMES? Are you sure you can ping by hostname. Remember hostnames are not COMPUTER NAMES. Can you successfully use either smbclient or net view with IP addresses?
What is the hostname of KLSTRFK? What do you get from it using this command What do you get when you use You might look at the log files for errors. They are located at /var/log/samba. You can use the command tail to view the last entries. The default is the last 25 lines. You can increase this with tail -50 or so. the command looks like this in my case
Quote:
tail -50 /var/log/samba/log.malibu