Skip to content

Commit

Permalink
Merge pull request dev-sec#117 from dev-sec/shadow_owner
Browse files Browse the repository at this point in the history
change shadow owner in debian systems
  • Loading branch information
rndmh3ro authored Mar 1, 2017
2 parents 3a7303e + b2b4ef7 commit 87b6b88
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 8 deletions.
8 changes: 0 additions & 8 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,6 @@ os_auth_sys_uid_max: 999
os_auth_sys_gid_min: 100
os_auth_sys_gid_max: 999

# Different distros use different standards for /etc/shadow perms, e.g.
# RHEL derivatives use root:root 0600, whereas Debian-based use root:shadow 0640.
# You must provide key/value pairs for owner, group, and mode if overriding.
os_shadow_perms:
owner: root
group: root
mode: "0600"

os_chfn_restrict: ''
# may contain: change_user
os_security_users_allow: []
Expand Down
8 changes: 8 additions & 0 deletions vars/Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,11 @@ os_packages_pam_cracklib: 'libpam-cracklib'
passwdqc_path: '/usr/share/pam-configs/passwdqc'
tally2_path: '/usr/share/pam-configs/tally2'
os_nologin_shell_path: '/usr/sbin/nologin'

# Different distros use different standards for /etc/shadow perms, e.g.
# RHEL derivatives use root:root 0600, whereas Debian-based use root:shadow 0640.
# You must provide key/value pairs for owner, group, and mode if overriding.
os_shadow_perms:
owner: root
group: shadow
mode: "0640"
8 changes: 8 additions & 0 deletions vars/Oracle Linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,11 @@ os_packages_pam_ccreds: 'pam_ccreds'
os_packages_pam_passwdqc: 'pam_passwdqc'
os_packages_pam_cracklib: 'pam_cracklib'
os_nologin_shell_path: '/sbin/nologin'

# Different distros use different standards for /etc/shadow perms, e.g.
# RHEL derivatives use root:root 0600, whereas Debian-based use root:shadow 0640.
# You must provide key/value pairs for owner, group, and mode if overriding.
os_shadow_perms:
owner: root
group: root
mode: "0600"
8 changes: 8 additions & 0 deletions vars/RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,11 @@ os_packages_pam_ccreds: 'pam_ccreds'
os_packages_pam_passwdqc: 'pam_passwdqc'
os_packages_pam_cracklib: 'pam_cracklib'
os_nologin_shell_path: '/sbin/nologin'

# Different distros use different standards for /etc/shadow perms, e.g.
# RHEL derivatives use root:root 0600, whereas Debian-based use root:shadow 0640.
# You must provide key/value pairs for owner, group, and mode if overriding.
os_shadow_perms:
owner: root
group: root
mode: "0600"

0 comments on commit 87b6b88

Please sign in to comment.