gro*_*gor 14 unix debian path environment-variables
如何在Debian中更改$ PATH变量?我试图改变,/etc/profile但这只影响了普通用户(是的,我添加了两个用户和root路径的路径).
之后,我尝试编辑/root/.profile,然后/root/.bashrc...
都没有奏效.你知道哪里可能有问题吗?
tur*_*web 17
这是在debian 6.0上的/etc/login.defs中设置的.
这些是您必须编辑的行:
# *REQUIRED* The default PATH settings, for superuser and normal users.
#
# (they are minimal, add the rest in the shell startup files)
ENV_SUPATH PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV_PATH PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
Run Code Online (Sandbox Code Playgroud)
编辑:
我忘了把我找到解决方案放在哪里:https://serverfault.com/questions/166383/how-set-path-for-all-users-in-debian
| 归档时间: |
|
| 查看次数: |
40441 次 |
| 最近记录: |