Operating System - HP-UX
1833883 Members
2376 Online
110063 Solutions
New Discussion

Cifs 9000 unable to view shares

 
Andrew Pearce
Frequent Advisor

Cifs 9000 unable to view shares

Hi,
I am trying to get an hp-ux 11.0 server to be a cifs server. I believe that I have configured cifs correctly.
Below is the file /etc/opt/samba/smb.conf

# Global parameters
[global]
workgroup = ****
netbios name = cifsserver
server string = Windows NT
security = SHARE
encrypt passwords = Yes
local master = No
wins server = a.b.c.d
admin users = andrewpe

[Public]
comment = Public Access
path = /data
admin users = andrewpe
read only = No
guest ok = Yes

#

I can see the server from the domain, but I can't access the server or any files on it.
When I try to connect I get an error message stating that \\cifsserver is no longer available and The specified network name is no longer available.

Also when I run "net view \\cifsserver" from a dos windows on my win2k workstation I get an error message
"System error 64 has occurred.
The specified network name is no longer available".

I have looked on the samba web page but found nothing to assist.

Thanks in Advance
Andrew


10 REPLIES 10
Vincent Stedema
Esteemed Contributor

Re: Cifs 9000 unable to view shares

Hi Andrew,

Have you tried accessing the cifs server by it's ip address instead of its netbios name?


Try the following:

net view \\
or
nbtstat -A

If this doesn't work, try adding "lm announce = yes" to your smb.conf.


Vincent
Andrew Pearce
Frequent Advisor

Re: Cifs 9000 unable to view shares

This is the output from the command
nbstat -A
C:\>nbtstat -A a.b.c.d
Local Area Connection:
Node IpAddress: [w.x.y.z] Scope Id: []

NetBIOS Remote Machine Name Table

Name Type Status
-------------------------------------------
cifserer <00> UNIQUE Registered
cifserer <03> UNIQUE Registered
cifserer <20> UNIQUE Registered
EUR-UKSR <00> GROUP Registered
EUR-UKSR <1E> GROUP Registered

MAC Address = 00-00-00-00-00-00


\Device\NetBT_Tcpip_{47B95381-6143-47C9-B85F-5C89C9B249F7}:
Node IpAddress: [0.0.0.0] Scope Id: []

Host not found.

C:\>

When I do a net view I get the same output as before.
"system error 64 has occurred
The specified Network name is no longer available".

I have added the lm announce = True command
to see if that makes any difference and restarted samba, but I still have the same problem.


Marcel Boon
Trusted Contributor

Re: Cifs 9000 unable to view shares

Hi,

Just A thought, do you have the deamon nmbd running?
No, start the deamon.

Marcel
See the man pages
Andrew Pearce
Frequent Advisor

Re: Cifs 9000 unable to view shares

I believe it to running.
Below is the output from ps -ef

# ps -ef |grep nmbd
root 1003 1 0 10:35:43 ? 0:05 /opt/samba/bin/nmbd -D

I get no errors when I restart it.

Thanks for the input
Andrew
Marcel Boon
Trusted Contributor

Re: Cifs 9000 unable to view shares

Hi,

Try "local master = Yes". Below my configuration file, maybe it helps, I had a similar problem and those settings worked.

[global]
workgroup = SAMBA-DOMEIN
netbios name = HP-UX SERVER
server string = SAMBA Server
security = SERVER
encrypt passwords = Yes
password server = nt-server
dns proxy = No
wins server = winserver_ip_adress

[tmp]
comment = temporary directory
path = /tmp
writeable = Yes
guest ok = Yes

[homes]
comment = home directories
path = /home
writeable = Yes

Best Regards,

Marcel
See the man pages
Vincent Stedema
Esteemed Contributor

Re: Cifs 9000 unable to view shares

So, the "lm announce" parameter didn't solve your problem and name resolving seems to work.
Which command generated the "host not found" error message, nbtstat or "net view"?
How do your clients map IP adresses to NETBIOS names? Do they use a wins server, or did you add an entry for CIFSSERVER to C:\WINDOWS\LMHOSTS?

Are the clients in the same domain/workgroup as CIFSSERVER?

You might want to try the following:

Add "wins support = yes" to smb.conf and set CIFSSERVER as wins server for your client pc's. If you do this, you won't have to rely on the capabilities of the samba server to announce itself to the workgroup.

Hope this helps.

Vincent
Andrew Pearce
Frequent Advisor

Re: Cifs 9000 unable to view shares

Hi,
I do not administer the domain where I work, and I am not allowed administrative access onto any other server bar this HP-UX server.
There are already wins servers and Dns servers.

All I want to do is set this up as
"guest" share where everyone can share this drive without the need for my IT dept to control it! Hence the reason why I can't copy all of your settings because I am unable to set the security level to Server. Due to cifs then trying to become a primary domain controller, am I correct in saying that?

Vincent,
You also asked whether I could set up the Cifsserver as a wins server, I can't do that, due to the reasons above.

The command that gives the error
was
net view

I have added the entry
writeable = Yes

But that does not make any difference.

Thanks Again for all your help.
I appreciate all your help.

Andrew
Andrew Pearce
Frequent Advisor

Re: Cifs 9000 unable to view shares

Oops,
The command that generated the host not found message was the nbtstat command.

I believe the way pc's lookup up their "windows" name is by using a wins server. The "arpa" hostname is looked up using dns. Dns is definetly configured correctly on this HP-UX server as I can do nslookup and find ip addresses of whatever I want. I have put the ip address of the wins server that my PC uses into the field
"wins server = ip address"
Is that correct?

I have also added the entry to the global section
"wins support = Yes"

That still does not fix it.

Sorry, for the previous replay I did not have my brain in gear!!!

Thanks
Andrew
Vincent Stedema
Esteemed Contributor

Re: Cifs 9000 unable to view shares

Andrew,

First of all, you can set security to "Server" as long as you set "os level" to a very low number so the CIFS server won't win any elections. There should be some info on this in the man page for smb.conf.

Secondly, it's a bit strange that nbtstat generates a "host not found" error. This seems to mean that your PC can't resolve the CIFS server via the WINS server. You can bypass WINS resolution for the CIFS server by adding an entry for it to C:\WINDOWS\LMHOSTS. Take a look at C:\WINDOWS\LMHOSTS.SAM for information on how to add entry.

The "wins server" entry is correct, but in your current setup you can remove the "wins support = yes" entry because the CIFS server doesn't act as a WINS server.

Lastly, I wonder if you can configure a Samba server into a domain without having to "join" (smbpasswd -J) the domain. You'll need the Administrator password to be able to do this.

Did you find any relevant information in your Samba logging?

Vincent
Sandra Skinner
Occasional Advisor

Re: Cifs 9000 unable to view shares

Andrew,
When you are using share level security, you need to add the unix users name and password to the smbpasswd file. Information regarding how to do this is in the "Using Samba" book by O'Reilly on page 174-175.