You could try adding sudo in your cron script, but then you have to configure nmcli to be sudoed without password. You will probably want to have a look at /etc/dbus-1/system.d/NetworkManager.conf. This specifies what is allowed and there is a special policy configuration with attribute 'at_console' which make your command line action work, but below that is policy for default context which denies most actions. This one applies to your cron job.
You could allow same for default as for at_console, but that may depend what you consider safe on your machine. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/681708 Title: nmcli reports :Not authorized to control networking. when run from cron -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs