5
votes

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?

1
are those commands also 'gone' when you log as root in a normal shell ? - Francois G
No they aren't. M-x shell works fine even if I log as root. - avendael

1 Answers

2
votes

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.