From a6a94f8b0212ebca2a9e100e76f66196107c0d75 Mon Sep 17 00:00:00 2001 From: JEAN-FRANCOIS GUILLAUME Date: Mon, 21 Nov 2022 13:02:31 +0100 Subject: [PATCH] adding recursive chown on slurm config --- glicid/services/parallel.scm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/glicid/services/parallel.scm b/glicid/services/parallel.scm index 35413b9..4d41677 100644 --- a/glicid/services/parallel.scm +++ b/glicid/services/parallel.scm @@ -243,10 +243,9 @@ (chown "/var/spool/slurmctld" (passwd:uid (getpwnam "slurm")) (passwd:gid (getpwnam "slurm"))) (chown "/etc/slurm" (passwd:uid (getpwnam "slurm")) (passwd:gid (getpwnam "slurm"))) (for-each (lambda (slurm-file) - (chown slurm-file (passwd:uid (getpwnam "slurm")) (passwd:gid (getpwnam "slurm"))) - ) - (find-files "/etc/slurm") - ) + (chown slurm-file (passwd:uid (getpwnam "slurm")) (passwd:gid (getpwnam "slurm"))) + (chmod "0600" slurm-file) + )(find-files "/etc/slurm")) #t ) )