Re: addendum, Re: One-user system.

2022-02-11 Thread Charles Curley
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.

Re: addendum, Re: One-user system.

2022-02-11 Thread Klaus Singvogel
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 >

Re: addendum, Re: One-user system.

2022-02-11 Thread tomas
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 >

Re: addendum, Re: One-user system.

2022-02-11 Thread Greg Wooledge
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 - >

Re: addendum, Re: One-user system.

2022-02-10 Thread Charles Curley
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.

Re: addendum, Re: One-user system.

2022-02-10 Thread Greg Wooledge
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

addendum, Re: One-user system.

2022-02-10 Thread peter
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