s*********b 发帖数: 815 | 1 【 以下文字转载自 Programming 讨论区,原文如下 】
发信人: soldiercrab (快乐的寄居蟹), 信区: Programming
标 题: 怎么知道别人finger过我呀?
发信站: The unknown SPACE (Sat Jul 8 21:50:32 2000) WWW-POST
据我所知可以把.plan变成一个named pipe,每当有人finger我的时
侯,.plan
的内容就被转向到我的程序,于是我就知道了(可以用select来管理
么?)。
但有更好的办法么?我记得谁好像说过他写过一个deamon,一旦有人
finger
他,他的deamon就把通常的finger信息替换成他设定的话。谁能介绍
一下这
是怎么写的呀?偶十分佩服的说。另,这个deamon需要super user或
root的权
限么?for(;;){thanks()} |
w*****g 发帖数: 198 | 2 of course you need root, you need to install
special finger daemon, you should be able to
find lots of those "configurable finger daemon"
packages on the net
【在 s*********b 的大作中提到】 : 【 以下文字转载自 Programming 讨论区,原文如下 】 : 发信人: soldiercrab (快乐的寄居蟹), 信区: Programming : 标 题: 怎么知道别人finger过我呀? : 发信站: The unknown SPACE (Sat Jul 8 21:50:32 2000) WWW-POST : 据我所知可以把.plan变成一个named pipe,每当有人finger我的时 : 侯,.plan : 的内容就被转向到我的程序,于是我就知道了(可以用select来管理 : 么?)。 : 但有更好的办法么?我记得谁好像说过他写过一个deamon,一旦有人 : finger
|
a*****i 发帖数: 4391 | 3 you dont have to install any extra program in order to record the times
other people have fingered you.
【在 w*****g 的大作中提到】 : of course you need root, you need to install : special finger daemon, you should be able to : find lots of those "configurable finger daemon" : packages on the net
|
r*e 发帖数: 112 | 4
then how to make it?
thanks //bow
【在 a*****i 的大作中提到】 : you dont have to install any extra program in order to record the times : other people have fingered you.
|
a*****i 发帖数: 4391 | 5 I forgot hehe :)
Basically, when people finger you, they need to access your .plan (or .project)
file, and you can set up a wrapper that count the time and even record the username
who fingered you.
【在 r*e 的大作中提到】 : : then how to make it? : thanks //bow
|
x*x 发帖数: 365 | 6 but .plan and .project are only text files, not executables. i can't figure
out how you wrap them. unless fingerd provides such kind of mechanism.
【在 a*****i 的大作中提到】 : I forgot hehe :) : Basically, when people finger you, they need to access your .plan (or .project) : file, and you can set up a wrapper that count the time and even record the username : who fingered you.
|
w*****g 发帖数: 198 | 7 that is why I said you need a configurable finger daemon,
there are lots on the net
【在 x*x 的大作中提到】 : but .plan and .project are only text files, not executables. i can't figure : out how you wrap them. unless fingerd provides such kind of mechanism.
|
a*****i 发帖数: 4391 | 8 No, You dont.
I had done that before on school's machine with a regular
fingerd. Just forgot how. x_x
【在 w*****g 的大作中提到】 : that is why I said you need a configurable finger daemon, : there are lots on the net
|
m*****e 发帖数: 4193 | 9 I guess it could be done by creating .plan as a named pipe and running some
listening process in background. But, trust me, this is a big security hole.
Don't do it.
【在 a*****i 的大作中提到】 : No, You dont. : I had done that before on school's machine with a regular : fingerd. Just forgot how. x_x
|
a*****i 发帖数: 4391 | 10 Well, even anyone wants to see my love letter..hehe :)
【在 m*****e 的大作中提到】 : I guess it could be done by creating .plan as a named pipe and running some : listening process in background. But, trust me, this is a big security hole. : Don't do it.
|
w*****g 发帖数: 198 | 11 maybe your school admin installed a finger daemon
the default one just read (not execute anytthing) the .plan file
【在 a*****i 的大作中提到】 : No, You dont. : I had done that before on school's machine with a regular : fingerd. Just forgot how. x_x
|