Sumit
Sumit

Reputation: 1

In PHP While using exec() or system() function the default user had been taking

By default when system() and exec() functions are used in PHP the default user is SYSTEM so I can never see the result. Is there a way to change the user it runs it as administrator

Sumit

Upvotes: 0

Views: 43

Answers (1)

hsz
hsz

Reputation: 152304

Calling anything from PHP as a root is danger. Try to allow access to specific resource for the default user instead.

Upvotes: 1

Related Questions