Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 3 Next »

There are several distinct file spaces available on TRACE, each serving a different function.

  • $HOME - /trace/home/<Andrew-id>
  • Project directory - /trace/group/<groupName>
  • $PACKAGES - /trace/packages
  • $LOCAL - /local/<slurmjobid>

File permissions

Access to files in any TRACE-HPC space is governed by Unix file permissions. If  your data has additional security or compliance requirements, please contact trace-it-help@andrew.cmu.edu.

Unix file permissions

For detailed information on Unix file protections, see the man page for the chmod (change mode) command.
To share files with your group, give the group read and execute access for each directory from your top-level directory down to the directory that contains the files you want to share.
chmod g+rx directory-name
Then give the group read and execute access to each file you want to share.
chmod g+rx filename
To give the group the ability to edit or change a file, add write access to the group:
chmod g+rwx filename

Access Control Lists

If you want more fine-grained control than Unix file permissions allow —for example, if you want to give only certain members of a group access to  a file, but not all members—then you need to use Access Control Lists (ACLs). Suppose, for example, that you want to give janeuser read access to a file in a directory, but no one else in the group.
Use the setfacl (set file acl) command to give janeuser read and execute access on the directory:
setfacl -m user:janeuser:rx directory-name
for each directory from your top-level directory down to the directory that contains the file you want to share with janeuser. Then give janeuser access to a specific file with
setfacl -m user:janeuser:r filename
User janeuser will now be able to read this file, but no one else in the group will have access to it.
To see what ACLs are set on a file, use the getfacl (get file acl) command.
There are man pages for chmod, setfacl and getfacl.

$HOME

This is your TRACE home directory. It is the usual location for your batch scripts, source code and parameter files. Its path is /trace/home/username, where  username is your Andrew-id. You can refer to your home directory with the environment variable $HOME. Your home directory is visible to all of TRACE's nodes.


  • No labels