On Fri, 11 Feb 2022 07:36:10 -0500
Greg Wooledge wrote:
> That makes me curious about what has been done to your system, which
> is clearly behaving differently from mine. "su" with no arguments
> preserves the environment, but "su -" establishes a new environment
> and launches a login shell.
Greg Wooledge wrote:
> On Thu, Feb 10, 2022 at 06:37:04PM -0800, pe...@easthope.ca wrote:
> > root@joule:~# su peter
> > peter@joule:~$ firefox-esr --display=:0
> > Invalid MIT-MAGIC-COOKIE-1 keyUnable to init server: Could not connect:
> > Connection refused
> > Error: cannot open display: :0
> >
On Fri, Feb 11, 2022 at 07:36:10AM -0500, Greg Wooledge wrote:
> On Thu, Feb 10, 2022 at 09:48:40PM -0700, Charles Curley wrote:
[...]
> > So I expect that something has already done the export for me, and it
> > is unnecessary.
>
> unicorn:~$ echo "$XAUTHORITY"
> /home/greg/.Xauthority
> unicor
On Thu, Feb 10, 2022 at 09:48:40PM -0700, Charles Curley wrote:
> Interesting. I routinely log in as my non-root user, charles, and then
> 'su -', which gets me a root shell. I can then run X programs just
> fine. So your comment above got me curious.
>
> charles@jhegaala:~/Desktop$ su -
> Passwor
On Thu, 10 Feb 2022 22:27:22 -0500
Greg Wooledge wrote:
> In the more usual scenario, you have started X as peter, and then used
> su to become root. It is precisely at this point where the X auth
> token has become lost, as it's in the home directory of peter, not
> the home directory of root.
On Thu, Feb 10, 2022 at 06:37:04PM -0800, pe...@easthope.ca wrote:
> root@joule:~# su peter
> peter@joule:~$ firefox-esr --display=:0
> Invalid MIT-MAGIC-COOKIE-1 keyUnable to init server: Could not connect:
> Connection refused
> Error: cannot open display: :0
>
> peter, logged in directly, can
From: David Wright
Date: Wed, 2 Feb 2022 11:08:28 -0600
Message-Id:
> You may hit snags. Some programs might refuse to run, or do
> strange things because they're written to distinguish between
> root and an ordinary user.
After 5+ days, hit one snag.
root@joule:~# su peter
peter@jou
7 matches
Mail list logo