lavabit / robox

The tools needed to robotically create/configure/provision a large number of operating systems, for a variety of hypervisors, using packer.
630 stars 140 forks source link

netplan produces warnings on Ubuntu 22.04 #296

Open evgeni opened 7 months ago

evgeni commented 7 months ago
root@ubuntu2204:~# netplan generate

** (generate:3775): WARNING **: 11:04:25.237: Permissions for /etc/netplan/00-installer-config.yaml are too open. Netplan configuration should NOT be accessible by others.

** (generate:3775): WARNING **: 11:04:25.237: Permissions for /etc/netplan/01-netcfg.yaml are too open. Netplan configuration should NOT be accessible by others.
root@ubuntu2204:~# netplan apply

** (generate:3780): WARNING **: 11:04:28.079: Permissions for /etc/netplan/00-installer-config.yaml are too open. Netplan configuration should NOT be accessible by others.

** (generate:3780): WARNING **: 11:04:28.079: Permissions for /etc/netplan/01-netcfg.yaml are too open. Netplan configuration should NOT be accessible by others.
WARNING:root:Cannot call Open vSwitch: ovsdb-server.service is not running.

** (process:3778): WARNING **: 11:04:28.223: Permissions for /etc/netplan/00-installer-config.yaml are too open. Netplan configuration should NOT be accessible by others.

** (process:3778): WARNING **: 11:04:28.223: Permissions for /etc/netplan/01-netcfg.yaml are too open. Netplan configuration should NOT be accessible by others.

** (process:3778): WARNING **: 11:04:28.280: Permissions for /etc/netplan/00-installer-config.yaml are too open. Netplan configuration should NOT be accessible by others.

** (process:3778): WARNING **: 11:04:28.280: Permissions for /etc/netplan/01-netcfg.yaml are too open. Netplan configuration should NOT be accessible by others.

** (process:3778): WARNING **: 11:04:28.280: Permissions for /etc/netplan/00-installer-config.yaml are too open. Netplan configuration should NOT be accessible by others.

** (process:3778): WARNING **: 11:04:28.280: Permissions for /etc/netplan/01-netcfg.yaml are too open. Netplan configuration should NOT be accessible by others.

At least /etc/netplan/01-netcfg.yaml is produced by the scripts in this repo and should set the permissions correctly.

mnosenko commented 3 months ago

try to change access mode of all files in /etc/netplan/ to 600 sudo chmod 600 /etc/netplan/*