Operating System - HP-UX
1831406 Members
3651 Online
110025 Solutions
New Discussion

Re: using cifsmount to mount a windows directory fails (but smbclient succeeds)

 

using cifsmount to mount a windows directory fails (but smbclient succeeds)

when I try to connect via cifsmount I get the errormessage (see below):
ap00#/opt/cifsclient/bin> cifsmount //fp00/trans /mnt -U fp00/cifsclient
Remote user fp00/cifsclient's password:
Connecting Server: UNIX: Connection refused

when I try a smbclient connection like the following, it works:

ap00#/opt/cifsclient/bin> /opt/samba/bin/smbclient //fp00/trans -U fp00/cifsclient
added interface ip=192.46.193.80 bcast=192.46.193.255 nmask=255.255.255.0
session request to FP00 failed (Called name not present)
Password:
Domain=[Dom-E] OS=[Windows Server 2003 3790] Server=[Windows Server 2003 5.2]
smb: \> Domain=[Dom-E] OS=[Windows Server 2003 3790] Server=[Windows Server 2003 5.2]
smb: \> pwd
Current directory is \\fp00\trans\
smb: \> cd sfra
smb: \sfra\> ls
. D 0 Mon Oct 3 10:43:29 2005
.. D 0 Mon Oct 3 10:43:29 2005
11.60startup___.zip A 3686 Wed Feb 2 18:26:35 2005
12.01startup___.zip A 8112 Wed Feb 2 19:18:17 2005
bde_resno_2.dll A 193 Tue Oct 19 15:14:00 2004


so what is the problem with cifsclient?
How can I make it work??
sfra
6 REPLIES 6
Patrick Provenzo
Frequent Advisor

Re: using cifsmount to mount a windows directory fails (but smbclient succeeds)

I had a similar issue when using cifsclient to connect to an AS/400. One thing to mkae sure is you are using the correct netbios name.

From a windows box do a nbtstat -A fp00

Look for a line with <20> in it. Thsi is the netbios name.
Arunvijai_4
Honored Contributor

Re: using cifsmount to mount a windows directory fails (but smbclient succeeds)

Have you checked this thread, http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=962438

I think, you need to install MS resource tool kit for 2k3. It could be a problem with Kerberos.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: using cifsmount to mount a windows directory fails (but smbclient succeeds)

For mounting operation only, cifs + kerberose is having problem as stated in,

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=962074

hth.


Easy to suggest when don't know about the problem!

Re: using cifsmount to mount a windows directory fails (but smbclient succeeds)

Patrick,

it looks like NBT is switched off on all windows 2003 servers.
is this a must
wis win2003 we are using DNS & AD
Regards
Franz
sfra
Patrick Provenzo
Frequent Advisor

Re: using cifsmount to mount a windows directory fails (but smbclient succeeds)

I'm not really sure. I'm not a Windows guy. I just know that was teh step HP suggested to confirm the netbios name. I beleive I gave you the wrong command syntax.

nbtstat -A xx.xx.xx.xx

Use Ip instead of name

Re: using cifsmount to mount a windows directory fails (but smbclient succeeds)

mount succeeded

cifsmount //ap02/trans /mnt -U cifsclient -I 162.xxx.xxx.xxx
Remote user cifsclient's password:

the final problem was the characterset for password.

we have some strict policies for passwords and some characters you can use for a windows password seem to be a problem when used for authentication from Unix side.

there is just one more change I made in in /etc/opt/cifsclient/pam/smb.conf:
workgroup = mydomain
## password server: the netbios names of systems which will
## be used to authenticate logins.
password server = myserver dc_name bdc1_name

and of course the resourcekit tools for Win2k3

Thanks & regards
Franz
sfra