# 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后执行关机命令
- Wacom推出手写板Bamboo 支持Vista系统
- Windows11未激活怎么换回原来的壁纸 win11系统未激活
- Vista系统超酷遥控器 全面支持SlideShow
- 怎么看华为手机是不是鸿蒙系统
- 体验Windows Vista系统的程序兼容模式
- Vista系统信息设置随心所欲
- 微软: Vista中UAC值得所有操作系统效仿
- 苹果x怎么降级系统
- 研招网调剂系统什么时候关闭
- 微信系统处于通话状态怎么关闭
