Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permissions for user generated .ovpn client files #961

Open
4 tasks done
Toilal opened this issue Jan 19, 2022 · 0 comments · May be fixed by #962
Open
4 tasks done

Permissions for user generated .ovpn client files #961

Toilal opened this issue Jan 19, 2022 · 0 comments · May be fixed by #962

Comments

@Toilal
Copy link

Toilal commented Jan 19, 2022

Checklist

  • I read the README
  • I read the FAQ
  • I searched the issues
  • My issue is about the script, and not OpenVPN itself

Is your feature request related to a problem? Please describe.

When generating client file with for a user, it is generated in home directory of the user. That's a good idea, but file permissions doesn't match the generated user, it's owned by root and user can't edit or delete the file on it's own.

Describe the solution you'd like
When generating a client file for a user, it should set security flags according to the related user, for him to be the owner and the file can't be read by other users.

chmod go-rw $CLIENT.ovpn
chown $CLIENT $CLIENT.ovpn

Describe alternatives you've considered

Additional context

Toilal added a commit to Toilal/openvpn-install that referenced this issue Jan 19, 2022
Toilal added a commit to Toilal/openvpn-install that referenced this issue Jan 19, 2022
Toilal added a commit to Toilal/openvpn-install that referenced this issue Jan 19, 2022
Toilal added a commit to Toilal/openvpn-install that referenced this issue Jan 19, 2022
Toilal added a commit to Toilal/openvpn-install that referenced this issue Jan 19, 2022
Toilal added a commit to Toilal/openvpn-install that referenced this issue Jan 19, 2022
Toilal added a commit to Toilal/openvpn-install that referenced this issue Jan 19, 2022
Toilal added a commit to Toilal/openvpn-install that referenced this issue Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants