Skip to content

Commit

Permalink
Fixed chown command
Browse files Browse the repository at this point in the history
  • Loading branch information
wtripp180901 committed Jun 29, 2023
1 parent d6723cb commit 844cb0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ then
echo "---> Starting the MUNGE Authentication service (munged) ..."
cd /home
for DIR in */;
do USER=$( echo $DIR | sed "s/.$//" ) && (chown -R $USER $USER:$USER || echo "Failed to take ownership of $USER") && (chmod 600 /home/$USER/.ssh/authorized_keys || echo "Couldn't set permissions for .ssh keys for $USER");
do USER=$( echo $DIR | sed "s/.$//" ) && (chown -R $USER:$USER $USER || echo "Failed to take ownership of $USER") && (chmod 600 /home/$USER/.ssh/authorized_keys || echo "Couldn't set permissions for .ssh keys for $USER");
done
gosu munge /usr/sbin/munged
/usr/sbin/sshd -D
Expand Down

0 comments on commit 844cb0d

Please sign in to comment.