Operating System - HP-UX
1847313 Members
2753 Online
110264 Solutions
New Discussion

CIFS, fstab mounting problems Hpux11.11

 
Charles Harris
Super Advisor

CIFS, fstab mounting problems Hpux11.11

Dear all,

I'm currently a little stuck with a CIFS issue and would really appreciate a helping hand! :-

I'm trying to mount multiple NT shares on a single HPUX11.11 machine. So far I have been adding the windows shares to the fstab with the following format

winserver:/sharename mountpoint cifs default 0 0

running mount -aF cifs appears to go ok, but doing a bdf results in errors being displayed.

NFS access failed for server. I think this is because the shares are mounted as remote user root, which will fail as it doesn't exist, but when I try using real credentials with cifslogin the connection is accepted although the share is still not mounted.

In a nutshell then, I can't seem to get cifs to mount the shares or use them, despite being able to authenticate with the Win2000 server.

I've read the (basic?!) manual about 3 times now so any tips / pointers / REMFM's (even more) would be warmly appreciated as ever!!

Cheers,

-=ChaZ=-


8 REPLIES 8

Re: CIFS, fstab mounting problems Hpux11.11

A couple of questions:

- After you do the mount -aF cifs, does the output of the command /opt/cifsclient/bin/cifslist -A show the mount as being available?

- If so, does it show any usere for that mount as being "authenticated?" You're looking for a username under the headings remote user and local user.

- If you, logged in as root, issues the command:
'cifslogin winservername windows_username'

and enter the correct windows password when prompted, do you receive any error messages?

- If not, when you then do a cifslist -A do you see root as having been authenticated?

- If root gets authenticated, are you then able to access the mounted file system?

Charles Harris
Super Advisor

Re: CIFS, fstab mounting problems Hpux11.11

Hi, thanks for the quick reply, here's the answers to you questions...

1. Yes, once mounted with -aF cifs, they show as available rw.

2. No, the message is: No users currently logged on

3. Yes, it states: Logging in User: Server not connected!

4. Unfortunately I can't get any further!

Thanks for the suggestions so far!!

-=ChaZ=-

Re: CIFS, fstab mounting problems Hpux11.11

Just to confirm, when you issue the cifslogin command you are using the same Windows Servername that shows up in the output of cifslist -A?

What version of cifsclient do you have installed? Easy way to check is by using the command 'cifsclient status'

Instead of using the mount command, try the following to see if we get a different error message:

- Try unmounting any of the cifs mounts that are displayed in the cifslist -A command.

- For good measure, stop and restart cifscleint, just to make sure we are starting from a known good point.

- As root, issue the following command:

'/cifsmount //windows_server/sharename /unix/mountpoint -U windows_username'

When prompted enter the appropriate windows password for the windows username you specified. Let us know if you get a different error, or what the results are.

Charles Harris
Super Advisor

Re: CIFS, fstab mounting problems Hpux11.11

Hello again,

I must admit I've tried what you suggested earlier on today, but to no avail, although I didn't restart cifsclient which I was praying might do it!! No such luck though unfortunately!

Ok,Path: /opt/cifsclient/sbin/cifsclientd
Version: FILESET HP CIFS CLIENT: Version: A.01.06
Compiled on HP-UX B.11.00, s800/R390, 01/03/28 13:41:32
cifsclientd: ver_id=832218266
cksum: 1323969665
Status: CIFS Client daemon is up; process id 5750, started 13:39:34.


and a different error when trying to mount the share using cifsmount!

Connecting Share: DOS: Share not exported by server

Which I don't understand as it seems to map the shares ok when I do it via the fstab?!

Thanks for the pointers so far!!

-=ChaZ=-

Here is the output from the cifsclient status

Charles Harris
Super Advisor

Re: CIFS, fstab mounting problems Hpux11.11

Sorry, the last message got a little messed up! (Explorer for you! ;-)

Re: CIFS, fstab mounting problems Hpux11.11

Actually, when you issue the mount command with CIFS it doesn't actually attempt to contact the Windows Server. In fact, in the sequence you are using, fstab, mount -aF cifs, the first time you attempt to really contact the Windows side is with the cifslogin command. So you can do a mount command with -F cifs to a Windows server that doesn't even exist, and the command appears to complete correctly.

At this point I would attempt to "map" the same share from a Windows client, instead of the HPUX CIFS Client. Normally the message you are getting is accurate in that the response we are getting back from Windows is that the share being requested does not exist. If you can "map" it from windows, using the exact sharename, then more complex debugging is in order on the CIFS Client side, but it may just the share you are requesting.
Charles Harris
Super Advisor

Re: CIFS, fstab mounting problems Hpux11.11

Thanks, that's a good idea. Earlier I tried using smbclient to display the users share drives. The ones I'm trying to map didn't show, but I wondered if this was because of differences between samba shares and the cifs equivelant?!

Thanks for the help so far, I'll give the real windows map a try and post the results.

Cheers,

-=ChaZ=-
Charles Harris
Super Advisor

Re: CIFS, fstab mounting problems Hpux11.11

Hello,

I resolved the problem (amater mistake I'm afraid!) I din't realise that the NT shared drives were actaully exported with the $ sign at the end!!!!
When I tried mounting everything exactly as I'd see it displayed it all worked fine!!!

Thanks for all your help (The try from windows, pointed me in the right direction eventually!)

-=ChaZ=-