Skip to content

Permissions for user generated .ovpn client files #961

Open
@Toilal

Description

@Toilal

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions