Re: getting php to run as another user?

From: coolsti (coo_at_goontrytospamme.com)
Date: 09/24/04


Date: Fri, 24 Sep 2004 18:27:20 +0200

On Fri, 24 Sep 2004 18:08:53 +0200, coolsti wrote:

Maybe I found out the solution afterall. I just tried this:

I unmounted my Windows drive and remounted it with a command like

smbmount //windowsdrive/windir /mnt/home/windrive -o
username=george,uid=apache

where the significant difference here is that I specifically said that the
uid is apache instead of my Linux user id. When I do this, the script
works fine, and move_upload_files() can place the files on the windows
drive.

So I guess NC's advice was correct, the Windows permission is completely
separate from the Linux permissions.

Thanks!

/Steve



Relevant Pages

  • Re: OT: Ubuntu?
    ... PC games, you want Windows. ... Joe - Linux User #449481/Ubuntu User #19733 ... joe at hits - buffalo dot com ...
    (alt.smokers.cigars)
  • Blocks Pop-ups and other nasties... was Re: Linux Usage at Library Denies Patrons Full Browsing Capa
    ... Wilson Quansett wrote: ... > The Windows user can BROWSE ALL THE SITES and USE ALL THE PLUGINS. ... > The Linux user, as typical, is limited. ... |savings come from reduced administration costs and from hardware savings. ...
    (alt.os.linux)
  • Re: porting from C++Builder
    ... same by running Windows apps in a Windows VM under linux; ... So, if you mainly a linux user, what are you doing in here? ...
    (microsoft.public.dotnet.languages.vc)
  • Re: [PHP] Re: hello
    ... I'd be a target, as a linux user, I've become less aware of these things. ... I still don't endorse Windows or any mass-produced ... proprietary software. ... severely hinders evolution of all technology. ...
    (php.general)
  • Re: XP has no significant bugs that any significant number of users want fixed
    ... >nothing special about Windows, other than its popularity. ... the ability to modify system files in order for the virus to propagate. ... The linux user in the web browser can't install spyware that intercepts ...
    (sci.electronics.design)