Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1289877
  • 博文数量: 840
  • 博客积分: 10001
  • 博客等级: 上将
  • 技术积分: 5005
  • 用 户 组: 普通用户
  • 注册时间: 2008-08-29 14:31
文章分类

全部博文(840)

文章存档

2011年(1)

2008年(839)

我的朋友

分类: LINUX

2008-08-29 14:35:26

 
显示的机器是通过Pam认证来进行,在/etc/pam.d/下面也有关于halt,reboot,poweroff命令的一些规则,当然还有一点就是这些命令本身设置的权限问题,例如:

[root@F7sbin]#pwd
/sbin
[root@F7sbin]#ls-lhaltpoweroffreboot
-rwxr-xr-x1rootroot123602007-05-04halt
lrwxrwxrwx1rootroot42007-05-29poweroff->halt
lrwxrwxrwx1rootroot42007-05-29reboot->halt

[root@F7sbin]#
[root@F7security]#pwd
/etc/security
[root@F7security]#ls
access.confconsole.permsnamespace.confpam_winbind.conf
chroot.confconsole.perms.dnamespace.inittime.conf
console.appsgroup.confopasswd
console.handlerslimits.confpam_env.conf
[root@F7security]#cdconsole.apps
[root@F7console.apps]#pwd
/etc/security/console.apps(该文件夹下面的文件来进行控制,如果让普通用户不能重启的或者关机的话,你可以把halt,rebootpoweroff文件删除就可以了)
[root@F7console.apps]#ls
authconfigpm-suspendsystem-config-network-cmd
authconfig-gtkpm-suspend-hybridsystem-config-nfs
authconfig-tuipoweroffsystem-config-printer
cpufreq-selectorpupsystem-config-samba
dateconfigrebootsystem-config-securitylevel
ejectserviceconfsystem-config-selinux
gdmsetupsetupsystem-config-services
gnome-system-logsystem-cdinstall-helpersystem-config-soundcard
haltsystem-config-authenticationsystem-config-time
kbdratesystem-config-datesystem-config-users
kpppsystem-config-displaysystem-install-packages
neatsystem-config-httpdvirt-manager
pirutsystem-config-keyboardvm_applet_wrapper
pm-hibernatesystem-config-language
pm-powersavesystem-config-network
[root@F7console.apps]#

在Linux中普通用户图形界面登录以后为什么可以关机或者重启机器在Linux中普通用户图形界面登录以后为什么可以关机或者重启机器在Linux中普通用户图形界面登录以后为什么可以关机或者重启机器在Linux中普通用户图形界面登录以后为什么可以关机或者重启机器在Linux中普通用户图形界面登录以后为什么可以关机或者重启机器在Linux中普通用户图形界面登录以后为什么可以关机或者重启机器在Linux中普通用户图形界面登录以后为什么可以关机或者重启机器在Linux中普通用户图形界面登录以后为什么可以关机或者重启机器在Linux中普通用户图形界面登录以后为什么可以关机或者重启机器在Linux中普通用户图形界面登录以后为什么可以关机或者重启机器
阅读(937) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~