Operating System - HP-UX
1854723 Members
17641 Online
104102 Solutions
New Discussion

mount a NT Share with cifsmount

 
Elif Gius
Valued Contributor

mount a NT Share with cifsmount

Hi I tried this:

added IP address of the nt server to /etc/hosts

cifsmount //NT_Server/SHARE /Mount_Point -U Domaine//User
Then I get:
Remote user's password:
Connecting Server: UNIX: Connection refused

Is this correct?!
13 REPLIES 13
Gavin Clarke
Trusted Contributor

Re: mount a NT Share with cifsmount

Elif Gius
Valued Contributor

Re: mount a NT Share with cifsmount

I tried
cifsmount "///" -U -P -I

But I don't know the full computer name. I only got the IP address.
I added an entry by myself in /etc/hosts for it.
Elif Gius
Valued Contributor

Re: mount a NT Share with cifsmount

Is it important that the cifs client should authenticate against the PDC?

Maybe the HOST PC is allowed to do this, but my cifsc client not.


Gavin Clarke
Trusted Contributor

Re: mount a NT Share with cifsmount

I've been on holiday, which is why I haven't replied until now.

I thought you would have this fixed by now, is that true?

This is what we use:

/usr/bin/cifsmount "//ntserver/share" /mount -U NTuser -P NTpassword -I ntserverentryinetchosts

Does that help?

When you say you don't know the full server name, do you mean the ntserver name?
Himanshu_3
Valued Contributor

Re: mount a NT Share with cifsmount

Hi Elif,

Can you now check whether the cifsclient is running properly on the server.


# cd /opt/cifs*/bin
# ls
cifsclient cifslist cifslogin cifslogout cifsmount cifsumount
# cifsclient status
It should show something like
"Status: CIFS Client daemon is up; process id XXXXX"

You can also do
# cifsclient restart

It may solve the problem.

Regards,
Himanshu
Elif Gius
Valued Contributor

Re: mount a NT Share with cifsmount

I only know the IP Adress of the server

I do:
cifsmount //IP_address/share /MOUNT -U NTUser -P NTPassword -I NTservername_in_etc_hosts

I get the message: "connection refused".

How do I add the domain name in my cifsmount command?

Darren Prior
Honored Contributor

Re: mount a NT Share with cifsmount

Hi Elif,

You will need the full name of the server, how about asking the admin of NT_Server what it is?

There are a number of reasons why this is required rather than the IP address, so you will need to get the name in order to continue.

regards,

Darren.
Calm down. It's only ones and zeros...
Elif Gius
Valued Contributor

Re: mount a NT Share with cifsmount

the NT server is on the customer side behind a firewall... and I think that the IP address I've got from this server is also a NAT...

that's why I'm not sure that this will work!

But I will ask for the NetBios Name of the Server...

thanks!
Gavin Clarke
Trusted Contributor

Re: mount a NT Share with cifsmount

Does ping -a (windows) help?
Elif Gius
Valued Contributor

Re: mount a NT Share with cifsmount

sorry no ...
Yogeeraj_1
Honored Contributor

Re: mount a NT Share with cifsmount

hi,

You must make sure that your server is accessible to be able to mount that folder.

can you try to login to the server first?

use:
/opt/cifsclient/bin/cifslogin

usage: ./cifslogin [] []
./cifslogin -h prints short help
./cifslogin -v prints version information
valid options are:
-u Enable unencrypted passwords
-s Save password in user database (please do not use
unless you understand the security implications)
-f Force login. Do it even if server not reachable.
-P Password given in commandline (implies -N)
-S Read password from standard input (implies -N)
-N don't prompt for a password


hope this helps!
regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Elif Gius
Valued Contributor

Re: mount a NT Share with cifsmount

Like Darren suggested I asked the NT Admin.
I asked him for the NetBios Name. This Name I added to my /etc/hosts and then tried the cifsmount and it works.

So if you want to use CIFS and NT Shares you have to know the NetBios Name.
Elif Gius
Valued Contributor

Re: mount a NT Share with cifsmount

Problem solved. Thanks a lot for your help.