linux - Ubuntu reports xxx:command not found every time su is executed, but the user switch is successful
PHP中文网
PHP中文网 2017-07-06 10:36:22
0
1
1453
# 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中文网

认证0级讲师

reply all(1)
学霸

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template