What is the most convenient way to get kitten on the root user via SSH? #7668
Replies: 3 comments 4 replies
-
I currently do
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Switch to a root shell with
sudo kitten run-shell
|
Beta Was this translation helpful? Give feedback.
3 replies
-
sudo $(which kitten) run-shell --env=$PATH:$(dirname `which kitten`)
This will bypass sudo's secure_path though, which personally I find
pretty silly, but YMMV.
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ecerulm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently I can ssh to a machine with
and I have
kitten
automatically in the remote shell, but I usually switch to the root user withsudo su -
and then both kitten and the terminfo are not available to theroot
user.The
TERM
/TERMINFO
can be preserved as explained in I get errors about the terminal being unknown or opening the terminal failing or functional keys like arrow keys don’t work?.so by adding using
sudo visudo
and addingand using
sudo su
instead ofsudo su -
you can have an usable terminal for the root user. But thekitten
command is not accessible for the root user (bash: kitten: command not found
).What would be the most effective way to replicate what the
kitten ssh
did for themyuser
but forroot
instead (I can't ssh as root directly).Beta Was this translation helpful? Give feedback.
All reactions