Wiki source code of Read-Only Root
Last modified by Leon Poon on 2019/11/02 17:29
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | find /tmplate -print0 | xargs -0 ls -ld | ||
| 2 | |||
| 3 | {{code language="plain"}} | ||
| 4 | drwxr-xr-x 4 root root 4096 Jan 1 1970 /tmplate | ||
| 5 | drwxr-xr-x 2 root root 4096 Jan 1 1970 /tmplate/etc | ||
| 6 | -rw-r--r-- 1 root root 109 Dec 28 2015 /tmplate/etc/resolv.conf | ||
| 7 | drwxr-xr-x 6 root root 4096 Jan 1 1970 /tmplate/var | ||
| 8 | drwxr-xr-x 3 root root 4096 Jan 1 1970 /tmplate/var/cache | ||
| 9 | drwxr-xr-x 3 root root 4096 Jan 1 1970 /tmplate/var/cache/apt | ||
| 10 | drwxr-xr-x 3 root root 20480 Jan 1 1970 /tmplate/var/cache/apt/archives | ||
| 11 | -rw-r----- 1 root root 0 Nov 2 05:32 /tmplate/var/cache/apt/archives/lock | ||
| 12 | drwx------ 2 _apt root 4096 Jan 1 1970 /tmplate/var/cache/apt/archives/partial | ||
| 13 | drwxr-xr-x 3 root root 4096 Jan 1 1970 /tmplate/var/lib | ||
| 14 | drwxr-xr-x 2 root root 4096 Mar 3 2018 /tmplate/var/lib/dhcp | ||
| 15 | drwxr-xr-x 5 root root 4096 Jan 1 1970 /tmplate/var/log | ||
| 16 | drwxr-xr-x 2 root root 4096 Jan 1 1970 /tmplate/var/log/apt | ||
| 17 | -rw-rw---- 1 root utmp 0 Jan 1 1970 /tmplate/var/log/btmp | ||
| 18 | -rw-r----- 1 root adm 0 Jan 1 1970 /tmplate/var/log/dmesg | ||
| 19 | drwxr-xr-x 2 root root 4096 Jan 1 1970 /tmplate/var/log/fsck | ||
| 20 | -rw-r----- 1 root adm 0 Jan 1 1970 /tmplate/var/log/fsck/checkfs | ||
| 21 | -rw-r----- 1 root adm 0 Jan 1 1970 /tmplate/var/log/fsck/checkroot | ||
| 22 | drwxr-xr-x 2 ntp ntp 4096 Jan 1 1970 /tmplate/var/log/ntpstats | ||
| 23 | -rw-rw-r-- 1 root utmp 0 Jan 1 1970 /tmplate/var/log/wtmp | ||
| 24 | drwxrwxrwt 2 root root 4096 Sep 8 10:51 /tmplate/var/tmp | ||
| 25 | {{/code}} | ||
| 26 | |||
| 27 | mountall.sh: | ||
| 28 | |||
| 29 | {{code}} | ||
| 30 | mount tmpfs /tmp -t tmpfs -o nosuid && mkdir -pv /tmp/upper /tmp/working && mount tmpfs /tmp -t overlay -o lowerdir=/tmplate,upperdir=/tmp/upper,workdir=/tmp/working | ||
| 31 | {{/code}} | ||
| 32 | |||
| 33 | find /var -type l -print0 | xargs -0 ls -ld | ||
| 34 | |||
| 35 | {{code}} | ||
| 36 | lrwxrwxrwx 1 root root 27 Jan 1 1970 /var/cache/apt/archives -> /tmp/var/cache/apt/archives | ||
| 37 | lrwxrwxrwx 1 root root 17 Jan 1 1970 /var/lib/dhcp -> /tmp/var/lib/dhcp | ||
| 38 | lrwxrwxrwx 1 root root 9 Nov 2 05:26 /var/lock -> /run/lock | ||
| 39 | lrwxrwxrwx 1 root root 12 Jan 1 1970 /var/log -> /tmp/var/log | ||
| 40 | lrwxrwxrwx 1 root root 4 Nov 2 05:26 /var/run -> /run | ||
| 41 | lrwxrwxrwx 1 root root 7 Nov 2 05:26 /var/spool/mail -> ../mail | ||
| 42 | lrwxrwxrwx 1 root root 12 Jan 1 1970 /var/tmp -> /tmp/var/tmp | ||
| 43 | {{/code}} |