Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 03-02-2013, 04:31 AM   #1
LQ Newbie
Registered: Jul 2011
Posts: 7

Rep: Reputation: Disabled
Question Pam-mount on 12.04 LTS


im trying to configure libpam-mount to mount user homes when a user logs in via freenx, this worked on 10.04 LTS but pam is not playing along on 12.04.

The problems come from the way pam-mount is invoked in pam, at first it only invoked for the nx user and not the user who is logging in, moving the entry higher in common-session made pam-mount invoke for both nx user and the user logging in. The nx user fails to authenticate in samba witch is normal but so does the users attempt, witch means pam is forwarding the wrong credentials. Mounting the share manually works fine.

I need some help from anyone who is familiar with how the /etc/pam.d files on 12.04 work, i simply don't understand how they work as a whole so i don't know what im doing. I do however know what i have to realize:
1.Make sure pam forwards the users login password
2.(optional) limit pam-mount to a distinct group(to excluse the nx and root user)

Alternatively, if anyone knows a better way to mount samba shares from a central server at login, id be more then happy to try it since libpam-mount is not maintained anymore witch is the reason for all these issues
Old 03-04-2013, 01:27 PM   #2
LQ Newbie
Registered: Jul 2011
Posts: 7

Original Poster
Rep: Reputation: Disabled
i managed to get a bit further, it seems that my hunch was right that pam was forwarding the wrong credentials and it was due to the ssh daemon settings in /etc/sshd_config witch need to look like this:
ChallengeResponseAuthentication no (was changes by lwopen)
PasswordAuthentication yes (this is default)

Now the share mounts at log in but it does not unmount at log out, im not sure if this is a permission or configuration problem(i think i have seen this issue in some forum)

so now the only thing left is if i can configure pam not to invoke for my local user, the nx user and root since this only results in errors because these users don't exist in the active directory, this is not a necessity but it would be nice to have


12.04 lts, pam, ubuntu

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu 12.04 LTS very slow to mount internal hard drive lavere Linux - Newbie 7 05-31-2012 04:57 PM
[SOLVED] ubuntu 10.04 lts, boot error : invalid mount point on root Neanderthal Linux - Newbie 9 11-13-2011 04:52 PM
[SOLVED] Ubuntu 10.04 LTS nor unable to mount dvd disc kuchito Linux - Newbie 1 06-17-2011 12:59 AM
Login fails after installing Linux-PAM-1.0.1 on Ubuntu 8.04.1 LTS Desktop edition krunaldsoni Linux - Newbie 1 11-24-2008 02:44 AM
pam mount in slackware 10 qwijibow Linux - Software 1 08-06-2004 08:37 AM > Forums > Linux Forums > Linux - Server

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

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