Permissions for /etc/netplan/01-netcfg.yaml are too open

Bug #2044636 reported by madigal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
netplan.io (Ubuntu)
Won't Fix
Undecided
Unassigned
subiquity (Ubuntu)
New
Undecided
Unassigned

Bug Description

With a single desktop default installation, i get this logged:

 generate[1125]: Permissions for /etc/netplan/01-netcfg.yaml are too open. Netplan configuration should NOT be accessible by others.

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: netplan-generator 0.107-5ubuntu2
ProcVersionSignature: Ubuntu 6.5.0-14.14-generic 6.5.3
Uname: Linux 6.5.0-14-generic x86_64
ApportVersion: 2.27.0-0ubuntu6
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: MATE
Date: Sun Nov 26 10:41:15 2023
ProcEnviron:
 LANG=fr_FR.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
SourcePackage: netplan.io
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
madigal (osse7) wrote :
Revision history for this message
Lukas Märdian (slyon) wrote :

This is a warning from the Netplan side, which should not affect functionality.

The permissions (chmod) on /etc/netplan/01-netcfg.yaml should match 0o600 and subiquity might not be using the most restrictive permissions here, yet.

So you can run somethink like this as a workaround:
$ sudo chmod 600 /etc/netplan/01-netcfg.yaml

Let's re-assign to subiquity to double-check that.

Changed in netplan.io (Ubuntu):
status: New → Invalid
status: Invalid → Won't Fix
Revision history for this message
madigal (osse7) wrote :

Subiquity might not be blamed here, as that system is a long term rollover installation simply ugraded via the sources.list update. Subiquity has never been used on this system.

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.