diff --git a/scripts/gen_netx_image.c b/scripts/gen_netx_image.c index 5c2207c0f..18e10bcae 100644 --- a/scripts/gen_netx_image.c +++ b/scripts/gen_netx_image.c @@ -218,7 +218,8 @@ int main(int argc, char *argv[]) checksum += *ptr++; nb->boot_checksum = -1 * checksum; - fd = open(outfile, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); + fd = open(outfile, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR | + S_IRGRP | S_IWGRP | S_IROTH); if(fd < 0) { perror("open"); exit(1);