Operating System - HP-UX
1819981 Members
3732 Online
109607 Solutions
New Discussion юеВ

mounting CIFS share on HP-UX 11i

 
SOLVED
Go to solution
Matthias Oswald
Advisor

mounting CIFS share on HP-UX 11i

Hello,
I have seen a few threats touching the problem of mounting a Windows share onto a unix box, but no resolution.
I'm able to mount the share on unix but can not access it:

mount -F cifs 10.14.64.42:/Exploitation /luxdsl01
root@luxmc3:/> grep dsl /etc/mnttab
localhost:\\10.14.64.42\EXPLOITATION /luxdsl01 cifs soft,noac,retrans=3,timeo=205,acregmin=0,acregmax=0,acdirmin=0,acdirmax=0,NFSv3 0 0 1123163239
10.14.64.42:/Exploitation /luxdsl01 cifs soft,noac,retrans=3,timeo=205,acregmin=0,acregmax=0,acdirmin=0,acdirmax=0,NFSv3 0 0 1123163239
root@luxmc3:/> cifslist -A
=========================================================================
server 10.14.64.42:
=========================================================================
Remote Username: moswald Local Username: moswald

Share: \\10.14.64.42\EXPLOITATION
rw /luxdsl01
root@luxmc3:/> ll /luxdsl01
/luxdsl01 not found
root@luxmc3:/> bdf /luxdsl01
bdf: /luxdsl01: Permission denied
root@luxmc3:/> ll -d /luxdsl01
/luxdsl01 not found
root@luxmc3:/>

Any help is very appreciated.
Thanks,
Matthias
mabios
5 REPLIES 5
RAC_1
Honored Contributor

Re: mounting CIFS share on HP-UX 11i

perms on /luxdsl01?? What are those??

Which user you use to access it??

Anil
There is no substitute to HARDWORK
Steven E. Protter
Exalted Contributor
Solution

Re: mounting CIFS share on HP-UX 11i

you need to use the cifsmount command.

You may need to include the userid and password for the machine you are mounting. An account needs to be set up for machine logins.

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
Matthias Oswald
Advisor

Re: mounting CIFS share on HP-UX 11i

Even when trying to access with remote user and local user same:
moswald@luxmc3:/usr/users/it/moswald> cd /luxdsl01
NFS access failed for server 10.14.64.42: RPC: Remote system error
ksh: /luxdsl01: bad directory
moswald@luxmc3:/usr/users/it/moswald> ll /luxdsl01
/luxdsl01 not found
moswald@luxmc3:/usr/users/it/moswald> id
uid=208(moswald) gid=10000(husky) groups=7501(l_ltm_a),7000(l_hrm_b),7001(l_hrm_a),2061(md_nc),6000(l_mold),2010(md_desig),7500(l_ltm_b),7502(l_ltm_c),125(bsp),6030(l_dnc),7002(l_hrm_c),15(users),2000(mold),2050(md_hr),6010(l_design)
moswald@luxmc3:/usr/users/it/moswald> cifslist -A
=========================================================================
server 10.14.64.42:
=========================================================================
Remote Username: moswald Local Username: moswald

Share: \\10.14.64.42\EXPLOITATION
rw /luxdsl01
moswald@luxmc3:/usr/users/it/moswald>
mabios
Srini Jay
Valued Contributor

Re: mounting CIFS share on HP-UX 11i

Try cifsmount instead of "mount -F cifs" as given below:

cifsmount /// / -U -P

If you are using different Unix user-id (other than root or the one which mounted the remote-filesystem) to access
the filesystem, then you will have to do a cifslogin.

cifslogin -P

So far I've only used a remote user-id (Win XP) which has Administrator privileges... just FYI.
Matthias Oswald
Advisor

Re: mounting CIFS share on HP-UX 11i

I had to use the -I option and the name of the server in UNIX and Windows had to be exactly the same:

cifsmount //luxdsl01/Exploitation /luxdsl01 -U moswald -I 10.14.64.42

Administrator privilege on the WIndows box is not required.

Thanks to all,
Matthias.
mabios