CentOS 5.5 useradd 出現command not found - Linux

Table of Contents




shell > who a i

如果不是 root 就用su 切換成root

# rpm -qa | grep shadow-utils

# yum install shadow-utils

# which useradd







※ 引述《prolog (波卡)》之銘言:
: 大家好 我安裝centos5.5
: 然後使用sudo useradd user這個指令時
: 出現command not found訊息
: 突然覺得很意外 結果我到/usr/sbin/裡面
: 用sudo ./useradd 就可以執行了
: 怎麼會出現這種路徑上的問題
: 我的centos5.5是新安裝乾淨的i386版本
: 請問這是個bug嗎?

--

All Comments

Liam avatarLiam2010-12-30
您好 感謝回答 但我剛yum過 shadow-utils套件已安裝
Candice avatarCandice2011-01-03
目前我作法是在/etc/profile.d/path.sh 裡面放/usr/sbin