Sample Header Ad - 728x90

How to Run the command or script through any user in linux?

0 votes
1 answer
59 views
I am having a C executable in AIX system by which I can run the command through any user like root or system users. script having below permissions. On AIX server lrwsrwxrwx 1 root system 24 Mar 2016 /var/srty/bin/switchuseridprogram -> /opt/switchuseridprogram -rwsr-sr-x 1 root mrc 5024 Jul 20 2015 /opt/switchuseridprogram Example usage /var/srty/bin/switchuseridprogram root 'chown mtest1:dba /mprt/setup/test.log' Now I am preparing one RHEL system and I don't have source code of that C executable, and I want to use the same functionality in that RHEL system without using sudo. How to do it?
Asked by user3548033 (653 rep)
May 7, 2019, 07:06 PM
Last activity: May 8, 2019, 07:21 PM