How do you do an external program under another user at the php?



  • The challenge to the external programme is as follows:

    exec("cls_symstore_V6.cmd"); // вызов командника
    

    I need the cmd file to be performed under another user.

    How can this be achieved through php?



  • Start a violin from this user, for example, by means of a crown or terminal. Or create a user without password and authorise it before the crew. But it's not likely that it will. It's better to ask a group for the cls_symstore_V6.cmd www-data or rights to perform the guests for the program.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2