[linux-cifs-client] Automounting CIFS home directory upon login without credentials file

Wilhelm Meier wilhelm.meier at fh-kl.de
Thu Mar 6 17:54:56 GMT 2008


Am Donnerstag, 6. März 2008 schrieb Rory Mitchell:
> Is it possible to automount a CIFS volume as a user's home
> directory upon login without the use of a "credentials" file? That
> is, could I use the user's login and password as the authentication
> to mount that CIFS volume, instead of leaving a domain admin
> login/password in plain text on our systems (even if the file does
> have restrictive permissions). The relevant lines from my automount
> files at the moment look like this:
>
> /etc/auto.master:
> /home/winhome   /etc/auto.cifs
>
> /etc/auto.cifs:
> *      
> -fstype=cifs,rw,credentials=/root/.adpasswd,sec=krb5,domain=DOMAIN
>
> ://winfileserver/users/&
>
> This works fine, provided I have the appropriate login/password in
> that .adpasswd file. If it's not possible to eliminate it, is it
> even possible to hash the passwords so they aren't in plain text?

Look at this project:

http://sourceforge.net/projects/pam-cifs

Thats what you need to mount/umount cifs-shares as users login or 
logoff. It is possible to use ldap or ADS for the definition of the 
share and where to mount it.
-- 
Wilhelm


More information about the linux-cifs-client mailing list