~/.bashrc 调用 /etc/bashrc 导致在deb10上root的PATH变得和普通用户一样,要改用 /etc/profile 才对。

This commit is contained in:
Luk Lu
2019-12-14 14:14:27 +08:00
parent 92666a6625
commit b7030522aa
2 changed files with 3 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ if [ v$1 != v ]
then
NewUser=$1
else
read -p "Enter path-to-faronear " NewUser
read -p "Enter new user name: " NewUser
fi
echo "<<< Add a new user"