Re: switch users and still use display

2024-08-02 Thread Max Nikulin
On 02/08/2024 20:30, Jeffrey Walton wrote: On Fri, Aug 2, 2024 at 7:21 AM Greg Wooledge wrote: On Fri, Aug 02, 2024 at 11:35:58 +0200, Florent Rougon wrote: Which I am inclined to believe, although I'm reluctant to try 'su -p' for fear of creating a mess in my normal user setup: ~ % su -p

Re: switch users and still use display

2024-08-02 Thread Florent Rougon
Hi, Le 02/08/2024, Jeffrey Walton a écrit: > emacs is notorious for that. In fact, if you install a new system, and > `sudo emacs `, then emacs will create its own config > directory (.emacs/) in your home directory owned by root. I quickly FTR, the Emacs user configuration directory is ~/.emac

Re: switch users and still use display

2024-08-02 Thread Jeffrey Walton
On Fri, Aug 2, 2024 at 7:21 AM Greg Wooledge wrote: > > On Fri, Aug 02, 2024 at 11:35:58 +0200, Florent Rougon wrote: > > Which I am inclined to believe, although I'm reluctant to try 'su -p' > > for fear of creating a mess in my normal user setup: > > > > ~ % su -p > > Password: > > zsh com

Re: switch users and still use display

2024-08-02 Thread Florent Rougon
Hi, Le 02/08/2024, Greg Wooledge a écrit: > I don't use zsh, so I don't quite understand what "compinit" means. It is a Zsh function that initializes completion for the current session. From zshall(1): Use of compinit (...) To initialize the system, the function compinit (...) should b

Re: switch users and still use display

2024-08-02 Thread Greg Wooledge
On Fri, Aug 02, 2024 at 11:35:58 +0200, Florent Rougon wrote: > Which I am inclined to believe, although I'm reluctant to try 'su -p' > for fear of creating a mess in my normal user setup: > > ~ % su -p > Password: > zsh compinit: insecure directories and files, run compaudit for list. > I

Re: switch users and still use display

2024-08-02 Thread Richmond
fxkl4...@protonmail.com wrote: > i log in to x session as user1 on host1 > from within a xterm i want to change to user2 on host1 and run x programs > the current way i do this is ssh user2@host1 > does using ssh on the same host use encryption > is there another way to do this > i feel like this h

Re: switch users and still use display

2024-08-02 Thread Florent Rougon
Hi, Le 27/07/2024, David Wright a écrit: > > I never found an official documentation about "su -p", just found it > > myself, > > but I read, "su -" shall do the same. It does not. > When you write something like this, can you accompany it with a > reference? The essential package util-linux'

Re: switch users and still use display

2024-07-27 Thread Max Nikulin
On 27/07/2024 23:06, Greg Wooledge wrote: Yes, but the other ways are *far* more complicated, especially when neither user1 nor user2 is root. The issue is that in order to authenticate yourself to the X server, you present a token, known as a "magic cookie". in some cases xhost +si:local

Re: switch users and still use display

2024-07-27 Thread David Wright
On Sat 27 Jul 2024 at 23:21:06 (+0200), Hans wrote: > I never found an official documentation about "su -p", just found it myself, > but I read, "su -" shall do the same. It does not. When you write something like this, can you accompany it with a reference? The essential package util-linux's man

Re: switch users and still use display

2024-07-27 Thread Hans
Some window managers are offering an option, to change the user (plasma = KDE does it, for example.). It is also possible, to start a new X-session and login with another user. Doing so, you have 2 X-session open. The option is also, to change the user, or, add another user with a new session.

Re: switch users and still use display

2024-07-27 Thread eben
On 7/27/24 12:43, fxkl4...@protonmail.com wrote: > does ssh destinguish between "ssh host1" and "ssh localhost" Probably the interface it uses. host1 -> eth0 and localhost -> lo. Unless you've done something funny with hostnames or routing. Anyhow that's my guess, and if not, someone will b

Re: switch users and still use display

2024-07-27 Thread Greg Wooledge
On Sat, Jul 27, 2024 at 16:43:50 +, fxkl4...@protonmail.com wrote: > simple is better > thanks > > does ssh destinguish between "ssh host1" and "ssh localhost" Depends on how everything is configured. It can. If you prefer 'ssh -X user2@host1' and if that works for you, then you can use tha

Re: switch users and still use display

2024-07-27 Thread fxkl47BF
simple is better thanks does ssh destinguish between "ssh host1" and "ssh localhost" On Sat, 27 Jul 2024, Greg Wooledge wrote: > On Sat, Jul 27, 2024 at 15:44:51 +, fxkl4...@protonmail.com wrote: >> i log in to x session as user1 on host1 >> from within a xterm i want to change to user2 on h

Re: switch users and still use display

2024-07-27 Thread Richmond
fxkl4...@protonmail.com writes: > i log in to x session as user1 on host1 > from within a xterm i want to change to user2 on host1 and run x programs > the current way i do this is ssh user2@host1 > does using ssh on the same host use encryption > is there another way to do this > i feel like this

Re: switch users and still use display

2024-07-27 Thread Greg Wooledge
On Sat, Jul 27, 2024 at 15:44:51 +, fxkl4...@protonmail.com wrote: > i log in to x session as user1 on host1 > from within a xterm i want to change to user2 on host1 and run x programs > the current way i do this is ssh user2@host1 I'm assuming you mean "ssh -X", or that you've configured the

switch users and still use display

2024-07-27 Thread fxkl47BF
i log in to x session as user1 on host1 from within a xterm i want to change to user2 on host1 and run x programs the current way i do this is ssh user2@host1 does using ssh on the same host use encryption is there another way to do this i feel like this has been hashed over here previously i just