Operating System - HP-UX
1834571 Members
2936 Online
110069 Solutions
New Discussion

Re: CIFS mount to Win2003 directory fails

 

CIFS mount to Win2003 directory fails

CIFS mount to Win2003 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

Account used for connection is a local Windows account to this server (fp00/cifsclient)



can anybody help?

Regards
Franz
sfra
12 REPLIES 12
Muthukumar_5
Honored Contributor

Re: CIFS mount to Win2003 directory fails

Look at this. Same problem.

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

hth.
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: CIFS mount to Win2003 directory fails

You need to install http://www.microsoft.com/downloads/details.aspx?FamilyID=9d467a69-57ff-4ae7
-96ee-b18c4790cffd&DisplayLang=en
(Windows Server 2003 Resource Kit Tools)

It's a frequent problem reported in Win2k3.

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

Re: CIFS mount to Win2003 directory fails

is smbclient using another authentication method than cifsmount?
smbclient succeeds in connecting, cifsmount not, with the same local user fp00/cifsclient

is just installing the rktool enough or has anything to be done with an included program?
is kerberos involved with a local userauthentication?

Regards
Franz
sfra
Arunvijai_4
Honored Contributor

Re: CIFS mount to Win2003 directory fails

Yes, Kerberos involved in authentication between Win2k3 and HP-UX,

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

Re: CIFS mount to Win2003 directory fails

have installed the resource kit tools on server.
use a server-local account

still no success:
ap00#/opt/cifsclient/newconfig/etc/opt/cifsclient> cifsmount //at708ap02/Trans /mnt -U at708ap02/cifsclient
Remote user at708ap02/cifsclient's password:
Logging in User: DOS: Access denied
ap00#

Franz
sfra
Gavin Clarke
Trusted Contributor

Re: CIFS mount to Win2003 directory fails

Here is a link to Patrick's thread about connection to AS/400 with cifs. There are other links in there which take you to alot more posted information. You might find what you are looking for in that lot.

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

Have you tried cifslogin or mount -F cifs?
They might give you another angle to try and get at it from.

Re: CIFS mount to Win2003 directory fails

it may be a netbiaos problem
connecting to an NT4 machine, which will be shortly substituted, cifsmount succeeds.
ap00#/opt/cifsclient/newconfig/etc/opt/cifsclient> cifsmount //625a/NFSNT /mnt -U sa008922
Remote user ux008922's password:

ap00#/opt/cifsclient/newconfig/etc/opt/cifsclient> mount -p
localhost:\\625A\NFSNT /mnt cifs soft,noac,retrans=3,timeo=205,acregmin=0,acregmax
=0,acdirmin=0,acdirmax=0,proto=udp,NFSv3 0 0

P:\>nbtstat -A 162.109.24.31
Fehler beim Zugriff auf NetBT-Treiber -- NetBT ist moeglicherweise nicht geladen

ux008922 is a domain user (not local)

regards
Franz
sfra
Gavin Clarke
Trusted Contributor

Re: CIFS mount to Win2003 directory fails

I must admit I always use domain users to mount shares and I have yet to try it with Win 2003.

Although a local user is just like logging in to a different domain isn't it?

The / in the username is bothering me, can you try cifslogin servername username please?
Gavin Clarke
Trusted Contributor

Re: CIFS mount to Win2003 directory fails

On second thoughts don't try cifslogin. I'm getting the same DOS: Access denied message here, with cifslogin it says
Logging in User: Server not connected!

So it seems 2003 is rather less keen to let people connect than 2000.

Try having a look through those links at Geoff Wild's post, it is involved but might have the answer that you (and potentially I) need.
Gavin Clarke
Trusted Contributor

Re: CIFS mount to Win2003 directory fails

Here's the link, have a look at Geoff's summary at the end of the post.

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

Cheers.

Re: CIFS mount to Win2003 directory fails

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
Gavin Clarke
Trusted Contributor

Re: CIFS mount to Win2003 directory fails

Nice going!

Thanks for posting the resolution, it may help me in the not so far future.