Home  >  Q&A  >  body text

linux - Ubuntu reports xxx:command not found every time su is executed, but the user switch is successful

# su someuser
2: command not found

There is one method that says to add usr/bin to profile but it has no effect
Another method also says that there is a problem with profile , but my profile is basically unchanged
and there is no problem like he mentioned about adding spaces after the square brackets

PHP中文网PHP中文网2661 days ago1398

reply all(1)I'll reply

  • 欧阳克

    欧阳克2017-07-06 10:38:22

    Different users have different environment variables. What command you want to use? Just find the directory of this command, then append it to the environment variable, and then source it

    reply
    0
  • Cancelreply