diff options
author | erdgeist <erdgeist@erdgeist.org> | 2011-11-07 04:31:29 +0000 |
---|---|---|
committer | erdgeist <erdgeist@erdgeist.org> | 2011-11-07 04:31:29 +0000 |
commit | f0a90331d8e1bbc7a7ca720e14be1c09a2ea61e2 (patch) | |
tree | 30615213c74555e20bb01a9fe7506178cb49f71d /examples/example/ezjail.flavour | |
parent | 3d7ebac5d2f4c015fd7f086f89821a17a5326c16 (diff) |
Default way to setup a flavour now is a proper rc script
Diffstat (limited to 'examples/example/ezjail.flavour')
-rwxr-xr-x | examples/example/ezjail.flavour | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/examples/example/ezjail.flavour b/examples/example/ezjail.flavour deleted file mode 100755 index 69cd942..0000000 --- a/examples/example/ezjail.flavour +++ /dev/null | |||
@@ -1,58 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | # | ||
3 | # BEFORE: DAEMON | ||
4 | # | ||
5 | # ezjail flavour example | ||
6 | |||
7 | # Groups | ||
8 | ######### | ||
9 | # | ||
10 | # You will probably start with some groups your users should be in | ||
11 | |||
12 | # pw groupadd -q -n coders # -g 1004 | ||
13 | # pw groupadd -q -n sales # -g 1005 | ||
14 | |||
15 | # Users | ||
16 | ######## | ||
17 | # | ||
18 | # You might want to add some users. The password is to be provided in the | ||
19 | # encrypted form as found in /etc/master.passwd. | ||
20 | # The example password here is "admin" | ||
21 | # Refer to crypt(3) and pw(8) for more information | ||
22 | |||
23 | # echo -n '$1$p75bbfK.$Kz3dwkoVlgZrfLZdAXQt91' |\ | ||
24 | # pw useradd -n admin -u 1001 -s /bin/sh -m -d /home/admin -G wheel -c 'Admin User' -H 0 | ||
25 | # echo -n '$1$p75bbfK.$Kz3dwkoVlgZrfLZdAXQt91' |\ | ||
26 | # pw useradd -n saag -u 1002 -s /bin/sh -m -d /home/saag -G coders -c 'Mutton Saag' -H 0 | ||
27 | # echo -n '$1$p75bbfK.$Kz3dwkoVlgZrfLZdAXQt91' |\ | ||
28 | # pw useradd -n mac -u 1002 -s /bin/sh -m -d /home/mac -G sales -c 'Big Mac' -H 0 | ||
29 | |||
30 | # Files | ||
31 | ######## | ||
32 | # | ||
33 | # You can now give files to users just created | ||
34 | |||
35 | # chown -R admin:coders /usr/local/cvsroot | ||
36 | # chown -R admin:sales /usr/local/nfs/sales | ||
37 | |||
38 | # Packages | ||
39 | ########### | ||
40 | # | ||
41 | # Install all packages previously put to /pkg | ||
42 | # Remove package files afterwards | ||
43 | |||
44 | [ -d /pkg ] && PACKAGESITE=file:// pkg_add -r /pkg/* | ||
45 | rm -rf /pkg | ||
46 | |||
47 | # Postinstall | ||
48 | ############## | ||
49 | # | ||
50 | # Your own stuff here, for example set login shells that were only | ||
51 | # installed just before. | ||
52 | |||
53 | # Please note, that for all network related stuff like ports, | ||
54 | # package remote fetching, etc. you need a sane /etc/resolv.conf | ||
55 | |||
56 | # chpass -s /usr/local/bin/bash admin | ||
57 | # pkg_add -r pico | ||
58 | # cd /usr/ports/sysutils/screen && make install | ||