[SOLVED] World-readable permissions on config.xml
Moderators: Site Moderators, FAHC Science Team
-
- Posts: 23
- Joined: Fri Feb 14, 2020 5:14 am
[SOLVED] World-readable permissions on config.xml
Is it necessary to have world-readable (644) permissions on /etc/foldingathome/config.xml? Curious why this is the default when passwords/keys are stored there.
Last edited by ajgringo619 on Tue Jan 18, 2022 2:07 am, edited 1 time in total.
-
- Site Moderator
- Posts: 1161
- Joined: Sat Dec 08, 2007 1:33 am
- Location: San Francisco, CA
- Contact:
Re: World-readable permissions on config.xml
It can be 0600 if you like.
-
- Posts: 23
- Joined: Fri Feb 14, 2020 5:14 am
Re: World-readable permissions on config.xml
Thanks; didn't want to mess anything up when it's working so well.calxalot wrote:It can be 0600 if you like.
-
- Posts: 23
- Joined: Fri Feb 14, 2020 5:14 am
Re: World-readable permissions on config.xml
To make the change permanent, I had to add this to the foldingathome.service file:
Code: Select all
# /etc/systemd/system/foldingathome.service.d/override.conf
[Service]
ExecStartPre=!/usr/bin/chmod 600 /etc/foldingathome/config.xml
-
- Site Moderator
- Posts: 1161
- Joined: Sat Dec 08, 2007 1:33 am
- Location: San Francisco, CA
- Contact:
Re: World-readable permissions on config.xml
You might want to change the umask for user fahclient
-
- Posts: 23
- Joined: Fri Feb 14, 2020 5:14 am
Re: World-readable permissions on config.xml
Not sure how to do this with a dynamic user, but thanks for the suggestion. My chmod command worked, but it went right back to normal after the next WU was started.calxalot wrote:You might want to change the umask for user fahclient
-
- Site Moderator
- Posts: 1161
- Joined: Sat Dec 08, 2007 1:33 am
- Location: San Francisco, CA
- Contact:
Re: World-readable permissions on config.xml
I think you can add
UMask=0077
in your FAHClient.service
UMask=0077
in your FAHClient.service
-
- Posts: 23
- Joined: Fri Feb 14, 2020 5:14 am
Re: World-readable permissions on config.xml
Thank you so much - that did the trick!