1
Linux 討論版 / [help]how to disable shutdown button in runlevel 5
« 於: 2006-05-08 09:23 »
請教各位先進:
在redhat 系列中要如何disable X window's login的shutdown button?
謝謝
在redhat 系列中要如何disable X window's login的shutdown button?
謝謝
這裡允許您檢視這個會員的所有文章。請注意, 您只能看見您有權限閱讀的文章。
$banned_filename_re = new_RE(
# block certain double extensions anywhere in the base name
qr'\.[^./]*\.(vbs|pif|scr|cmd|cpl)\.?$'i,
qr'^application/x-msdownload$'i, # block these MIME types
qr'^application/x-msdos-program$'i,
qr'^application/hta$'i,
# [ qr'^\.(Z|gz|bz2)$' => 0 ], # allow any in Unix-compressed
[ qr'^\.(rpm|cpio|tar)$' => 0 ], # allow any in Unix-type archives
# [ qr'^\.(zip|rar|arc|arj|zoo)$'=> 0 ], # allow any within such archives
qr'.\.(vbs|pif|scr|cpl)$'i, # banned extension - basic
);
Our content checker found
banned name: P=p003,L=1,M=multipart/mixed | P=p002,L=1/2,M=application/octet-stream,T=zip,N=ShutDownRunningApp1.zip | P=p004,L=1/2/1,N=ShutDownRunningApp/123.pif,A=U,A=C
....
Depending on the recipient and sender site policies, with a little
effort it might still be possible to send any contents (including
viruses) using one of the following methods:
- encrypted using pgp, gpg or other encryption methods;
- wrapped in a password-protected or scrambled container or archive
(e.g.: zip -e, arj -g, arc g, rar -p, or other methods)
Note that if the contents is not intended to be secret, the
encryption key or password may be included in the same message
for recipient's convenience.
/^Received:.*192\.168\.1\./ IGNORE
/^Received:.*127\.0\.0\.1/ IGNORE
host ms5.url.com.tw[210.59.228.38] said: 554 mail server permanently rejected message (#5.3.0) (in reply to end of DATA command)
X-Apparently-To: xxx@yahoo.com.tw via 202.1.236.44; Thu, 15 Apr 2004 22:49:32 +0800
X-YahooFilteredBulk: 1.2.3.4
Return-Path: <xxx@xxx.idv.tw>
Received: from 1.2.3.4(EHLO yyy.xxx.idv.tw) (1.2.3.4) by mta108.mail.tpe.yahoo.com with SMTP; Thu, 15 Apr 2004 22:49:32 +0800
Received: from localhost (localhost.localdomain [127.0.0.1]) by yyy.xxx.idv.tw (Postfix) with ESMTP id 3974923634 for <xxx@yahoo.com.tw>; Thu, 15 Apr 2004 22:49:20 +0800 (CST)
Received: from yyy.xxx.all4u.idv.tw ([127.0.0.1]) by localhost (yyy.xxx.idv.tw [127.0.0.1])(amavisd-new port 10024) with ESMTP id 11298-02 for <xxx@yahoo.com.tw>; Thu, 15 Apr 2004 22:49:19 +0800 (CST)
Received: from xxx (unknown [192.168.1.x]) by yyy.xxx.idv.tw (Postfix) with SMTP id B83CE235C1 for <xxx@yahoo.com.tw>; Thu, 15 Apr 2004 22:49:19 +0800 (CST)
Message-ID: <008001c422f8$c7c75620$0701a8c0@xxx>
cd /usr/src/linux-2.4.25
vi Makefile
make mrproper
make oldconfig -->這時會有多一些選項(new)
make menuconfig ->選擇需要的
patch kernel
make oldconfig -->這時沒有多新的選項,但可以確定有patch進去
自己手動加.config
make dep
make bzImage;make modules
make modules_install
make install
# Log all the mail messages in one place.
mail.=debug;mail.=info;mail.=notice /var/log/mail/info
mail.=warn /var/log/mail/warnings
mail.err /var/log/mail/errors
t/basic.................ok 7/79sh: -c: line 2: unexpected EOF while looking for matching `''
sh: -c: line 4: syntax error: unexpected end of file
t/basic.................NOK 8# Failed test (t/basic.t at line 80)
t/basic.................NOK 9# Failed test (t/basic.t at line 81)
sh: -c: line 2: unexpected EOF while looking for matching `''
sh: -c: line 4: syntax error: unexpected end of file
t/basic.................NOK 10# Failed test (t/basic.t at line 88)
# got: '512'
# expected: '0'
#