Changing some pam_mount.conf.xml options. Cleaning up task.

This commit is contained in:
Emiliano Vavassori 2015-08-19 17:23:54 +02:00
parent 3d09505d20
commit 6677131f90
2 changed files with 8 additions and 26 deletions

View File

@ -8,25 +8,3 @@
- name: Configurazione di pam_mount
template: src=pam_mount.conf.xml dest=/etc/security/pam_mount.conf.xml backup=yes
sudo: yes
#- name: Creazione directory di default per Condiviso
# file: path=/etc/skel/Condiviso state=directory
# sudo: yes
#- name: 'common-auth: aggiunta pam_mount'
# lineinfile:
# dest: /etc/pam.d/common-auth
# regexp: '^auth.*pam_mount\.so$'
# insertafter: EOF
# line: 'auth optional pam_mount.so'
# state: present
# sudo: yes
#
#- name: 'common-session: aggiunta pam_mount'
# lineinfile:
# dest: /etc/pam.d/common-session
# regexp: '^session.*pam_mount\.so$'
# insertafter: 'session.*pam_winbind\.so'
# line: 'session optional pam_mount.so'
# state: present
# sudo: yes

View File

@ -12,8 +12,12 @@ processed in a single pass from top-to-bottom
<debug enable="0" />
<!-- Volume definitions -->
<volume user="*" sgrp="domain users" fstype="cifs" server="{{ server }}" path="%(USER)" mountpoint="~" options="iocharset=utf8,file_mode=0644,dir_mode=0755" />
<volume user="*" sgrp="domain users" fstype="cifs" server="{{ server }}" path="shared" mountpoint="~/Condiviso" options="iocharset=utf8,file_mode=0664,dir_mode=0775" />
<volume user="*" sgrp="domain users" fstype="cifs"
server="{{ server }}" path="%(USER)" mountpoint="~"
options="iocharset=utf8,file_mode=0644,dir_mode=0755,cache=strict" />
<volume user="*" sgrp="domain users" fstype="cifs"
server="{{ server }}" path="shared" mountpoint="~/Condiviso"
options="iocharset=utf8,file_mode=0664,dir_mode=0775,cache=strict" />
<!-- pam_mount parameters: General tunables -->
<!--
@ -25,13 +29,13 @@ processed in a single pass from top-to-bottom
You will need to explicitly initialize it with the empty string
to reset the defaults to nothing.
-->
<mntoptions allow="loop,encryption,fsck,nonempty,allow_root,allow_other" />
<!--
<mntoptions allow="loop,encryption,fsck,nonempty,allow_root,allow_other" />
<mntoptions deny="suid,dev" />
<mntoptions allow="*" />
<mntoptions deny="*" />
-->
<mntoptions require="nosuid,nodev,exec" />
-->
<logout wait="10" hup="0" term="0" kill="0" />