<div dir="ltr"><div>You are right. The critical part I was missing is that chown does not work without sudo.</div><div><br></div><div>I assume this can be fixed by modifying the configuration so "SlurmdUser=root", but does this imply that anything run with `srun` will be actually executed by root? This seems dangerous.</div><div><br></div><div>Thanks a lot.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 8 Jul 2019 at 17:28, Jeffrey Frey <<a href="mailto:frey@udel.edu">frey@udel.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Does user "slurm" have the capability of reowning files/directories to an arbitrary uid/gid? Probably not -- that's something "root" can do, though.<br>
<br>
<br>
<br>
<br>
> On Jul 8, 2019, at 12:01 PM, Daniel Torregrosa <<a href="mailto:daniel.torregrosa@insight-centre.org" target="_blank">daniel.torregrosa@insight-centre.org</a>> wrote:<br>
> <br>
> Hi all,<br>
> <br>
> I am currently testing slurm (slurm-wlm 17.11.2 from a newly installed and updated Ubuntu server LTS). I managed to make it work on a very simple 1 master node and 2 compute nodes configuration. All three nodes have the same users (namely root, slurm and test), with slurm running both slurmctld and slurmd on the corresponding node (i.e. SlurmUser=slurm and SlurmdUser=slurm), and test as the only loggable user.<br>
> <br>
> Commands such as `salloc` and `srun` work perfectly, but `sbatch` fails. In `squeue`, I get "(launch failed requeued help)". When I check the corresponding compute node log, I get "error: chown(/var/spool/slurmd/d/jobxxxxx): Operation not permitted". The previous line has "Launching batch job xx for UID 1000" (test) or 0 (root) if running `sudo sbatch`.<br>
> <br>
> Batch file looks like<br>
> <br>
> #! /bin/bash<br>
> #SBATCH -J myjob<br>
> <br>
> hostname<br>
> <br>
> I suspect that the problem is that `srun` and `salloc` are being run by SlurmdUser (slurm, i.e. `srun whoami` returns slurm), who owns /var/spool/slurmd, but sbatch tasks are being run by the user issuing the command (test).<br>
> <br>
> Should I chmod /var/spool/slurmd so any user can write there, or do I have a configuration problem? I feel like I am missing something critical here.<br>
> <br>
> Thanks a lot.<br>
> Daniel<br>
<br>
<br>
::::::::::::::::::::::::::::::::::::::::::::::::::::::<br>
Jeffrey T. Frey, Ph.D.<br>
Systems Programmer V / HPC Management<br>
Network & Systems Services / College of Engineering<br>
University of Delaware, Newark DE 19716<br>
Office: (302) 831-6034 Mobile: (302) 419-4976<br>
::::::::::::::::::::::::::::::::::::::::::::::::::::::<br>
<br>
<br>
<br>
<br>
</blockquote></div>