Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #248092 > unrolled thread
| Started by | Richmond <richmond@criptext.com> |
|---|---|
| First post | 2022-05-11 16:20 +0200 |
| Last post | 2022-05-16 11:40 +0200 |
| Articles | 7 on this page of 27 — 6 participants |
Back to article view | Back to linux.debian.user
Editing the DNS with Network Manager Non Root Richmond <richmond@criptext.com> - 2022-05-11 16:20 +0200
Re: Editing the DNS with Network Manager Non Root David Christensen <dpchrist@holgerdanske.com> - 2022-05-11 22:50 +0200
Re: Editing the DNS with Network Manager Non Root Richmond <richmond@criptext.com> - 2022-05-12 16:40 +0200
Re: Editing the DNS with Network Manager Non Root David Christensen <dpchrist@holgerdanske.com> - 2022-05-13 01:20 +0200
Re: Editing the DNS with Network Manager Non Root Richmond <richmond@criptext.com> - 2022-05-13 18:30 +0200
Re: Editing the DNS with Network Manager Non Root David Christensen <dpchrist@holgerdanske.com> - 2022-05-13 21:00 +0200
Re: Editing the DNS with Network Manager Non Root Greg Wooledge <greg@wooledge.org> - 2022-05-13 21:10 +0200
Re: Editing the DNS with Network Manager Non Root David Wright <deblis@lionunicorn.co.uk> - 2022-05-13 22:50 +0200
Re: Editing the DNS with Network Manager Non Root Greg Wooledge <greg@wooledge.org> - 2022-05-13 23:30 +0200
Re: Editing the DNS with Network Manager Non Root Greg Wooledge <greg@wooledge.org> - 2022-05-14 02:50 +0200
Re: Editing the DNS with Network Manager Non Root David Wright <deblis@lionunicorn.co.uk> - 2022-05-14 06:40 +0200
Re: Editing the DNS with Network Manager Non Root David Wright <deblis@lionunicorn.co.uk> - 2022-05-16 05:50 +0200
Re: Editing the DNS with Network Manager Non Root Greg Wooledge <greg@wooledge.org> - 2022-05-16 13:20 +0200
Re: Editing the DNS with Network Manager Non Root David Wright <deblis@lionunicorn.co.uk> - 2022-05-16 17:50 +0200
Re: Editing the DNS with Network Manager Non Root David Wright <deblis@lionunicorn.co.uk> - 2022-05-14 06:40 +0200
Re: Editing the DNS with Network Manager Non Root Vincent Lefevre <vincent@vinc17.net> - 2022-05-16 01:40 +0200
Re: Editing the DNS with Network Manager Non Root David Wright <deblis@lionunicorn.co.uk> - 2022-05-16 17:50 +0200
Re: Editing the DNS with Network Manager Non Root <tomas@tuxteam.de> - 2022-05-14 07:20 +0200
Re: Editing the DNS with Network Manager Non Root David Christensen <dpchrist@holgerdanske.com> - 2022-05-14 00:10 +0200
Re: Editing the DNS with Network Manager Non Root Richmond <richmond@criptext.com> - 2022-05-13 21:50 +0200
Re: Editing the DNS with Network Manager Non Root Richmond <richmond@criptext.com> - 2022-05-14 12:20 +0200
Re: Editing the DNS with Network Manager Non Root <tomas@tuxteam.de> - 2022-05-14 13:30 +0200
Re: Editing the DNS with Network Manager Non Root Richmond <richmond@criptext.com> - 2022-05-14 15:20 +0200
Re: Editing the DNS with Network Manager Non Root David Christensen <dpchrist@holgerdanske.com> - 2022-05-15 00:20 +0200
Re: Editing the DNS with Network Manager Non Root Richmond <richmond@criptext.com> - 2022-05-15 16:20 +0200
Re: Editing the DNS with Network Manager Non Root David Christensen <dpchrist@holgerdanske.com> - 2022-05-16 02:30 +0200
Re: Editing the DNS with Network Manager Non Root Richmond <richmond@criptext.com> - 2022-05-16 11:40 +0200
Page 2 of 2 — ← Prev page 1 [2]
| From | Richmond <richmond@criptext.com> |
|---|---|
| Date | 2022-05-14 12:20 +0200 |
| Message-ID | <EmX2p-foWo-3@gated-at.bofh.it> |
| In reply to | #248170 |
Richmond <richmond@criptext.com> writes: > David Christensen <dpchrist@holgerdanske.com> writes: > >> On 5/13/22 09:02, Richmond wrote: >>> David Christensen writes: >>>> On 5/12/22 07:17, Richmond wrote: >>>>> David Christensen writes: >>>>>> On 5/11/22 06:55, Richmond wrote: >>>>>>> I have a network manager applet on my xfce4 desktop. I am logged >>>>>>> in as a non root user, and I can select edit connections and >>>>>>> change the IPv4 settings to DHCP address only and then put in a >>>>>>> DNS, then save. If I look at /etc/resolv.conf though nothing has >>>>>>> changed. Restarting networking or rebooting makes no >>>>>>> difference. Perhaps this menu option should only appear for >>>>>>> root, or should cause an error message for non root users? >> >>>> If I choose "Automatic (DHCP) addresses only", the labels for the >>>> second and third settings change. Putting in some test data: >>>> >>>> Additional static addresses -> Add: Address -> 192.168.123.45 >>>> Netmask -> 255.255.255.0 Gateway -> 192.168.5.1 >>>> >>>> DNS servers -> 192.168.123.45,192.168.123.67 >>>> >>>> Search domains -> frunobulax.org >>>> >>>> DHCP client ID -> empty >>>> >>>> Require IPv4 addressing for this connection to complete -> >>>> unchecked >>>> >>>> >>>> I then click "Save". >>>> >>>> >>>> I then enter the root password in the pop-up that opens. >>>> >>>> >>>> I then close the "Network Connections" window and reboot. >>>> >>>> 2022-05-12 16:10:25 dpchrist@laalaa ~ $ ls -l /etc/resolv.conf >>>> -rw-r--r-- 1 root root 104 May 12 16:09 /etc/resolv.conf >>>> >>>> 2022-05-12 16:10:34 dpchrist@laalaa ~ $ cat /etc/resolv.conf # >>>> Generated by NetworkManager search frunobulax.org nameserver >>>> 192.168.123.45 nameserver 192.168.123.67 >>>> >>>> >>>> Is this the results you expect? >> >>> I didn't put in a search domain, netmask, or gateway. >> >> >> Put them in and try again. Without crawling the code, we have no >> idea what actually matters. >> >> >>> I didn't get prompted for root access. Perhaps that is the problem? >> >> >> I would suspect it indicates that Network Manager does not think your >> network settings changed. >> >> >>> stat /etc/resolv.conf shows that the file has been updated but its >>> content doesn't change. >> >> >> My /etc/resolv.conf did not change after running Network Manager; it >> changed after rebooting. (Is the former a bug or a feature?) >> >> >> What happens if you create a new connection and use the Manual >> method? >> >> >> If all else fails -- backup, pull the OS disk, insert a blank disk, >> do a fresh install, and restore. Keep meticulous records. Use a >> version control system. Learn a scripting language and automate >> sysadmin chores. >> >> >> David > > I switched to the mate desktop, and the procedure works, i.e. it > prompts for a root password and updates resolv.conf, after > disconnecting and reconnecting the network. > > I expect there is some component of xfce4 which is supposed to prompt > for the root password. Perhaps it is not installed. I don't know what > it is called. Is there a debian package for this? : https://aur.archlinux.org/packages/xfce-polkit "A simple PolicyKit authentication agent for XFCE"
[toc] | [prev] | [next] | [standalone]
| From | <tomas@tuxteam.de> |
|---|---|
| Date | 2022-05-14 13:30 +0200 |
| Message-ID | <EmY8a-fpxj-7@gated-at.bofh.it> |
| In reply to | #248197 |
[Multipart message — attachments visible in raw view] — view raw
On Sat, May 14, 2022 at 10:50:46AM +0100, Richmond wrote: > Richmond <richmond@criptext.com> writes: > > > David Christensen <dpchrist@holgerdanske.com> writes: [...] > > I expect there is some component of xfce4 which is supposed to prompt > > for the root password. Perhaps it is not installed. I don't know what > > it is called. > > Is there a debian package for this? : > > https://aur.archlinux.org/packages/xfce-polkit > > "A simple PolicyKit authentication agent for XFCE" There seem to be several options [1]. Gksu, some polkit thingy... Blame my search engine if it fails ;-) Cheers [1] https://forum.xfce.org/viewtopic.php?id=11728 -- t
[toc] | [prev] | [next] | [standalone]
| From | Richmond <richmond@criptext.com> |
|---|---|
| Date | 2022-05-14 15:20 +0200 |
| Message-ID | <EmZQB-fqzD-5@gated-at.bofh.it> |
| In reply to | #248199 |
<tomas@tuxteam.de> writes: > On Sat, May 14, 2022 at 10:50:46AM +0100, Richmond wrote: >> Richmond <richmond@criptext.com> writes: >> >> > David Christensen <dpchrist@holgerdanske.com> writes: > > [...] > >> > I expect there is some component of xfce4 which is supposed to prompt >> > for the root password. Perhaps it is not installed. I don't know what >> > it is called. >> >> Is there a debian package for this? : >> >> https://aur.archlinux.org/packages/xfce-polkit >> >> "A simple PolicyKit authentication agent for XFCE" > > There seem to be several options [1]. Gksu, some polkit thingy... > Blame my search engine if it fails ;-) > > > Cheers > > [1] https://forum.xfce.org/viewtopic.php?id=11728 Gksu is a frontend for su which a developer would apply to an app as I understand it. I am dealing with an applet, so I cannot edit its icon and put a wrapper in. Some polkit thingy would be xfce-polkit I think, but I found no debian package.
[toc] | [prev] | [next] | [standalone]
| From | David Christensen <dpchrist@holgerdanske.com> |
|---|---|
| Date | 2022-05-15 00:20 +0200 |
| Message-ID | <En8hb-fvsD-3@gated-at.bofh.it> |
| In reply to | #248204 |
On 5/14/22 05:57, Richmond wrote: > <tomas@tuxteam.de> writes: > >> On Sat, May 14, 2022 at 10:50:46AM +0100, Richmond wrote: >>> Richmond <richmond@criptext.com> writes: >>> >>>> David Christensen <dpchrist@holgerdanske.com> writes: >> >> [...] >> >>>> I expect there is some component of xfce4 which is supposed to prompt >>>> for the root password. Perhaps it is not installed. I don't know what >>>> it is called. >>> >>> Is there a debian package for this? : >>> >>> https://aur.archlinux.org/packages/xfce-polkit >>> >>> "A simple PolicyKit authentication agent for XFCE" >> >> There seem to be several options [1]. Gksu, some polkit thingy... >> Blame my search engine if it fails ;-) >> >> >> Cheers >> >> [1] https://forum.xfce.org/viewtopic.php?id=11728 > > Gksu is a frontend for su which a developer would apply to an app as I > understand it. I am dealing with an applet, so I cannot edit its icon > and put a wrapper in. > > Some polkit thingy would be xfce-polkit I think, but I found no debian > package. I do not see a package specifically for Xfce, but I do see one for MATE: 2022-05-14 15:11:15 root@laalaa ~ # apt-cache search policy kit | sort | grep polkit gir1.2-polkit-1.0 - GObject introspection data for PolicyKit libpolkit-agent-1-0 - PolicyKit Authentication Agent API libpolkit-agent-1-dev - PolicyKit Authentication Agent API - development files libpolkit-gobject-1-0 - PolicyKit Authorization API libpolkit-gobject-1-dev - PolicyKit Authorization API - development files libpolkit-qt5-1-1 - PolicyKit-qt5-1 library libpolkit-qt5-1-dev - PolicyKit-qt5-1 development files lxpolkit - LXDE PolicyKit authentication agent mate-polkit - MATE authentication agent for PolicyKit-1 mate-polkit-bin - MATE authentication agent for PolicyKit-1 (executable wrapper script) mate-polkit-common - MATE authentication agent for PolicyKit-1 (common files) polkit-kde-agent-1 - KDE dialogs for PolicyKit ukui-polkit - UKUI authentication agent for PolicyKit-1 My Debian 11 Xfce has the following, installed by debian-11.3.0-amd64-netinst.iso: 2022-05-14 15:13:47 root@laalaa ~ # dpkg-query -l '*polkit*' Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-===========================-================-============-=================> ii gir1.2-polkit-1.0 0.105-31+deb11u1 amd64 GObject introspec> un gir1.2-polkitagent-1.0 <none> <none> (no description a> ii libpolkit-agent-1-0:amd64 0.105-31+deb11u1 amd64 PolicyKit Authent> ii libpolkit-gobject-1-0:amd64 0.105-31+deb11u1 amd64 PolicyKit Authori> un polkit-1-auth-agent <none> <none> (no description a> David
[toc] | [prev] | [next] | [standalone]
| From | Richmond <richmond@criptext.com> |
|---|---|
| Date | 2022-05-15 16:20 +0200 |
| Message-ID | <Enngd-fEma-1@gated-at.bofh.it> |
| In reply to | #248219 |
David Christensen <dpchrist@holgerdanske.com> writes: > On 5/14/22 05:57, Richmond wrote: >> <tomas@tuxteam.de> writes: >> >>> On Sat, May 14, 2022 at 10:50:46AM +0100, Richmond wrote: >>>> Richmond <richmond@criptext.com> writes: >>>> >>>>> David Christensen <dpchrist@holgerdanske.com> writes: >>> >>> [...] >>> >>>>> I expect there is some component of xfce4 which is supposed to >>>>> prompt for the root password. Perhaps it is not installed. I don't >>>>> know what it is called. >>>> >>>> Is there a debian package for this? : >>>> >>>> https://aur.archlinux.org/packages/xfce-polkit >>>> >>>> "A simple PolicyKit authentication agent for XFCE" >>> >>> There seem to be several options [1]. Gksu, some polkit thingy... >>> Blame my search engine if it fails ;-) >>> >>> >>> Cheers >>> >>> [1] https://forum.xfce.org/viewtopic.php?id=11728 Gksu is a frontend >> for su which a developer would apply to an app as I understand it. I >> am dealing with an applet, so I cannot edit its icon and put a >> wrapper in. Some polkit thingy would be xfce-polkit I think, but I >> found no debian package. > > > I do not see a package specifically for Xfce, but I do see one for > MATE: > > 2022-05-14 15:11:15 root@laalaa ~ # apt-cache search policy kit | sort > | grep polkit gir1.2-polkit-1.0 - GObject introspection data for > PolicyKit libpolkit-agent-1-0 - PolicyKit Authentication Agent API > libpolkit-agent-1-dev - PolicyKit Authentication Agent API - > development files libpolkit-gobject-1-0 - PolicyKit Authorization API > libpolkit-gobject-1-dev - PolicyKit Authorization API - development > files libpolkit-qt5-1-1 - PolicyKit-qt5-1 library libpolkit-qt5-1-dev > - PolicyKit-qt5-1 development files lxpolkit - LXDE PolicyKit > authentication agent mate-polkit - MATE authentication agent for > PolicyKit-1 mate-polkit-bin - MATE authentication agent for > PolicyKit-1 (executable wrapper script) mate-polkit-common - MATE > authentication agent for PolicyKit-1 (common files) polkit-kde-agent-1 > - KDE dialogs for PolicyKit ukui-polkit - UKUI authentication agent > for PolicyKit-1 > > > > My Debian 11 Xfce has the following, installed by > debian-11.3.0-amd64-netinst.iso: > > 2022-05-14 15:13:47 root@laalaa ~ # dpkg-query -l '*polkit*' > Desired=Unknown/Install/Remove/Purge/Hold > | > Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend > |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name > Version Architecture Description > +++-===========================-================-============-=================> > ii gir1.2-polkit-1.0 0.105-31+deb11u1 amd64 GObject > introspec> > un gir1.2-polkitagent-1.0 <none> <none> (no description a> ii > libpolkit-agent-1-0:amd64 0.105-31+deb11u1 amd64 PolicyKit Authent> ii > libpolkit-gobject-1-0:amd64 0.105-31+deb11u1 amd64 PolicyKit Authori> > un polkit-1-auth-agent <none> <none> (no description a> I got it working! that's the good news, the bad news is I am not sure how. I installed all the packages above (except polkit-1-auth-agent which seems to be an unreal package) but it still didn't work. Then I went into synaptic (which incidentally did not prompt for a password) and searched for xfce and found some packages relating to the panel which were not installed, nor part of the xfce meta package. Also I installed policykit-1-gnome which unfortunately doesn't come up on searches for polkit. I think this last one may be the culprit but not sure. Thanks for your help, and the others.
[toc] | [prev] | [next] | [standalone]
| From | David Christensen <dpchrist@holgerdanske.com> |
|---|---|
| Date | 2022-05-16 02:30 +0200 |
| Message-ID | <EnwMx-fJQv-5@gated-at.bofh.it> |
| In reply to | #248229 |
On 5/15/22 06:53, Richmond wrote: > David Christensen <dpchrist@holgerdanske.com> writes: >> On 5/14/22 05:57, Richmond wrote: >>> <tomas@tuxteam.de> writes: >>>> On Sat, May 14, 2022 at 10:50:46AM +0100, Richmond wrote: >>>>> Is there a debian package for this? : >>>>> >>>>> https://aur.archlinux.org/packages/xfce-polkit >>>>> >>>>> "A simple PolicyKit authentication agent for XFCE" >> My Debian 11 Xfce has the following, installed by >> debian-11.3.0-amd64-netinst.iso: >> >> 2022-05-14 15:13:47 root@laalaa ~ # dpkg-query -l '*polkit*' >> Desired=Unknown/Install/Remove/Purge/Hold >> | >> Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend >> |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name >> Version Architecture Description >> +++-===========================-================-============-=================> >> ii gir1.2-polkit-1.0 0.105-31+deb11u1 amd64 GObject >> introspec> >> un gir1.2-polkitagent-1.0 <none> <none> (no description a> ii >> libpolkit-agent-1-0:amd64 0.105-31+deb11u1 amd64 PolicyKit Authent> ii >> libpolkit-gobject-1-0:amd64 0.105-31+deb11u1 amd64 PolicyKit Authori> >> un polkit-1-auth-agent <none> <none> (no description a> > > > I got it working! that's the good news, the bad news is I am not sure > how. I installed all the packages above (except polkit-1-auth-agent > which seems to be an unreal package) but it still didn't work. Then I > went into synaptic (which incidentally did not prompt for a password) > and searched for xfce and found some packages relating to the panel > which were not installed, nor part of the xfce meta package. Also I > installed policykit-1-gnome which unfortunately doesn't come up on > searches for polkit. I think this last one may be the culprit but not > sure. > > Thanks for your help, and the others. I would say "you are welcome", but it sounds like your system is in a crumbling state. I would backup/ check-in, pull the OS drive, insert a fresh OS drive, do a fresh install, and check-out/ restore/ reconfigure. David
[toc] | [prev] | [next] | [standalone]
| From | Richmond <richmond@criptext.com> |
|---|---|
| Date | 2022-05-16 11:40 +0200 |
| Message-ID | <EnFmN-fOYA-7@gated-at.bofh.it> |
| In reply to | #248257 |
David Christensen <dpchrist@holgerdanske.com> writes: > On 5/15/22 06:53, Richmond wrote: >> David Christensen <dpchrist@holgerdanske.com> writes: >>> On 5/14/22 05:57, Richmond wrote: >>>> <tomas@tuxteam.de> writes: >>>>> On Sat, May 14, 2022 at 10:50:46AM +0100, Richmond wrote: > >>>>>> Is there a debian package for this? : >>>>>> >>>>>> https://aur.archlinux.org/packages/xfce-polkit >>>>>> >>>>>> "A simple PolicyKit authentication agent for XFCE" > >>> My Debian 11 Xfce has the following, installed by >>> debian-11.3.0-amd64-netinst.iso: >>> >>> 2022-05-14 15:13:47 root@laalaa ~ # dpkg-query -l '*polkit*' >>> Desired=Unknown/Install/Remove/Purge/Hold >>> | >>> Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend >>> |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name >>> Version Architecture Description >>> +++-===========================-================-============-=================> >>> ii gir1.2-polkit-1.0 0.105-31+deb11u1 amd64 GObject >>> introspec> >>> un gir1.2-polkitagent-1.0 <none> <none> (no description a> ii >>> libpolkit-agent-1-0:amd64 0.105-31+deb11u1 amd64 PolicyKit Authent> ii >>> libpolkit-gobject-1-0:amd64 0.105-31+deb11u1 amd64 PolicyKit Authori> >>> un polkit-1-auth-agent <none> <none> (no description a> >> >> I got it working! that's the good news, the bad news is I am not sure >> how. I installed all the packages above (except polkit-1-auth-agent >> which seems to be an unreal package) but it still didn't work. Then I >> went into synaptic (which incidentally did not prompt for a password) >> and searched for xfce and found some packages relating to the panel >> which were not installed, nor part of the xfce meta package. Also I >> installed policykit-1-gnome which unfortunately doesn't come up on >> searches for polkit. I think this last one may be the culprit but not >> sure. >> Thanks for your help, and the others. > > > I would say "you are welcome", but it sounds like your system is in a > crumbling state. I would backup/ check-in, pull the OS drive, insert > a fresh OS drive, do a fresh install, and check-out/ restore/ > reconfigure. > > > David It isn't in a crumbling state, it just had a missing package. And this was probably due to an undeclared dependence.
[toc] | [prev] | [standalone]
Page 2 of 2 — ← Prev page 1 [2]
Back to top | Article view | linux.debian.user
csiph-web