This content has been marked as final. Show 2 replies
I'm not sure I understand your question exactly. I think you want to run the TSM client command to view what's been backed up, but you don't want them to restore anything. If that's the case, I think you should quote the whole command.
Cmnd_Alias NOC_L1_CMD = "/bin/su - root -c /usr/bin/dsmc q backup "*""
I'm not sure how sudo is going to handle the quotes around the *.
I am not sure why you mentioned su - root, this is the job of sudo. All you need to do is:
User_Alias NOC_L1_USER = baj33, edg246
Host_Alias NOC_L1_HST = ch02520
Cmnd_Alias NOC_L1_CMD = "/usr/bin/dsmc q backup *"
NOC_L1_USER NOC_L1_HST = NOC_L1_CMD
NOPASSWD is always a bad idea in my opinion.