1

Where are username and password stored when you set System Wide Proxy in Settings -> Network?

I'm trying to find this file to configure an Ubuntu Server that does not have GUI.

JorgeeFG
  • 2,098

1 Answers1

1

The user-specific configuration is stored in each user's dconf registry.

You can read that configuration e.g. using gsettings:

$ gsettings list-recursively org.gnome.system.proxy

org.gnome.system.proxy use-same-proxy false
org.gnome.system.proxy mode 'none'
org.gnome.system.proxy autoconfig-url ''
org.gnome.system.proxy ignore-hosts ['localhost', '127.0.0.0/8', '::1']
org.gnome.system.proxy.ftp host ''
org.gnome.system.proxy.ftp port 0
org.gnome.system.proxy.socks host ''
org.gnome.system.proxy.socks port 0
org.gnome.system.proxy.http host ''
org.gnome.system.proxy.http port 8080
org.gnome.system.proxy.http use-authentication true
org.gnome.system.proxy.http authentication-password ''
org.gnome.system.proxy.http authentication-user ''
org.gnome.system.proxy.http enabled false
org.gnome.system.proxy.https host ''
org.gnome.system.proxy.https port 0

If you click the Apply system-wide button, it will set the proxy host values as environment variables in the /etc/environment file.

How exactly you can set a system-wide proxy is already well-described here.

Byte Commander
  • 110,243