-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4021cd7
commit c05c07c
Showing
4 changed files
with
29 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Apparently, pam_mkhomedir uses the permission of /etc/skel to | ||
# set the permissions of the newly-created home directory | ||
- name: set /etc/skel permissions to 0700 | ||
file: | ||
mode: 0700 | ||
path: "/etc/skel" | ||
|
||
# waiting fix regex https://github.com/fflch/proaluno/pull/57 | ||
# As why not set this in login.defs too? | ||
- name: set home directory umask in /etc/login.defs | ||
lineinfile: | ||
path: /etc/login.defs | ||
line: UMASK 077 | ||
state: present | ||
regexp: '^\s*UMASK\s*[0-9]*' | ||
|
||
# Teoricamente não é necessário com as alterações acima | ||
- name: workaround - pam_mkhomedir.so umask=0077 não está rolando | ||
cron: | ||
name: "fix permissions" | ||
minute: "*/5" | ||
job: "chmod -R 0700 /home/*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters