[root@sand sbin]# useradd testreboot                     //创建用户
[root@sand sbin]# passwd testreboot
Changing password for user testreboot.
New UNIX password:
BAD PASSWORD: it is too simplistic/systematic
Retype new UNIX password:
passwd: all authentication tokens updated successfully.

[root@sand sbin]# groupadd reboot                     //创建组
[root@sand sbin]# cp /sbin/reboot /home/testreboot    //cp reboot命令到新用户下
[root@sand sbin]# chmod 4755 /home/testreboot/*       //修改新用户下文件权限
[root@sand sbin]# vi /home/testreboot/.bash_profile //编辑.bash_profile变量文件
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH: $HOME/bin
export PATH
unset USERNAME
/home/testreboot/reboot