You are here

How to access other users' archived data

Table of contents:

Grant Access To Other User Using GUI

Open up a GUI of TSM on the login nodes by

$ ssh -X loginnodes
$ module load java
$ dsmj -se=userid

On the main page, go to Utilities , Node Access List, it will open up a window which shows you who has the access previleges to your node.

To add new users to your access list, click Add on the right hand side of the panel. Select Archived Objects on Permit Access to. Add the userid to in the column Grant Access to Node and leave * on the User column. If you only want to grant the access of some certain files/directories, you can select that file/directory on the Filespace and Directory column, or fill in the Filename and Include subdirectories part.

Click OK to submit the rule.

You can view/change/delete these access rules on the Node Access List window.

Access Other User's Data Using GUI

After you launched the GUI of TSM, on the main window, go to Utilities, Access Other Node.

On the poped-up window, enter userid that you would like to access on both column Node Name and User Name. Click Set and you can navigate and retrieve as you used to.

Grant Access To Other User Using Command Line

The syntax for "set access" is:

 Set Access Archive/Backup $filespect $nodename $userid 

To grant user2 access to all your archived file:

$ dsmc -se=my_userid
Protect> set access archive * user2
ANS1148I 'Set Access' command successfully completed

To grant user2 access to some of your archived files:

$ dsmc -se=my_userid
Protect> set access archive path-to-file user2

In examples we give above, we specify access to the "Archived" data. We also specify user2 as $nodename. The parameter $userid is omitted as by default it points to all users(*).

To query who can access your files:

$ dsmc q access -se=my_userid 
Type     Node        User        Path
----     ----------------------------
Archive  user2       *           *

To delete the access rules, for example:

$ dsmc delete access -se=jiangd03 
Index Type     Node        User        Path
----- ----     ----------------------------
  1   Archive  THAKUB02    thakub02    /hpc/users/jiangd03/*/*
  2   Archive  THAKUB01    *           /hpc/users/jiangd03/find-active-user-mail/*
  3   Archive  THAKUB01    *           /hpc/users/jiangd03/find-active-user-mail/*/*
Enter Index of rule(s) to delete, or quit to cancel:

This command will list all the acess rules by index. You can enter the index number if you want to delete that rule.

Access other user's archived files using command line

After the access is granted by user3, you can query and retrieve user3's archived file:

$ dsmc q archive -se=my_userid -fromnode=user3 -fromowner=user3 path-to-file

$ dsmc retrieve -se=my_userid -fromnode=user3 -fromowner=user3 path-to-file path-to-my-dir

Note: After retrieval, the owner and group of the retrieved file will automaticly changed to be the same as retriever.

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer