netplan-set generates file with minimal permissions

Bug #2021493 reported by Mészáros Máté Róbert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Netplan
Won't Fix
Undecided
Unassigned

Bug Description

Using netplan-set generates a yaml file that is only readable by the owner (600), while most other applications make the configuration files readable by the group and others as well (644).

I suggest to default to the generally used read permissions (644).

Revision history for this message
Danilo Egea Gondolfo (danilogondolfo) wrote :

Hello, thanks for your suggestion.

We changed the default permissions recently due to some concerns about the fact that netplan yaml files can store credentials. If the files are world readable, one could run "netplan get" and see passwords stored there.

We have plans to address this issue though. But for now it's better to use a restrictive set of permissions for security reasons.

Thanks.

Changed in netplan:
status: New → Triaged
Lukas Märdian (slyon)
Changed in netplan:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.