Troubleshooting
Problem
Non-root users fail to retrieve files archived by root user, even though they own the files.
Symptom
- Use root userid to archive a file owned by user userA. For example :
root# ls -al /home/userA/test
-rw-r--r-- 1 userA staff 0 Aug 20 15:00 test
[myAIX:root: /home/userA] dsmc archive /home/userA/test
....
Node Name: myAIX
Session established with server myAIX: AIX-RS/6000
Server Version 5, Release 4, Level 3.0
Server date/time: 10/05/08 12:48:28 Last access: 10/05/08 11:47:37
Directory--> 512 /home/userA [Sent]
Normal File--> 0 /home/userA/test [Sent]
Archive processing of '/home/userA/test' finished without failure.
Total number of objects inspected: 2
Total number of objects archived: 2
Total number of objects updated: 0
Total number of objects rebound: 0
Total number of objects deleted: 0
Total number of objects expired: 0
Total number of objects failed: 0
Total number of bytes transferred: 0 B
Data transfer time: 0.00 sec
Network data transfer rate: 0.00 KB/sec
Aggregate data transfer rate: 0.00 KB/sec
Objects compressed by: 0%
Elapsed processing time: 00:00:01
- The non-root user, and owner of the file, fails to retrieve or query the file archived by the root user. For example :
root#su - userA
userA$dsmc query archive /home/userA/test
...
ANS1092W No files matching search criteria were found
userA$dsmc retrieve /home/userA/test
...
ANS1302E No objects on server match query
Note: This issue is not seen with the Backup/Restore operations of the same file.
Cause
This is working as designed. The owner of the backed up copy of the file on server is the user who owns the file on the client machine The owner of the archived copy of the file on server is the user who did the archive. This is documented in the "IBM Tivoli Storage Manager for UNIX and Linux: Backup-Archive Clients Installation and User’s Guide":Chapter 4. Backing up your data-Saving access permission and Chapter 6. Archiving and retrieving your data -Saving access permission
Environment
Tivoli Storage Manager client on UNIX and Linux
Resolving The Problem
The following steps can be taken to allow a non-root owner to retrieve data archived by root userid.
- As a root user, use the following Tivoli Storage Manager client command to grant access to the non-root owner :
dsmc set access archive /home/userA/test * userA
- As a non-root user, run the following command to retrieve the file:
dsmc retrieve /home/userA/test -fromowner=root
Was this topic helpful?
Document Information
Modified date:
17 June 2018
UID
swg21316582