【发布时间】:2015-01-29 15:52:16
【问题描述】:
我在 RHEL7 中创建了一个新用户
useradd newuser
当我打开这个用户的 ~/.bash_profile 时,输出是
$cat -n ~/.bash_profile
1 # .bash_profile
2
3 # Get the aliases and functions
4 if [ -f ~/.bashrc ]; then
5 . ~/.bashrc
6 fi
7
8 # User specific environment and startup programs
9
10 PATH=$PATH:$HOME/.local/bin:$HOME/bin
11
12 export PATH
$
这个bash_profile 是从哪里继承给新添加的用户的?
如果我需要为使用useradd 创建的每个新用户删除$PATH 的附加。我该怎么做?
【问题讨论】:
标签: bash path .bash-profile user-administration