2
1
의 미러 https://github.com/therootcompany/greenlock-express.js.git synced 2025-06-30 13:46:31 +00:00

Possible to give read/write access to the group when creating the config.json? #65

오픈
opened 2020-09-29 20:01:42 +00:00 by Ghost · 3개의 코멘트

Right now, I have a problem in my system: each time someone start the server, it will recreate the file config.json with the following credentials:

-rw------- 1 <user> <group>  804 Sep 29 19:52 config.json

So when someone else tries to restart the server it will fail because it cannot read the config.json file.

Is it possible to change the behavior to give access to the whole group?

Right now, I have a problem in my system: each time someone start the server, it will recreate the file config.json with the following credentials: ``` -rw------- 1 <user> <group> 804 Sep 29 19:52 config.json ``` So when someone else tries to restart the server it will fail because it cannot read the config.json file. Is it possible to change the behavior to give access to the whole group?
소유자

Checkout https://webinstall.dev/serviceman

That's the easiest way to use systemd so that the service is owned by a specific user/group rather than changing hands with each user.

Checkout https://webinstall.dev/serviceman That's the easiest way to use `systemd` so that the service is owned by a specific user/group rather than changing hands with each user.
소유자

For example:

pushd ./my-node-app/

sudo env PATH="$PATH" \
    serviceman add --system --cap-net-bind \
    npx nodemon ./server.js
pushd ./my-node-app/

sudo env PATH="$PATH" \
    serviceman add --system --cap-net-bind \
    npm start
For example: ```bash pushd ./my-node-app/ sudo env PATH="$PATH" \ serviceman add --system --cap-net-bind \ npx nodemon ./server.js ``` ```bash pushd ./my-node-app/ sudo env PATH="$PATH" \ serviceman add --system --cap-net-bind \ npm start ```
Author

Sorry man. Actually I think that I was responsible for the config.json being written with wrong permissions. I thought it was part of greenlock process.

Sorry man. Actually I think that I was responsible for the config.json being written with wrong permissions. I thought it was part of greenlock process.
"로그인하여 이 대화에 참여"
레이블 없음
참여자 2명
알림
마감일
마감일이 설정되지 않았습니다.
의존성

No dependencies set.

Reference: root/greenlock-express.js#65
No description provided.