Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 10-24-2007, 09:29 PM   #1
Registered: Jan 2006
Distribution: Ubuntu
Posts: 62

Rep: Reputation: 15

Hello, Ive tried googling with no results so thought I would try and get some help here. Currently, I have a Linux server that is authenticating against a Netware 6.5 server via LDAP, all is good there. I am also using PAM to automatically mount the users home directories on the Netware server in ~/share, all is good there. Here is the problem. When a user logs out, the share is not unmounted. Its not troublesome to the server that Im aware of, just a mess when I have over 100 users logging in and 100 mounted volumes that never unmount unless I do it manually. I will try and provide as much info from my configs and logs as possible, let me know if more is needed.

Error from /var/log/messages....
Oct 24 20:05:14 : pam_mount(misc.c:346) error setting uid to 0
Oct 24 20:05:14 : pam_mount(misc.c:346) error setting uid to 0
Oct 24 20:05:14 : pam_mount(mount.c:482) Failed to execute child process "/usr/bin/ncpumount" (Permission denied)
Oct 24 20:05:14 : pam_mount(pam_mount.c:558) unmount of ~/share failed
Permissions on ncpmount and ncpumount (Have tried chmod a+x on ncpumount with no luck)
-rwsr-x--- 1 root trusted 148468 2007-05-03 08:00 /usr/bin/ncpmount
-rwsr-x--- 1 root trusted 36856 2007-05-03 08:00 /usr/bin/ncpumount
umount line from pam_mount.conf
ncpumount /usr/bin/ncpumount %(MNTPT)
Any help would greatly be appreciated!!!

Last edited by pccdrussell; 10-25-2007 at 01:03 PM.
Old 12-06-2007, 10:30 AM   #2
LQ Newbie
Registered: Nov 2007
Posts: 7

Rep: Reputation: 0
We initially saw the same issue with pam_mount not unmounting the directory. The problem for us was that the directory to check for already mounted was being built differently than the check to mount a directory:

For example:

Directory to mount: user.files.domain/user
Already mounted checked: files.domain/user

Your situation may vary, but we hacked pam_mount and got around it.

Best wishes


mount, pam

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:08 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration