X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=ansible%2Froles%2Fopenwrt%2Fopenwrt-image%2Ftemplates%2Fpasswd.j2;fp=ansible%2Froles%2Fopenwrt%2Fopenwrt-image%2Ftemplates%2Fpasswd.j2;h=9beaeb61230bef1155d6c75f5a627ff0a98f7956;hb=57b1dd8b29634a7d4a80a993fdb97cc8179ea834;hp=0000000000000000000000000000000000000000;hpb=a4afa06c56a7c8e50f9ef94bb2cc1d8bba47a5b6;p=noc.git diff --git a/ansible/roles/openwrt/openwrt-image/templates/passwd.j2 b/ansible/roles/openwrt/openwrt-image/templates/passwd.j2 new file mode 100644 index 0000000..9beaeb6 --- /dev/null +++ b/ansible/roles/openwrt/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