LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-17-2008, 10:00 AM   #1
pccdrussell
Member
 
Registered: Jan 2006
Distribution: Ubuntu
Posts: 62

Rep: Reputation: 15
Help with Gutsy pam_mount


Hello all, I am having a little bit of trouble with pam_mount using Ubuntu Gutsy. I have used it in the past on SUSE Enterprise and OpenSuse systems without any problems. But it appears to be a little bit trickier in Ubuntu. I can't find any good documentation out there on *Buntu to help me. But basically here is what I have, and please help if you see I'm missing something.

I installed libpam-mount, added the line I need to in order to mount an ncpfs volume in pam_mount.conf. I put in the following into the pam.d services. (Note, I am using ldap to authenticate which requires a sufficient line in auth,account,session, password). So I read up on the documentation on sourceforge and it says if you are using sufficient to do the following...

Code:
account sufficient  pam_ldap.so
auth    required    pam_mount.so
auth    sufficient  pam_ldap.so use_first_pass
auth    required    pam_unix.so use_first_pass
session optional    pam_mount.so
So thats pretty much how I have it, I have pam_mount as the first line in auth as required then pam_mount as the last line in session as optional. When I log in (I'm just testing using ssh (ssh user@localhost)... It doesn't appear as though pam_mount is even being triggered. I even turned on the debug option in pam_mount.conf.

**By the way** I am able to mount the volumes for users just fine using ncpmount, so its definitely something with pam that is causing me fits.

Anyway, please let me know if I can provide anymore information or if anybody has any ideas. Thanks!!
 
Old 09-17-2008, 01:07 PM   #2
pccdrussell
Member
 
Registered: Jan 2006
Distribution: Ubuntu
Posts: 62

Original Poster
Rep: Reputation: 15
I was able to get this to work.... Basically I was just missing the "ipserver" option in pam_mount.conf and removed the "gid=&" because in the logs it was complaining about there not being a group for that user.

I also included the
Code:
@include common-pammmount
into kdm in pam.d (use gdm for gnome etc...)
Thanks

Last edited by pccdrussell; 09-17-2008 at 01:08 PM.
 
  


Reply



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
LXer: Ubuntu 7.10 (Gutsy Gibbon) Release Dates and Mark Shuttleworth About Gutsy LXer Syndicated Linux News 0 04-12-2007 04:31 PM
pam_mount configuration MediMania Linux - Networking 0 03-28-2006 04:19 AM
pam_mount + pam_winbind + pam_krb5. All in one (?) Thakowbbery Linux - Networking 2 06-15-2005 06:49 AM
Installing Pam_mount in suse 9.3 bschneider SUSE / openSUSE 8 05-02-2005 05:04 PM
How to setup pam_mount? mauro_haller Linux - Networking 0 03-08-2004 09:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:13 PM.

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