sht2017 commented on issue #5028:
URL: https://github.com/apache/couchdb/issues/5028#issuecomment-2041225562
> Hi,
>
> commenting on your video from above: The msi is doing an administrative
installation of CouchDB (UAC window is opening during setup), so the install
directory has system rights. Looking at the wix installer we have this:
>
> ```
> <CreateFolder>
> <Permission User="[WIX_ACCOUNT_LOCALSYSTEM]" GenericAll="yes" />
> <Permission User="[WIX_ACCOUNT_ADMINISTRATORS]" GenericAll="yes" />
> <Permission User="[WIX_ACCOUNT_USERS]" GenericRead="yes"
GenericExecute="yes" />
> </CreateFolder>
> ```
>
> So users in the USERS group will get read/execute access by default ...
I still believe so.
Since the part you provide,
`<Permission User="[WIX_ACCOUNT_USERS]" GenericRead="yes"
GenericExecute="yes" />`
Obviously, the USERS group will not get write access by default. If anyone
tries to start CouchDB server without the administrator's permission it will
fail anyway due to the lack of write access to the default log path as I
occoured.
```
{"Kernel pid
terminated",application_controller,"{application_start_failure,couch_log,{{shutdown,{failed_to_start_child,couch_log_server,{{badmatch,{error,eacces}},[{couch_log_writer,init,0,[{file,\"src/couch_log_writer.erl\"},{line,36}]},{couch_log_server,init,1,[{file,\"src/couch_log_server.erl\"},{line,56}]},{gen_server,init_it,2,[{file,\"gen_server.erl\"},{line,423}]},{gen_server,init_it,6,[{file,\"gen_server.erl\"},{line,390}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,226}]}]}}},{couch_log_app,start,[normal,[]]}}}"}
Kernel pid terminated (application_controller)
({application_start_failure,couch_log,{{shutdown,{failed_to_start_child,couch_log_server,{{badmatch,{error,eacces}},[{couch_log_writer,init,0,[{file,"src/couch_log_writer.erl"},{line,36}]},{couch_log_server,init,1,[{file,"src/couch_log_server.erl"},{line,56}]},{gen_server,init_it,2,[{file,"gen_server.erl"},{line,423}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,390}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]}}},{couch_log_app,start,[normal,[]]}}})
Crash dump is being written to: erl_crash.dump...
```
So I guess we may need to consider that to let the USERs group obtain write
access to the path, or change the default path for log file...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]