HPC/Sharing Files: Difference between revisions

From CNM Wiki
< HPC
Jump to navigation Jump to search
Line 7: Line 7:
=== Using a Unix group ===
=== Using a Unix group ===


* suitable for ongoing exchanges
* This option is suitable for ongoing exchanges.
* a matching group directory will be located in <code>/home/share/''groupname''/</code>
* A group directory will be created and can be accessed by one of the following names:
* mutually writable among members, without concessions to other users
/home/share/''groupname''
* permissions are inherited for all files placed there
~''groupname''
 
* The directory will be mutually readable and writable among group members, and will not be accessible by other users.
Typically, a group name and directory is created automatically for each CNM proposal that has more than one user.  You can access the shared directories for proposals by one of the following:
* Permissions will be inherited to all files placed there.
 
Typically, such a group name and directory is created automatically for each CNM proposal that has more than one user.  You can access the shared directories for proposals by one of the following:
  /home/share/cnm''12345''
  /home/share/cnm''12345''
  ~cnm''12345''
  ~cnm''12345''
 
The '''system admin''' can create a project group and directory for you.  To [mailto:[email protected]?Subject=ad-hoc%20group request the creation of a group], please send the following information:
The system admin can create a project group and directory for you.  To [mailto:[email protected]?Subject=ad-hoc%20group request the creation of a group], please send the following information:
# a ''group name'' which should be short (up to some 8 chars), descriptive, and distinctive.
 
# the ''user list'' (later changes are easy).
# a ''group name'' which should be short (up to some 8 chars) and distinctive
# the ''user list'' (later changes are easy)


=== Sharing in your own directories ===
=== Sharing in your own directories ===

Revision as of 00:58, February 25, 2010

Introduction

When you collaborate with other users on a common project on Carbon, you may wish to share files among you. There are several ways to achieve this, largely distinguished by how often and for how long sharing is needed.

Sharing Types

Using a Unix group

  • This option is suitable for ongoing exchanges.
  • A group directory will be created and can be accessed by one of the following names:
/home/share/groupname
~groupname
  • The directory will be mutually readable and writable among group members, and will not be accessible by other users.
  • Permissions will be inherited to all files placed there.

Typically, such a group name and directory is created automatically for each CNM proposal that has more than one user. You can access the shared directories for proposals by one of the following:

/home/share/cnm12345
~cnm12345

The system admin can create a project group and directory for you. To request the creation of a group, please send the following information:

  1. a group name which should be short (up to some 8 chars), descriptive, and distinctive.
  2. the user list (later changes are easy).

Sharing in your own directories

You can give access to some your directories in your respective $HOME or $SANDBOX by opening permissions.

  • typically one-way (unless you grant world-write)
  • likely to need chmod whenever more files are placed.

You can arrange this on your own as follows:

Owner
chmod a+x $HOME/
mkdir $HOME/share
# populate ..
chmod -R a+rX $HOME/share
Reader
cd /home/owner/share
ls
cp -p ....

If you have particularly largefiles, replace $HOME and /home by $SANDBOX and /sandbox, respectively.

Using a /tmp directory

  • suitable for one-off exchanges
  • typically fairly loose permissions
  • resides on only one host
  • world-write not recommended
  • likely to need chmod whenever more files are placed

You can arrange this on your own as well:

mkdir /tmp/foo
# populate ..
chmod -R a+rX /tmp/foo