9b7db0969a85e38f400aa867504fd3344dc47ca6
[csit.git] / resources / tools / disk-image-builder / nested / patches / 02-users
1 #!/bin/sh -e
2
3 patch etc/sudoers <<"_EOF"
4 97a98,100
5
6 > csit ALL=(root) NOPASSWD:ALL
7 > cisco ALL=(root) NOPASSWD:ALL
8 _EOF
9
10 patch etc/passwd <<"_EOF"
11 10a11,12
12 > csit:x:1001:1001:CSIT user:/tmp:/bin/sh
13 > cisco:x:1002:1002:Cisco user:/tmp:/bin/sh
14 _EOF
15
16 patch etc/shadow <<"_EOF"
17 1c1
18 < root::10933:0:99999:7:::
19 ---
20 > root:5pcUkhKEiBBfw:16892:0:99999:7:::
21 10a11,12
22 > csit:5pcUkhKEiBBfw:16892:0:99999:7:::
23 > cisco:5piAVSAyGsbaI:16892:0:99999:7:::
24 _EOF
25
26 patch etc/group <<"_EOF"
27 27a28,29
28 > csit:x:1001:
29 > cisco:x:1002:
30 _EOF
31
32 patch etc/ssh/sshd_config <<"_EOF"
33 44c44
34 < #PermitRootLogin prohibit-password
35 ---
36 > PermitRootLogin yes
37 _EOF