问题:我装的是centos 5,但装上后出现了一个问题------以普通用户登录后,打开终端后不能使用fdisk -l lspci命令。su过后也不行。只有用root用户登录后才行。请大虾们帮帮忙,给一个解决的办法。谢过先!!!!!!
[lm1980@localhost ~]$ fdisk -l
bash: fdisk: command not found
[lm1980@localhost ~]$ lspci
bash: lspci: command not found
[lm1980@localhost ~]$ su
口令:
[root@localhost lm1980]# fdisk -l
bash: fdisk: command not found
[root@localhost lm1980]# lspci
bash: lspci: command not found
[root@localhost lm1980]# which fdisk
/usr/bin/which: no fdisk in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/lm1980/bin)
[root@localhost lm1980]#
以上就是我出现的情况
回答:
which fdisk
/usr/bin/which: no fdisk in
这两个提示,已证明了,LZ安装是选取包的时候,没有选上基本管理包。默认是自动选上的,可能是LZ取消了,这些都是常用的管理工具,
yum -y install e2fsprogs e2fsprogs-devel e2fsprogs-libs #安装
上海IT外包服务网
