Sfoglia il codice sorgente

Enable setting home dir permissions

Fixes: PROD-21350

Change-Id: If5a4473296e4d2cb6a80cb7397ac38a66011f39d
pull/162/head
Martin Polreich 6 anni fa
parent
commit
4fcd5c0eae
3 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. +1
    -0
      README.rst
  2. +1
    -1
      linux/system/user.sls
  3. +1
    -0
      tests/pillar/system.sls

+ 1
- 0
README.rst Vedi File

@@ -49,6 +49,7 @@ will be removed.
shell: /bin/bash
full_name: 'Jonh Doe'
home: '/home/jdoe'
home_dir_mode: 755
email: 'jonh@doe.com'
jsmith:
name: 'jsmith'

+ 1
- 1
linux/system/user.sls Vedi File

@@ -55,7 +55,7 @@ system_user_home_{{ user.home }}:
file.directory:
- name: {{ user.home }}
- user: {{ name }}
- mode: 700
- mode: {{ user.get('home_dir_mode', 700) }}
- makedirs: true
- require:
- user: system_user_{{ name }}

+ 1
- 0
tests/pillar/system.sls Vedi File

@@ -79,6 +79,7 @@ linux:
uid: 9991
full_name: Salt User1
home: /home/saltuser1
home_dir_mode: 755
salt_user2:
enabled: true
name: saltuser2

Loading…
Annulla
Salva