Line 137: |
Line 137: |
| session optional pam_gnome_keyring.so auto_start | | session optional pam_gnome_keyring.so auto_start |
| | | |
| + | ===Automount User Home Directories at Login=== |
| + | *Create a new group in SME Server with a Group Name of “nethome” and a Description of “nethome-group”. Add all SME Server users to this group, or at least all SME Server users who will be using the SME Server to authenticate an Ubuntu client workstation. |
| + | {{Note box| The names “nethome” and “nethome-group” can, of course be anything you like, these are just my example for the purpose of this HowTo. They are, however, a sensible choice as we are going to use a mount point called “nethome” but again this mount point name can be anything you want.}} |
| * /etc/security/pam_mount.conf.xml | | * /etc/security/pam_mount.conf.xml |
| Insert the following under <nowiki><!-- Volume definitions --></nowiki> (change the value of 'server'): | | Insert the following under <nowiki><!-- Volume definitions --></nowiki> (change the value of 'server'): |
− | <volume fstype="cifs" server="SME_SERVER_NAME" path="homes" mountpoint="~" options="nosuid,nodev,nounix,file_mode=0640,dir_mode=0700" /> | + | <volume sgrp=”nethome-group” fstype="cifs" server="SME_SERVER_NAME" path="homes" mountpoint="~" options="nosuid,nodev,nounix,file_mode=0640,dir_mode=0700" /> |
− | Also change:
| |
− | umount>umount %(MNTPT)</umount>
| |
− | to:
| |
− | umount>sudo umount -l %(MNTPT)</umount>
| |
− | and:
| |
− | <smbumount>smbumount %(MNTPT)</smbumount>
| |
− | to:
| |
− | <smbumount>sudo smbumount %(MNTPT)</smbumount>
| |
| | | |
| + | === Automount Ibays at Login=== |
| + | |
| + | *Edit /etc/security/pam_mount.conf.xml and add a line below the header |
| + | <nowiki><!-- Volume Definitions --> </nowiki> |
| + | <volume sgrp="<GROUPNAME>" fstype="cifs" server="<SMESERVER>" path="<IBAYNAME>" mountpoint="~/<IBAYNAME>" options="user=%(DOMAIN_USER),setuids,acl" /> |
| + | *Replace <SMESERVER> with the samba name of your SME server, <IBAYNAME> with the ibay name, <GROUPNAME> with the '''[[description]]''' of the ibay owner group. The description can be recovered with |
| + | wbinfo -g |
| + | {{Note box| The sgrp param is optional. If used, ibay will be mounted only if %(DOMAIN_USER) is a member of ibay's owner group}} |
| * /etc/security/group.conf | | * /etc/security/group.conf |
| Insert the following at the end of the file: | | Insert the following at the end of the file: |