This folder can be used to share data across projects on /scratch
temporarily.
/scratch/public
is deleted after 2 weeks.Data created in /scratch/public
by default is owned by the owner's default project and is debited from that project's storage allocation on /scratch
.
$ nci-files-report -f scratch -g xy11 ------------------------------------------------------------------------------ project user space used file size count ------------------------------------------------------------------------------ public abc111 147MB 147MB 3 ... ------------------------------------------------------------------------------
The permission is set to world readable by default so that all Gadi users can see the data.
$ mkdir /scratch/public/abc111_to_jjj777 $ touch /scratch/public/abc111_to_jjj777/log.log $ ls -la /scratch/public/abc111_to_jjj777/ total 32 drwxr-xr-x 2 abc111 xy11 16384 Sep 1 14:43 . drwxrwxrwt. 17 root root 16384 Sep 1 14:42 .. -rw-r--r-- 1 abc111 xy11 0 Sep 1 14:43 log.log
To restrict the access, you can set ACLs to the files. For example, to allow only the user jjj777
to copy the file log.log
, remove the access of others first, and then add rX
access for jjj777
to the folder abc111_to_jjj777
recursively.
$ chmod 700 /scratch/public/abc111_to_jjj777 $ setfacl -Rm u:jjj777:rX /scratch/public/abc111_to_jjj777 $ getfacl /scratch/public/abc111_to_jjj777 getfacl: Removing leading '/' from absolute path names # file: scratch/public/abc111_to_jjj777 # owner: abc111 # group: xy11 user::rwx user:jjj777:r-x group::--- mask::r-x other::---