Saturday, September 7, 2013

Mounting a linux share with Active Directory Permissions


This blog outlines the steps for mounting a share in linux while allowing a user to authenticate with their windows active directory credentials. They still need to type a password in to mount the share, but their AD permissions will be recognized. Thanks goes Mike C for putting this together.


1. Install Centrify if on domain to be able to authenticate with it for windows access.

2. Log into Linux after joining domain and run: id <username> to see your UID and GID.

3. Set these in your unix tab of your AD <username>

4. mkdir <local folder name> (e.g. mkdir ~/publicshare)

5. sudo mount.cifs \\\\SERVER/Folder1/publicshare/ ~/publicshare --verbose -o user=<username> (otherwise it will try to authenticate as root, and the \\\\ were needed because BASH was interpreting it as only one \).

6. BOOM, use the share.

7. umount ~/publicshare to unmount



If you have any questions, please post them in the comments section below.

No comments:

Post a Comment