English 中文(简体)
PHP为起诉人制造了震 TTTY
原标题:PHP create fake TTY for sudo

a. 保持报告摘要;

PHP 书写需要操作/etc/init.d/nagios reload,增加apache ALL = (nagios) NOPASSWD: /etc/init.d/nagios,以起诉人档案,但使用SUDO PHP将需要一个TTY(我不想删除)。 Defaults needtty,因此,我想为PHP的文字打碎或制造一个TTY,以便能够重载Nagios。

RedHat 6, PHP 5.3

问题回答

可以做到这一点,即<代码> 查询/code>方案相对容易失败,因此本身实际上不会增加许多安全。 如果你真的相信你想要离开,(也许你们需要支持管理你关于用户系统的文字,这些用户系统有<代码>要求相应的<<>/代码>,否则的话?) 那么,找到解决办法实际上可能是正确的。

然而,这很可能是直接价格指数的巨大痛苦。 我在网址www.net上搜索了该参考书,我看不出有任何迹象表明,它具有任何固定的通用功能,用于分配或使用ty。 如果你真的希望用纯粹的购买力平价来做,那么你很可能需要提及 for( call)呼吁的平衡源代码(包括它所拥有的其他附属物,如开普(),)、收(),)、赠( grant)等)。 核心内容是公开()在DC/ptmx处安装假装主装置,以获得普通PT文件记录员,做own和TIOCSPTLCK ioctl,然后确定哪些装置是相应的奴隶,然后打开。

但是,我高度建议,在PHP之外做部分tty,可能的话是开立一些黄色打字,以打入“Z”中(在pty模块)或甚至比什+一些东西,如





相关问题
Signed executables under Linux

For security reasons, it is desirable to check the integrity of code before execution, avoiding tampered software by an attacker. So, my question is How to sign executable code and run only trusted ...

encoding of file shell script

How can I check the file encoding in a shell script? I need to know if a file is encoded in utf-8 or iso-8859-1. Thanks

How to write a Remote DataModule to run on a linux server?

i would like to know if there are any solution to do this. Does anyone? The big picture: I want to access data over the web, using my delphi thin clients. But i´would like to keep my server/service ...

How can I use exit codes to run shell scripts sequentially?

Since cruise control is full of bugs that have wasted my entire week, I have decided the existing shell scripts I have are simpler and thus better. Here is what I have so far svn update /var/www/...

Good, free, easy-to-use C graphics libraries? [closed]

I was wondering if there were any good free graphics libraries for C that are easy to use? It s for plotting 2d and 3d graphs and then saving to a file. It s on a Linux system and there s no gnuplot ...

热门标签