[torquedev] "kept" files are mode 666?

Garrick Staples garrick at usc.edu
Thu Dec 22 01:35:38 MST 2005


I was just playing around with the data staging code and just discovered
that the stdout/stderr files created in the user's homedir are mode 666!

$ ls -al STDIN.?52197
-rw-rw-rw-    1 garrick  rds             0 Dec 22 00:23 STDIN.e52197
-rw-rw-rw-    1 garrick  rds           889 Dec 22 00:24 STDIN.o52197


And this is intentional!

src/resmom/start_exec.c:open_std_file()...

    /* make mode ugo+rw for spooled file so root can write */
    /* from prolog & epilog, dir. permissions are more */
    /* important with this hack in place */

    my_umask = umask(0000);
    fds      = open(path,mode,0666);
    umask(my_umask);

-- 
Garrick Staples, Linux/HPCC Administrator
University of Southern California
-------------- 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/torquedev/attachments/20051222/5cc10397/attachment.bin


More information about the torquedev mailing list