What does the form field »Enter Auth username« during the boot proccess mean?

Since I upgraded to Ubuntu 15.04 my system shows a strange behaviour booting: Shortly after the Ubuntu boot splash a form element shows up requiring me to enter an »Auth username«.
The boot process stucks, until I would hit enter. What is that, where does it come from, how can I get rid of it?

That’s how in looks like:

+------------------------------------------+
|                                          |
|                                          |
|                                          |
|                                          |
|                 Ubuntu°                  |
|                 ....                     |
|                                          |
|                                          |
|                                          |
|           Enter Auth Username            |
|           +------------------+           |
|           |                  |           |
|           +------------------+           |
|                                          |
|                                          |
|                                          |
|                                          |
|                                          |
+------------------------------------------+
Asked By: user5950

||

The problem was caused by some configurations file in /etc/openvpn. I don’t know why the problem came only up after an upgrade to Ubuntu 15.04 as those files had been a long time before there.
But actually, if you don’t run an openvpn server or have some important openvpn configurations you can easily delete all those files with:

sudo rm -R /etc/openvpn/*

If you want to do a backup first, consider running something like this:

sudo tar -czf /etc/openvpn/
Answered By: user5950

I encountered this same issue and managed to resolve it. I first opened the OpenVPN init script with:

sudo nano /etc/default/openvpn

And uncommented the line:

AUTOSTART="none"

This should stop all OpenVPN connections on startup and thus resolves the issue without actually removing OpenVPN.

Answered By: Michael Lindman

I got the prompt at boot time:

> Enter Auth UserName:

I figured out after some time that it is the openvpn server/service starting up (if you try to stop and start the openvpn.service in systemctl, you will get prompted for a password).
So, if you only need the client to connect from this current machine to another server, you can disable the service like so (Debian 9, Ubuntu 18.04):

# systemctl disable openvpn.service
Answered By: scrat.squirrel

I had OpenVPN autostart working without the Auth Username prompt until I switched which VPN I was connecting to at boot. When I switched I forgot to modify the auth-user-pass directive in the new .conf file to point to the username and password file.

I have the username and password stored in /etc/openvpn/vpn.auth owned by root with permissions 600 like so:

plaintext-username
plaintext-password

In the .ovpn file I downloaded from my VPN provider the auth-user-pass directive looked like this:

...
auth-user-pass
...

I changed it to look like this and it fixed it:

...
auth-user-pass "/etc/openvpn/vpn.auth"
...

Now it auto starts at boot without the prompt.

Remember to rename the .ovpn file to .conf as that’s what the OpenVPN initscript is looking for at boot per the docs.

Answered By: JB0x2D1
Categories: Answers Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.