Operating System - HP-UX
1827286 Members
1657 Online
109717 Solutions
New Discussion

Re: Cannot delete entry in CIFS database

 
Tixier Gilles
Occasional Contributor

Cannot delete entry in CIFS database

Hi,
I have mounted a windows shared on my HP-UX using cifsmount and the -s option (Save mount and password in database).
Now, I can umount the fs but I can't delete his entry in CIFS database:
cifsumount -d /xa136
Unmounting Share: Path not mounted!

somebody has an idea?

Lionel.
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: Cannot delete entry in CIFS database

Shalom Lionel,

I think there is a windows process on the windows share with an open file on the share.

It may not be a cifs related process which is why you can't manage it with the CIFS interface.

SEP
Back in the USA
For a week or so.
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
Eric Raeburn
Trusted Contributor

Re: Cannot delete entry in CIFS database

Lionel,

This is Eric in the HP CIFS Client lab.

The exact sequence of events you describe is not entirely clear. It appears you have successfully unmounted the Windows share, and (after unmounting), trying to do "cifsumount -d ..." to remove the user-database entry.

If my interpretation is not correct, please post a more explicit description and I'll do my best to solve it.

If I am correct, however, the problem is easy to correct: in the version of the CIFS Client that you are using (A.01.xx), user-database entries can be deleted only during a cifsumount operation. Since you have already unmounted the Windows share, you cannot unmount it again, thus you cannot delete the UDB entry.

You have two solutions: first and easiest, do the "cifsumount -d ..." when the Windows fs is mounted; second, less easy but better, upgrade to the latest CIFS Client (A.02.02.01). In this version, there is a "cifsdb" command that allows users to manage database entries regardless of whether fs's are mounted or users are logged in.

Upgrading is strongly recommended notwithstanding this feature; the latest version is much more stable and feature-rich than the early versions. It is available free at software.hp.com. If you do upgrade, there are procedures to follow for database entries; see the Migration chapter in the Admin Guide, available at docs.hp.com.

-Eric
Eric Raeburn
Trusted Contributor

Re: Cannot delete entry in CIFS database

Lionel,

A couple of clarifications:

1. You can delete UDB entries via cifslogout, not just cifsumount. But once the fs is unmounted, all users are automatically logged out, so you would still need to do "cifslogout -d ..." when the fs is mounted. This is all much more flexible in A.02.xx: mounts, logins and UDB entries are independent of one another.

2. If you do upgrade and wish to consult the Admin Guide first, note that the most recent version of this document is A.02.02. The latest version of the software is A.02.02.01, a minor upgrade to A.02.02; we generally do not update the Admin Guide for minor releases. Release notes are also available at docs.hp.com.

Finally, an additional reason to upgrade to A.02.02.01 is that the A.01.xx versions are no longer officially supported.

-Eric
Tixier Gilles
Occasional Contributor

Re: Cannot delete entry in CIFS database

Eric,

First, I excuse myself for my English.

Your second answer appears the best solution with my concern.
The tools provided in CIFS A.02.02 seem to be the best to resolve my concern.
I think that I quickly will migrate.

You solved in a few hours my problem what the French support did not succeed in doing in seven days.

I am happy to have fallen on somebody from also qualified.

Thanks a lot.
Lionel.
Eric Raeburn
Trusted Contributor

Re: Cannot delete entry in CIFS database

Lionel,

I'm glad I was able to help. Your English is fine--I was just not clear about the sequence of events.

I also should have mentioned, A.02.xx versions are not available for HPUX 11.0, so if that's your OS version, you will be able to upgrade the CIFS Client only if you upgrade the OS.

Best,
-Eric