浏览代码

Enable setting home dir permissions

Fixes: PROD-21350

Change-Id: If5a4473296e4d2cb6a80cb7397ac38a66011f39d
pull/162/head
Martin Polreich 6 年前
父节点
当前提交
4fcd5c0eae
共有 3 个文件被更改,包括 3 次插入1 次删除
  1. +1
    -0
      README.rst
  2. +1
    -1
      linux/system/user.sls
  3. +1
    -0
      tests/pillar/system.sls

+ 1
- 0
README.rst 查看文件

@@ -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 查看文件

@@ -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 查看文件

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

正在加载...
取消
保存