Operating System - HP-UX
1752771 Members
4882 Online
108789 Solutions
New Discussion

Re: CIFS mount permission denied

 
Syedfurquan
Trusted Contributor

CIFS mount permission denied

Hello Expert,

 

I am trying to share one folder "HealthcareImages" from windows 2008 and mount it on HP-UX 11.31. I am using CIFS to share and mount it on HP-UX. The procedure I followed is:

 

1. on Windows : set shared permission of folder "\\bnhfsdr1\Public\BNL\HealthcareImages\" to dmsuser and to Everyone as well.

2. On HP-UX:

vi /etc/opt/cifsclient/cifsclient.cfg

domain = "BNH.com"

# vi/etc/rc.config.d/cifsclient

RUN_CIFSCLIENT=1

# /sbin/init.d/cifsclient start

cifsmount SERVER:/PATH/TO/SHARE /PATH/TO/MOUNTPOINT -s
cifslogin SERVER –U (username)  -P (password) –D (domain name) -s

cifslist –u ( to list the user assigned for cifs)

 

The O/P of cifsmount are below:

 

# cifsmount bnhfsdr1:\Public\BNL\HealthcareImages  /bea/bea/user_projects/domains/BNHDomain/applications/IIMS/document/MedicalPhoto -s

#

#

# bdf

Filesystem          kbytes    used   avail %used Mounted on

/dev/vg00/lvol3    20971520  576128 20236128    3% /

/dev/vg00/lvol1    5242880  363272 4841520    7% /stand

/dev/vg00/lvol9    20971520 4514896 16329168   22% /var

/dev/vg00/lvol8    20971520 3021800 17809568   15% /usr

/dev/vg00/lvol6    10485760  305664 10106704    3% /tmp

/dev/vg00/lvol5    10485760 4324656 6113072   41% /opt

/dev/vg00/lvol4    5242880   21848 5180368    0% /home

/dev/vg00/lvol7    157286400 28292480 120931889   19% /bea

bnhdbdr01:/windb/batchlogfiles

                   419430400 272597427 137655973   66% /windb/batchlogfiles

bdf: /bea/bea/user_projects/domains/BNHDomain/applications/IIMS/document/MedicalPhoto: Permission denied

# cifslist

Mounted Object                      Mountpoint                          State

-------------------------------------------------------------------------------

\\BNHFSDR1\HEALTHCAREIMAGES         /HealthcareImages                   S

\\BNHFSDR1:PUBLICBNLHEALTHCAREIMAGES /bea/bea/user_projects/domains/BNHD MS

===============================================================================

Server            Local User        Remote User       Domain            State

-------------------------------------------------------------------------------

bnhfsdr1          root              dmsuser           bnh.com           LS

bnhfsdr1          bea               dmsuser           bnh.com           LS

 

after mounting in bdf o/p it is giving error as "Permission denied".

Any help how to fix this issue?

 

Regards,

Regards,
Syed
12 REPLIES 12
Steven Schweda
Honored Contributor

Re: CIFS mount permission denied

 
Syedfurquan
Trusted Contributor

Re: CIFS mount permission denied

Hello Steve,

 

 

Tried your solution but no luck.

 

Any CIFS services need to be start on windows server also

Regards,
Syed
Steven Schweda
Honored Contributor

Re: CIFS mount permission denied

 
Syedfurquan
Trusted Contributor

Re: CIFS mount permission denied

 
Regards,
Syed
Dennis Handly
Acclaimed Contributor

Re: CIFS mount permission denied

>Escaping or quoting the backslashes might work.

 

That's what I think I was using many years ago before I gave into the darkside.

I'm not sure if I thought to use a slash.

Syedfurquan
Trusted Contributor

Re: CIFS mount permission denied

Hello All,

 

Still no luck. Please find attachment.

Regards,
Syed
Syedfurquan
Trusted Contributor

Re: CIFS mount permission denied

 

Any help with my issue. Tried many things but till now no luck. 

 

Please help need to resolve this issue asap.

 

Regards,

Regards,
Syed
Dave Olker
HPE Pro

Re: CIFS mount permission denied

At this point it's not clear to me if this is a client-side or server-side issue.  You mentioned you have a production environement where things are working correctly.  Can the production HP-UX CIFS Client successfully mount the shared filesystem from the DR Windows Server, or does this fail with permission denied?  Can the DR HP-UX CIFS Client successfully mount the shared filesystem from the PRODUCTION Windows Server?

 

Have you compared the contents of the /etc/opt/cifsclient/cifsclient.cfg file on the production and DR HP-UX CIFS Clients to see if there are any differences?  What is "authenticationMethod" set to in this file on both DR and production clients?

 

Also, do you see any messages in the following file on the failing HP-UX DR CIFS client:

 

/var/opt/cifsclient/debug/client-log.<pid-of-cifsclient-daemon>

 

Dave

I work for HPE

[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
Syedfurquan
Trusted Contributor

Re: CIFS mount permission denied

Hello Dave,

 

Thnaks for the mail and an initative to help me out. I am not a very expert on cifs as I have used it very rarely and may be 3-4times only. I compare cifsclient.cfg from production and DR HP-ux and didn't find any difference. I tried mounting production windows on DR hp-ux and getting same permission denied and also tried mounting DR windows on production hp-ux with same error.

 

1. Atatched is the debug logs from DR hp-ux

2. DR server configuration details

3. production server configuration details.

 

The only difference I can find is on production server Network sharing file services is running and on DR this is not running but I think it required also. I ma trying to add that feature on DR windows server for Network sharing file services but getting some issues in that also. Checking with windows admin. But is it required?

 

Regards,

Regards,
Syed