Toon posts:

[Apache] onder windows start as different user

Pagina: 1
Acties:

Verwijderd

Topicstarter
Ik probeer de apache webserver onder win2k/winXP als een andere user te draaien dan het SYSTEM account.

Als ik dit doe, dan wil apache niet meer starten, ik heb die user dan volledige rechten gegeven op de map waar apache in staat, en die user heeft lees rechten op de windows map.

is het trouwens zowiezo mogelijk om een file rechten systeem te hebben ala *nix ?
want ik kan alleen beschrijvingen vinden hoe je dit zou kunnen oplossen onder *nix.

  • blackd
  • Registratie: Februari 2001
  • Niet online
Verwijderd schreef op 23 April 2003 @ 00:58:
is het trouwens zowiezo mogelijk om een file rechten systeem te hebben ala *nix ?
want ik kan alleen beschrijvingen vinden hoe je dit zou kunnen oplossen onder *nix.
Met NTFS permissies kan je e.e.a. regelen, maar dat is niet helemaal hetzelfde als onder unix/linux

9000Wp o/w SolarEdge SE6K - Panasonic 5kW bi-bloc - gasloos sinds 17-7-2023


Verwijderd

Topicstarter
Zo'n gevoel had ik al ? Maar apache onder een andere user draaien moet toch wel mogelijk zijn ?

Verwijderd

Topicstarter
Ik denk dat ik mijn eigen antwoord heb gevonden, maar ga het morgen pas testen, ben te moe

"The SYSTEM account has no privileges to the network, so shared pages or a shared installation of Apache is invisible to the service. If you intend to use any network resources, the following steps should help:

Select Apache from the Control Panel's Service dialog and click Startup.
Verify that the service account is correct. You may wish to create an account for your Apache services.
Retype the password and password confirmation.
Go to User Manager for Domains.
Click on Policies from the title bar menu, and select User Rights.
Select the option for Advanced User Rights.
In the drop-down list, verify that the following rights have been granted to the selected account:
Act as part of the operating system
Back up files and directories
Log on as a service
Restore files and directories
Confirm that the selected account is a member of the Users group.
Confirm the selected account has access to all document and script directories (minimally read and browse access).
Confirm the selected account has read/write/delete access to the Apache logs directory!
If you allow the account to log in as a user, then you can log in yourself and test that the account has the privileges to execute the scripts, read the web pages, and that you can start Apache in a console window. If this works, and you have followed the steps above, Apache should execute as a service with no problems.

Note: error code 2186 is a good indication that you need to review the 'Log On As' configuration, since the server can't access a required network resource."

Verwijderd

Topicstarter
Het werkt. (gelukkig)