<div dir="ltr"><br><br><div class="gmail_quote">On Thu, Aug 21, 2008 at 2:16 PM, Garrick Staples <span dir="ltr"><<a href="mailto:garrick@usc.edu">garrick@usc.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Thu, Aug 21, 2008 at 02:09:31PM -0400, Glen Beane alleged:<br>
<div><div></div><div class="Wj3C7c">> On Thu, Aug 21, 2008 at 1:48 PM, Garrick Staples <<a href="mailto:garrick@usc.edu">garrick@usc.edu</a>> wrote:<br>
><br>
> > On Wed, Aug 20, 2008 at 11:55:59AM -0600, Aaron Johnson alleged:<br>
> > > All,<br>
> > > I am using TORQUE to create web readable files, however when I try to<br>
> > > set the umask to 022 (u=rw,g=r,o=r) the permissions are actually set<br>
> > > 027 (u=rw,g=r,o=) what I am doing wrong? I need the files readable by<br>
> > > others, such as apache so that the webinterface can display them.<br>
> ><br>
> > It is unfortunately expecting a decimal number. Octal 22 is decimal 18.<br>
> > Using<br>
> > umask=18 does what you want.<br>
> ><br>
> > *sigh*<br>
><br>
><br>
><br>
> oops, that seems like behavior we probably want to change. I'm<br>
> embarrassed to admit I'm the one that wrote that code!<br>
<br>
</div></div>Should probably do the check in qsub. If the ATTR_umask string starts with a<br>
0, then convert to decimal first.</blockquote></div><br><br>I'm checking in code into trunk that does this. If the umask value starts with 0 then it is converted to decimal, if it does not start with 0 then it is treated as a decimal value. <br>
<br>So if a user passes -W umask=022 and then they do a qstat -f on the job they will see that the umask job attribute has a value of 18 since the attribute value is displayed as a decimal number.<br><br>I may end up backporting this to the 2.3-fixes branch, since I would consider treating a umask of 022 as decimal 22 as a bug. Anything without a leading zero will still be considered a base 10 value<br>
</div>