From 20e3f127a9c79f8ed9a9fcc3ffea0172eda4d606 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 13 Aug 2022 22:07:15 +0200 Subject: user: a primitive login utility --- initrd/Users/dzwdz/private/secrets.txt | 2 ++ initrd/Users/dzwdz/public/stuff.txt | 2 ++ initrd/bin/sh/mkuser | 7 +++++++ 3 files changed, 11 insertions(+) create mode 100644 initrd/Users/dzwdz/private/secrets.txt create mode 100644 initrd/Users/dzwdz/public/stuff.txt create mode 100644 initrd/bin/sh/mkuser (limited to 'initrd') diff --git a/initrd/Users/dzwdz/private/secrets.txt b/initrd/Users/dzwdz/private/secrets.txt new file mode 100644 index 0000000..7f1bcbc --- /dev/null +++ b/initrd/Users/dzwdz/private/secrets.txt @@ -0,0 +1,2 @@ +I enjoyed Twilight. + diff --git a/initrd/Users/dzwdz/public/stuff.txt b/initrd/Users/dzwdz/public/stuff.txt new file mode 100644 index 0000000..b864fc2 --- /dev/null +++ b/initrd/Users/dzwdz/public/stuff.txt @@ -0,0 +1,2 @@ +A publicly readable file. + diff --git a/initrd/bin/sh/mkuser b/initrd/bin/sh/mkuser new file mode 100644 index 0000000..a1544c6 --- /dev/null +++ b/initrd/bin/sh/mkuser @@ -0,0 +1,7 @@ +#!/bin/shell +touch /Users/user/ +cd /Users/user/ +touch private/ +echo secrets! > private/secret.txt +touch public/ +echo no secrets here > public/hi.txt \ No newline at end of file -- cgit v1.2.3