80chvt-suid

来自「GPE内核镜像文件 已在qemu上跑过的」· 代码 · 共 26 行

TXT
26
字号
#! /bin/sh## Copyright Matthias Hentges <devel@hentges.net> (c) 2006# License: GPL (see http://www.gnu.org/licenses/gpl.txt for a copy of the license)## Filename: chvt-SUID.sh# Date: 28-May-06## Sets the SUID bit on chvt to allow changing to the VT from inside X by# any user. Since a SUID binary still is a security risk, we chmod only# when keylaunch is used and not by default.#for target in /usr/bin/chvt.console-toolsdo	if test "`ls -l "$target" | awk '{print $1}'|cut -c 2-4`" != "rws" 	then		echo "Making [$target] SUID root..."		chmod u+s "$target"	else		echo "Ignoring [$target]"	fidone

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?