Jul 19, 2002 #1 stritec Programmer Oct 23, 2000 9 US Is there a way in PHP to use exec() or something similar that you can pass a user and/or group that the command or application should be run as?
Is there a way in PHP to use exec() or something similar that you can pass a user and/or group that the command or application should be run as?
Jul 19, 2002 #2 AnakinPt Programmer Mar 29, 2001 583 PT I don't think so, cause you cannot run anything in the name of others. Well, that's not intirely true, in Linux there's a way for a userr to run as another, but that's a security breach. the files must have mode 4755 this will put a system flag in the file permitions. Anikin Hugo Alexandre Dias Web-Programmer anikin_jedi@hotmail.com Upvote 0 Downvote
I don't think so, cause you cannot run anything in the name of others. Well, that's not intirely true, in Linux there's a way for a userr to run as another, but that's a security breach. the files must have mode 4755 this will put a system flag in the file permitions. Anikin Hugo Alexandre Dias Web-Programmer anikin_jedi@hotmail.com
Jul 19, 2002 #3 KarveR MIS Dec 14, 1999 2,065 GB You can only accomplish this if you run your webserver daemon as root which is A VERY BAD IDEA. Any script or user (including daemons) which are not owned by root, will not be allowed to execute any group commands for groups other than thier own. ______________________________________________________________________ There's no present like the time, they say. - Henry's Cat. Upvote 0 Downvote
You can only accomplish this if you run your webserver daemon as root which is A VERY BAD IDEA. Any script or user (including daemons) which are not owned by root, will not be allowed to execute any group commands for groups other than thier own. ______________________________________________________________________ There's no present like the time, they say. - Henry's Cat.
Jul 20, 2002 #4 AnakinPt Programmer Mar 29, 2001 583 PT I know it's a bad idea ... that's why i say that that was a security breach. Anikin Hugo Alexandre Dias Web-Programmer anikin_jedi@hotmail.com Upvote 0 Downvote
I know it's a bad idea ... that's why i say that that was a security breach. Anikin Hugo Alexandre Dias Web-Programmer anikin_jedi@hotmail.com