Mounting windows shares with Active Directory permissions

active-directorycifsmountserver-message-blockunix

I've managed to get my Ubuntu (server 10.04 beta 2) box to accept logins from users with Active Directory credentials, now I'd like those users to access their permissible windows shares on a W2003 R2 server.

The Windows share ("\srv\Users\") has subdirectories named according to the domain account users and permissions are set accordingly. I would like to preserve these permissions, but don't know how to go about it.

  • Would I mount as an AD administrator or have each user mount with there own AD credentials?
  • How do determine between using mount.smbfs or mount.cifs?

Best Answer

One option would be to setu pam_mount. It allows you to mount shares when a user logs into the system. With pam_mount the folder will be mounted with the users credentials. They credentials do not need to be saved anywhere, they will automatically be passed through by pam from what they used to login.