Skip to content

Commit

Permalink
aspects/CurrentUser: fix bug in entrypoint that resulted in root-owne…
Browse files Browse the repository at this point in the history
…d mounted directories
  • Loading branch information
waynr committed Jan 30, 2024
1 parent 2e9468a commit dafe08b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/dfiles/aspects.rs
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,10 @@ useradd --home-dir /home/{user} \
adduser {user} tty
mkdir -p /data /home/{user}
chown {user}:{group} /data /home/{user}
# NOTE: we need to recursively chown all files in the /home/{user} directory
# because this script runs after volume mounting happens and applications
# can very subtly break if there are any directories owned by root
chown -R {user}:{group} /data /home/{user}
cd /home/{user}
USER={user}"#,
Expand Down

0 comments on commit dafe08b

Please sign in to comment.