diff --git a/distrobox-init b/distrobox-init index 009486327f..282093bc94 100755 --- a/distrobox-init +++ b/distrobox-init @@ -2002,10 +2002,9 @@ if [ -n "${DISTROBOX_HOST_HOME-}" ] && [ -d "/etc/skel" ]; then if [ ! -f "${container_user_home}/${file_path_for_home:+"${file_path_for_home}"/}${base_file_name}" ] && [ ! -L "${container_user_home}/${file_path_for_home:+"${file_path_for_home}"/}${base_file_name}" ]; then cp "${skel_file}" "${container_user_home}/${file_path_for_home:+"${file_path_for_home}"/}${base_file_name}" - chown "${container_user_uid}":"${container_user_gid}" \ - "${container_user_home}/${file_path_for_home:+"${file_path_for_home}"/}${base_file_name}" fi done + chown -R "${container_user_uid}":"${container_user_gid}" "${container_user_home}/${file_path_for_home:+"${file_path_for_home}"/}" fi ###############################################################################