# roleadd -u 5000 -g 10 -m -d /export/home/shutdown shutdown1
# passwd shutdown1
# vi /etc/security/prof_attr
shut:::able to shutdown the system:
# rolemod -p shut,all shutdown1
# more /etc/user_attr
# useradd -u 4009 -g 10 -m -d /export/home/username -s /bin/ksh -r shutdown1 username
# passwd username
# grep username /etc/user_attr
# vi /etc/security/exec_attr
shut:suser:cmd:::/usr/sbin/shutdown:uid=0
用username登录后执行su shutdown1后执行关机命令
Java Asp PHP .Net XML C/C++ CGI VB Jsp J2ee J2se J2me EJB Servlet Tomcat Resin Struts Weblogic Eclipse ANT GUI JMS Web servise IDEA Webphere Hibernate Spring Jboss Applet Swing Socket Javamail Perl Ajax P2P 安全 模式 框架 测试 开源 游戏
Windows XP Windows 2000 Windows 2003 Windows Me Windows 9.x Linux UNIX 注册表 操作系统 服务器 应用服务器