15 lines
463 B
Bash
Executable File
15 lines
463 B
Bash
Executable File
#!/bin/sh
|
|
# Fix NetworkManager connection file permissions
|
|
|
|
set -e
|
|
|
|
echo "Fixing NetworkManager connection permissions..."
|
|
|
|
# NetworkManager requires connection files to be owned by root:root with 600 permissions
|
|
if [ -d /etc/NetworkManager/system-connections ]; then
|
|
chown -R root:root /etc/NetworkManager/system-connections
|
|
chmod 600 /etc/NetworkManager/system-connections/*.nmconnection 2>/dev/null || true
|
|
fi
|
|
|
|
echo "NetworkManager permissions fixed."
|