diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-02-21 23:35:07 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-02-21 23:38:10 +0100 |
commit | 920e8e58ed320bfddf51c02ae5f7000e982da5bd (patch) | |
tree | 19111fc125804004bf1c8031cafb01bb6817d4d6 /Kernel/sync.sh | |
parent | 6071a77e8ee805c0a9fef96e6023a93744d0a9e2 (diff) | |
download | serenity-920e8e58ed320bfddf51c02ae5f7000e982da5bd.zip |
Kernel+Userland: Implement setuid() and setgid() and add /bin/su
Also show setuid and setgid bits in "ls -l" output. :^)
Diffstat (limited to 'Kernel/sync.sh')
-rwxr-xr-x | Kernel/sync.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Kernel/sync.sh b/Kernel/sync.sh index 6127135904..1328ad7ba3 100755 --- a/Kernel/sync.sh +++ b/Kernel/sync.sh @@ -32,7 +32,10 @@ ln -s /proc/self/fd/0 mnt/dev/stdin ln -s /proc/self/fd/1 mnt/dev/stdout ln -s /proc/self/fd/2 mnt/dev/stderr cp -vR ../Base/* mnt/ +mkdir mnt/home/anon +mkdir mnt/home/nona chown -vR 100:100 mnt/home/anon +chown -vR 200:200 mnt/home/nona cp -v ../Userland/sh mnt/bin/sh cp -v ../Userland/id mnt/bin/id cp -v ../Userland/ps mnt/bin/ps @@ -65,6 +68,8 @@ cp -v ../Userland/chmod mnt/bin/chmod cp -v ../Userland/top mnt/bin/top cp -v ../Userland/ln mnt/bin/ln cp -v ../Userland/df mnt/bin/df +cp -v ../Userland/su mnt/bin/su +chmod 4755 mnt/bin/su cp -v ../Applications/Terminal/Terminal mnt/bin/Terminal cp -v ../Applications/FontEditor/FontEditor mnt/bin/FontEditor cp -v ../Applications/Launcher/Launcher mnt/bin/Launcher |