Operating System - HP-UX
1834508 Members
2759 Online
110068 Solutions
New Discussion

Setup CIFS Client on HP-UX

 
Kurt_32
Advisor

Setup CIFS Client on HP-UX

Hi,

I have a share on W2k server that I want to mount on HP-UX using CIFS. This is what I have done so far:

1. I have set the variable to 1 in /etc/rc.config.d/cifsclient file.
2. Executed /sbin/init.d/cifsclient start.
3. Mounted it using cifsmount //yyzwinfs1/yyzwinfs/data/groups/itdfiles /itdfiles
4. Then mount -v verified it.

Now when I try to cd into it, I get:

NFS access failed for server yyzwinfs1: RPC: Remote system error
sh: /itdfiles: The specified directory is not valid.

Please help.
Kurt.
12 REPLIES 12
Steve Steel
Honored Contributor

Re: Setup CIFS Client on HP-UX

Hi

Version of CIFS and OS

Do you have

Patch Name: PHNE_26988

Patch Description: s700_800 11.X RFC-NETBIOS cumulative patch Jun2002

Creation Date: 02/01/17

Post Date: 02/07/02

Hardware Platforms - OS Releases:
s700: 11.00 11.11
s800: 11.00 11.11


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Kurt_32
Advisor

Re: Setup CIFS Client on HP-UX

My OS is 11.11 but I do not have that patch. Would applying that patch resolve the issue....

Kurt.
Kurt_32
Advisor

Re: Setup CIFS Client on HP-UX

A.01.09 is the CIFS client version.
Kurt_32
Advisor

Re: Setup CIFS Client on HP-UX

1.21 is the CIFS client version.
Alzhy
Honored Contributor

Re: Setup CIFS Client on HP-UX

You will need to setup /config /etc/opt/cifsclient/cifsclient.cfg

most notably:

domain = "YOURDOMAIN" // domain name sent to server
guestUser = "root"

Hakuna Matata.
Kurt_32
Advisor

Re: Setup CIFS Client on HP-UX

I still get exactly the same error message. Note that I have not applied the patch yet.
Alzhy
Honored Contributor

Re: Setup CIFS Client on HP-UX

Have you checked if

//yyzwinfs1/yyzwinfs/data/groups/itdfiles

is world readble/mountable?

Can you mount on a real windows machine?

Hakuna Matata.
Kurt_32
Advisor

Re: Setup CIFS Client on HP-UX

Yes, that server directory is mapped on my XP machine.

Carlos Roberto Schimidt
Regular Advisor

Re: Setup CIFS Client on HP-UX

Hi,

yyzwinfs1 is your windows host?

Do you have in /etc/fstab ?
yyxwinfs1:/yyzwinfs/data/groups/itdfiles /itdfiles cifs defaults 0 0

You can mount this form?

# mount -F cifs yyxwinfs1:/yyzwinfs/data/groups/itdfiles /itdfiles

or # mount -aF cifs

You can login ?

# /opt/cifsclient/bin/cifslogin yyzwinfs1 user_name

Try access your filesystem after login.

If you still have problem, give output for:

# /opt/cifsclient/bin/cifslist -A

And you can see if you have access permissions.

Schimidt
Kurt_32
Advisor

Re: Setup CIFS Client on HP-UX

Yes, that's what I have in my fstab. I try mounting it manually and through fstab, same issue...

root@yyzdvdev:/home/root> cd /itdallfiles
NFS access failed for server yyzwinfs1.corp.ds.fedex.com: RPC: Remote system error
sh: /itdallfiles: The specified directory is not valid.

Do I need any special configuration on the Windows server ??
Steven E. Protter
Exalted Contributor

Re: Setup CIFS Client on HP-UX

Shalom Kurt,

You need to apply all relavent patches and dependencies. Then you need to create a machine account on the Windows box for your server and then try a cifsmount or smbmount command with appropriate server name and user id and password.

If there is an error at that point an ITRC or google search or another post to this thread will probably yeild you a specific solution.

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
Joshua Scott
Honored Contributor

Re: Setup CIFS Client on HP-UX

"3. Mounted it using cifsmount //yyzwinfs1/yyzwinfs/data/groups/itdfiles /itdfiles"

Could this be your problem? I tried that here on a world readable share:

# cifsmount //fileserver/shared/support /cifs/test
DOS: Share not exported by server
# cifsmount //fileserver/shared

I can mount \\fileserver\shared\support on my windows machine as a network drive.

are you sure that the share is exported as //yyzwinfs1/yyzwinfs/data/groups/itdfiles and not as //yyzwinfs1/yyzwinfs ? In my experience, Windows will allow you to mount any point in the directory structure, but CIFS will not.

Josh
What are the chances...