Help me make my dream a reality : Mounting smb shares at logi n.

Mayers, Philip J p.mayers at ic.ac.uk
Wed Jan 24 15:41:17 GMT 2001


You want the pam_mount PAM module:

ftp://linux.kernel.org/pub/linux/libs/pam/pre/modules/pam_mount-0.2.tar.gz

Regards,
Phil

+----------------------------------+
| Phil Mayers, Network Support     |
| Centre for Computing Services    |
| Imperial College                 |
+----------------------------------+  

-----Original Message-----
From: Grant Torresan [mailto:gtorresan at itemus.com]
Sent: 24 January 2001 15:06
To: samba-technical at samba.org
Subject: Help me make my dream a reality : Mounting smb shares at login.


Hi all.

Here's what I'm trying to do here:

When a user logs into Linux server A , the login script (.bashrc or
equivalent) then mounts the contents of <file://SAMBASERV/HOMES> to the
user's current home directory : /home/(username) using smbmount (or
equivalent).

The problem I am having here is that the username AND password must be
included in the script to mount that share from the SAMBASERV server.. And
I'm not sure howI can get that information into the login script
automatically.

As is, Linux server A uses LDAP authentication to authenticate all users, so
I'm thinking that perhaps i can make the login script grab that user's
username/password from the ldap database, and then forward that information
on to the SAMBASERV when it tries to mount thier [HOMES] directory.

However, I'm not sure if this is possible/practical.  Any Ideas on how I
might implement this solution?

If anyone can help me with this I would be most greatful.

Thanks.

Grant Torresan.
gtorresan at itemus dot com





More information about the samba-technical mailing list