mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:07:35 +00:00
Base: Change root user home directory from /
to /root
This commit is contained in:
parent
d64589101c
commit
e8b17c42bb
2 changed files with 4 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
root:x:0:0:root:/:/bin/sh
|
root:x:0:0:root:/root:/bin/sh
|
||||||
lookup:x:10:10:LookupServer,,,:/:/bin/false
|
lookup:x:10:10:LookupServer,,,:/:/bin/false
|
||||||
protocol:x:11:11:ProtocolServer,,,:/:/bin/false
|
protocol:x:11:11:ProtocolServer,,,:/:/bin/false
|
||||||
notify:x:12:12:NotificationServer,,,:/:/bin/false
|
notify:x:12:12:NotificationServer,,,:/:/bin/false
|
||||||
|
|
|
@ -92,12 +92,15 @@ chown $window_uid:$window_gid mnt/etc/WindowServer/WindowServer.ini
|
||||||
echo "done"
|
echo "done"
|
||||||
|
|
||||||
printf "installing users... "
|
printf "installing users... "
|
||||||
|
mkdir -p mnt/root
|
||||||
mkdir -p mnt/home/anon
|
mkdir -p mnt/home/anon
|
||||||
mkdir -p mnt/home/nona
|
mkdir -p mnt/home/nona
|
||||||
cp ../ReadMe.md mnt/home/anon/
|
cp ../ReadMe.md mnt/home/anon/
|
||||||
cp -r ../Libraries/LibJS/Tests mnt/home/anon/js-tests
|
cp -r ../Libraries/LibJS/Tests mnt/home/anon/js-tests
|
||||||
|
chmod 700 mnt/root
|
||||||
chmod 700 mnt/home/anon
|
chmod 700 mnt/home/anon
|
||||||
chmod 700 mnt/home/nona
|
chmod 700 mnt/home/nona
|
||||||
|
chown -R 0:0 mnt/root
|
||||||
chown -R 100:100 mnt/home/anon
|
chown -R 100:100 mnt/home/anon
|
||||||
chown -R 200:200 mnt/home/nona
|
chown -R 200:200 mnt/home/nona
|
||||||
echo "done"
|
echo "done"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue