diff options
author | Christian Pointner <equinox@spreadspace.org> | 2018-12-22 03:25:25 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2018-12-22 03:25:25 +0100 |
commit | 22e275c7b60614196c2d7563a5199144036a4347 (patch) | |
tree | 9b49e3a84fc64ba3a2643ef1b20cf0722568ab8f /roles/openwrt/image/templates/passwd.j2 | |
parent | mktemp vs tempfile module (diff) |
added openwrt role and config for elevate router
Diffstat (limited to 'roles/openwrt/image/templates/passwd.j2')
-rw-r--r-- | roles/openwrt/image/templates/passwd.j2 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/openwrt/image/templates/passwd.j2 b/roles/openwrt/image/templates/passwd.j2 new file mode 100644 index 00000000..9beaeb61 --- /dev/null +++ b/roles/openwrt/image/templates/passwd.j2 @@ -0,0 +1,9 @@ +{{ ansible_managed | comment }} +root:x:0:0:root:/root:/bin/ash +daemon:*:1:1:daemon:/var:/bin/false +ftp:*:55:55:ftp:/home/ftp:/bin/false +network:*:101:101:network:/var:/bin/false +{% for name, opt in openwrt_users.items() %} +{{ name }}:*:{{ opt.id | default(loop.index + 110) }}:{{ opt.gid | default(loop.index + 110) }}:{{ name }}:{{ opt.home | default('/nonexistent') }}:{{ opt.shell | default('/bin/false') }} +{% endfor %} +nobody:*:65534:65534:nobody:/var:/bin/false |