1834814 Members
2766 Online
110070 Solutions
New Discussion

cifsmount problem !

 
SOLVED
Go to solution
Ivan Azuara
Regular Advisor

cifsmount problem !

Hi !

I'm trying to mount drives (Ej. e:\temp) from nt servers to my Unix box, i´m using CIFS/9000.

# uname -a' returns:
HP-UX a_inb_00 B.11.00 U 9000/800 63714506 unlimited-user license

# ps -ef | grep cifsclient

root 9614 1 0 13:46:59 pts/ti 0:00 /opt/cifsclient/sbin/cifsclientd
-f /etc/opt/cifsclient/cifs

My cifsmount command line is:

# cifsmount //130.10.16.250/test_samba /samba_depot -U username

where "test_samba" is the name of my share directory on nt server, and "samba_depot" is the mount point in the Unix box.

But i returns the following (after my entering a password):
Connecting Server: UNIX: Connection refused

The target machine is running Win NT4 SP6.

I've noticed that the 'Connection refused' comes back very quickly.

The only change I've made to the /etc/opt/cifsclient/cifsclient.cfg file is to uncomment the 'domain=""' line thus:

domain = "SYS_ADM"

where SYS_ADM is the name of the domain in which 130.10.16.250 resides.

Somebody have an idea ?, I can provide further information as required.


Thank´s in advan
"Enjoy the life .."
12 REPLIES 12
Alzhy
Honored Contributor

Re: cifsmount problem !

Is your UNIX server's SAMBA service a member of the domain?

Also, -U "username" .. is username a valid NT account? You might want to try for "username" -- SYS_ADM\username

Or :

cifsmount ////130.10.16.250//test_samba /samba_depot -U SYS_ADM\username

Hakuna Matata.
Steven E. Protter
Exalted Contributor

Re: cifsmount problem !

You need a valid user name on the NT system in many instances to make this work.

Alternately to make a HP machine function properly within the domain there needs to be a name for it on the Primary Domain Controller.

One or both of these issues could be preventing You from making the connection.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ivan Azuara
Regular Advisor

Re: cifsmount problem !

The account "administrator" already exist in the NT server. The hostname and IP of my unix box was added to the hosts and lmhosts files in the NT server.

The Unix Host was added to the PDC "SYS_ADM", but i receive the same message about the "Connection refused".

I probed more valid accounts in my NT server but the message is the same.

Is necesary had a samba server defined for make the succesfull connection to one windows , or i can establish connections between unix and windows systems with the CIFS client only ?
"Enjoy the life .."
Alzhy
Honored Contributor

Re: cifsmount problem !

Ivan.. have you tried the syntax I suggested?

No. You do not need CIFS/9000 Server (aka Samba) for CIFS Client to work. It works independently from the SAMBA piece.

After you added domain="sys_adm" in the cfg file (try lower case btw), have you restarted cifsclient? (cifsclient stop /cifsclient start)?

On another Windows machine, can you actually mount the share you are serving from that NT server?


Hakuna Matata.
Sanjiv Sharma_1
Honored Contributor
Solution

Re: cifsmount problem !

Ivan Azuara
Regular Advisor

Re: cifsmount problem !

Hi !

I tryied the next commands:

#cifsmount //130.10.16.250/ivan /samba_depot -U administrator
Remote user administrator's password:
Connecting Server: UNIX: Connection refused

# cifsmount \\130.10.16.250\ivan /samba_depot -U administrator
Remote user administrator's password:
Connecting Server: UNIX: Host is down

I verify the configuration on my NT server and in theory everything is ok, but i can´t make the mounting on the unix server!


Thank´s in advan
"Enjoy the life .."
Lars Blumenthal
Advisor

Re: cifsmount problem !

Hi Ivan

Can you mount the share with a "normal" mount?

mount -F cifs 130.10.16.250/test_samba /samba_depot

Do you add the NT4 Server to you hosts file?

Lars
The Real MD
Valued Contributor

Re: cifsmount problem !

If you are using SERVER security in the smb.conf file, you can use a mapfile to translate NT user names to unix users. I use it daily and it works a treat.

I hope this helps
David Burgess
Esteemed Contributor

Re: cifsmount problem !

Try

#cifsmount //130.10.16.250/test_samba /samba_depot -U username -P password

My mountpoint has permissions 755 root:sys

Maybe put the hostname and ip in /etc/hosts and use the hostname rather than the ip address in the cifsmount command.

This works ok here.

You could try using the Asminstrator account and password to prove it isn't an access rights problem.

Regards,

Dave.
Ivan Azuara
Regular Advisor

Re: cifsmount problem !

My problem continuos:

This is my actual configuration:

a)ON UNIX BOX:

- My CIFS version is:

CIFS-Client A.01.04 HP CIFS/9000 Client
CIFS-Development A.01.04 CIFS/9000 server source code files
CIFS-Server A.01.04 CIFS/9000 (Samba) File and Print Services

Note: I only have the cifsclient configured.

- Status of cifsclient:

# cifsclient status
Path: /opt/cifsclient/sbin/cifsclientd
Version: FILESET HP CIFS CLIENT: Version: A.01.04
Compiled on HP-UX B.11.00, s800/R390, 00/09/13 14:49:43
cifsclientd: ver_id=3978115621
cksum: 2706385565
Status: CIFS Client daemon is up; process id 8245, started 13:23:18.

Changes:

- I Modified the "/etc/opt/cifsclient.cfg" configuration file as.

# Values other than sums of the above should NEVER be used!
linkModeMask = 0x07; // take read-only, hidden and system into account
linkMode = 0x06; // set both: system and hidden, but not read-only
linksAreUnicode = yes; // whether links are stored in Unicode
enableFakeLinks = no; // set this to "yes" if you need faked softlinks
domain = SYS_ADM // domain name sent to server

where SYS_ADM is the name of my Primary Domain Controler, also added the name of my NT server "ADMON01" in the /etc/hosts file.

- I made a directory named "depotsmb" as the mount point.

b) NT 4.0 SERVER:

- I added the "hostname" of my unix box to the "hosts" and "lmhosts" files on Windows.
- I added the unix box to the NT server using the Server Manager utilitie of WinNT.
- I shared a directory on the NT server with the name of "samba" with all permissions.
- I added a new user on my NT server named "cifsuser" like a test.

c) UTILIZED COMMANDS:

#cifsmount //130.10.16.250/samba /depotsmb -U administrator
Remote user administrator's password:
Connecting Server: UNIX: Connection refused

# cifsmount //130.10.16.250/samba /depotsmb -U cifsuser
Remote user cifsuser's password:
Connecting Server: UNIX: Connection refused

Note: The -P option is useless.

I don´t find where is the problem
"Enjoy the life .."
Darren Prior
Honored Contributor

Re: cifsmount problem !

Hi,

To be honest - you're running a very old version of CIFS! The first step would be to upgrade to the latest revision as it's highly likely that this type of problem may have been fixed in the many versions in between.

The client and server s/w are available from http://software.hp.com The latest server release is A.01.11 and the client is A.01.09.01.

regards,

Darren.
Calm down. It's only ones and zeros...
T G Manikandan
Honored Contributor

Re: cifsmount problem !

Try using

#mount -F cifs -o username=,password= NTserver:/ /