question

drureuospa avatar image
drureuospa asked Spirent_Admin answered

Does iTest run as setuid?

I have a test script that was created and is owned by a user called **novatest**. iTest was installed by **novatest** and the files are owned by **novatest** but the script is run using the CLI by individual users as themselves. In our script we are making use of a Process session to move some files around and specifically to move files into the executing user's /tftpboot directory. It appears that the script is running the Process session as the **novatest** user instead of the user that executed the script thus making the script effectively a setuid executable. Is this correct behaviour? How can I run an external process on the local machine as the user that kicked off the script instead of the user that owns the script?
iTestiTest Runtime (itestrt)itestcli
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Spirent_Admin avatar image
Spirent_Admin answered
Please see other article [Want to execute with CLI username][1] [1]: http:///questions/4735/want-to-execute-with-cli-username.html
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Spirent_Admin avatar image
Spirent_Admin answered
I think you'll find everything a lot simpler if you use itestrt rather than itestcli. itestrt will execute using the privileges of whatever user runs its. To use itestrt, you need to build ITARs for the iTest projects containing test cases and other supporting files required for whatever test you need to execute. If you need help with doing that, let us know.
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

msandeep avatar image
msandeep answered Spirent_Admin edited
Yes, it is the regular behaviour of iTest because when you have captured the test case it is created with "novatest" and taking the default path. If you want to change the paths for respative users go to test case open step and Process session property and specified the new paths. Another way: You could use use varibales in the session property to come out of this behaviour. Hope this will help you!!
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.