Le mar. 24 oct. 2023 à 03:24, Andy Lemin <andrew.le...@gmail.com> a écrit :

> How do I set/override the default rdomain for system level CLI commands?
>

You can do that at ssh level. From sshd_config(5):

     RDomain
             Specifies an explicit routing domain that is applied after
             authentication has completed.  The user session, as well as any
             forwarded or listening IP sockets, will be bound to this
             rdomain(4).  If the routing domain is set to %D, then the
domain
             in which the incoming connection was received will be applied.

I like having this prompt to know where I am:
(rtable 2) [me@mymachine]:~$ echo $PS1
(rtable $(id -R)) [\u@\h]:\w\$

Reply via email to