vi /etc/sudoers
# new
cc ALL=/bin/yum  # cc用户名就可使用sudo yum

在cc用户下 sudo yum install vim 输入密码后再就可安装vim了