Hi folks,
we're running a server software on one of our machines that uses certain commands vor lock_server, unlock_server, stop server, etc. that can only be run by a certain non root user. It is not possible to run these commands as root...
Is there any way to write a script, that switches from root to that certain user and runs the server commands ?
How can we do it?
We tried:
/usr/bin/su - Username "-c Command"
but it didn't quite work out ...
Thanks in advance !
Regards
Thomas
we're running a server software on one of our machines that uses certain commands vor lock_server, unlock_server, stop server, etc. that can only be run by a certain non root user. It is not possible to run these commands as root...
Is there any way to write a script, that switches from root to that certain user and runs the server commands ?
How can we do it?
We tried:
/usr/bin/su - Username "-c Command"
but it didn't quite work out ...
Thanks in advance !
Regards
Thomas