5

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?

avendael
  • 2,459
  • 5
  • 26
  • 30

1 Answers1

2

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.

Rémi
  • 8,172
  • 2
  • 27
  • 32
  • ls does work fine, but I still can't run "yum", fedora's package manager. I get "/usr/bin/python: can't open file '/su:root@localhost:/usr/bin/yum': [Errno 2] No such file or directory" instead. Running the package manager is the primary reason I want to login as root. – avendael Jan 16 '11 at 15:07