Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invoking su in emacs' eshell

Tags:

emacs

eshell

I can run normal linux commands in eshell as a non-root user. When I try to su to root, all the usual linux commands are gone (ls, cat, etc.) How do I fix this?

like image 607
avendael Avatar asked Nov 06 '22 04:11

avendael


1 Answers

One way is to use tramp:

cd /su::/etc/
ls

then eshell will run command "remotly" using su.

After testing, it seem that ls do work, but there is a problem with some (but not all) external command.

like image 92
Rémi Avatar answered Nov 09 '22 13:11

Rémi