0

有没有人看过侏罗纪公园,丹尼斯·内德利在系统崩溃后用动画说“你没有说出魔法词”来保护系统。

是否可以做类似 ikn Python 的事情?

形容它不那么幽默:

等待用户满足条件的响应屏幕。并在一定时间后加密并锁定系统。

通过使用 Python 在 linux 系统上是否有可能?

4

2 回答 2

7

对的,这是可能的。

于 2010-06-17T12:07:45.557 回答
1

In which I attempt to answer the implied question, "And if so, how?"

I think this is really a Linux administration question. You'd have to figure out how to suspend a user's account on the system you're using and then log the current user out. It's likely going to involve the Python script running as a user with privileges greater than the user you're locking out. You don't really want to encrypt, do you? Just prevent access. Once you know how to accomplish all those things (suspend account / deny login, log out user, run script as privileged user, etc.,) it's easy to perform those tasks from a Python script.

于 2010-06-17T15:31:45.630 回答