Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 02-27-2009, 09:34 AM   #1
LQ Newbie
Registered: Oct 2008
Posts: 12

Rep: Reputation: 0

I might be using the wrong program here but I have installed libpam-mount on my machine. I am trying to get it to mount an SMB share at login and unmount at logoff.

Can someone explain to me how to configure PAM to do this or point me to a detailed HOW TO for it? I've never used PAM before so I'm new to it.

Old 02-28-2009, 07:05 AM   #2
Registered: Dec 2002
Location: In front of a computer
Distribution: UPS, DHL, FedEx
Posts: 466

Rep: Reputation: 38
PAM is an API, most of the time you would never have to use it.
To mount a smb share, use...
mount -t smbfs -o username=xxx,password=yyy //server/folder /mountpoint

To mount it on boot up, you have a create a new script to run after the network has started and put it into that script which would probably go into /etc/rc.? or /etc/network/if-up.d/
Old 03-04-2009, 07:30 AM   #3
LQ Newbie
Registered: Oct 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Well I understand how to mount it using that command through terminal. But I need something that will take their login credentials and mount the windows share with them.


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
pam_mount does not work iinfi Linux - Desktop 2 02-15-2009 12:11 PM
Help with Gutsy pam_mount pccdrussell Linux - Software 1 09-17-2008 01:07 PM
Problem with pam_mount on Gentoo VanditBoy Linux - Server 1 08-20-2008 07:17 AM
pam_mount configuration MediMania Linux - Networking 0 03-28-2006 04:19 AM
How to setup pam_mount? mauro_haller Linux - Networking 0 03-08-2004 09:26 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:19 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
Open Source Consulting | Domain Registration