[torqueusers] troubles setting output and error file permissions with "-W umask=022"

Garrick Staples garrick at usc.edu
Thu Aug 21 12:16:07 MDT 2008


On Thu, Aug 21, 2008 at 02:09:31PM -0400, Glen Beane alleged:
> On Thu, Aug 21, 2008 at 1:48 PM, Garrick Staples <garrick at usc.edu> wrote:
> 
> > On Wed, Aug 20, 2008 at 11:55:59AM -0600, Aaron Johnson alleged:
> > > All,
> > > I am using TORQUE to create web readable files, however when I try to
> > > set the umask to 022 (u=rw,g=r,o=r)  the permissions are actually set
> > > 027 (u=rw,g=r,o=)  what I am doing wrong?  I need the files readable by
> > > others, such as apache so that the webinterface can display them.
> >
> > It is unfortunately expecting a decimal number.  Octal 22 is decimal 18.
> >  Using
> > umask=18 does what you want.
> >
> > *sigh*
> 
> 
> 
> oops,   that seems like behavior we probably want to change.  I'm
> embarrassed to admit I'm the one that wrote that code!

Should probably do the check in qsub.  If the ATTR_umask string starts with a
0, then convert to decimal first.

-- 
Garrick Staples, GNU/Linux HPCC SysAdmin
University of Southern California

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.supercluster.org/pipermail/torqueusers/attachments/20080821/c63af1b9/attachment.bin


More information about the torqueusers mailing list