BBS水木清华站∶精华区
发信人: period (瞌睡虫-2K虫行天下), 信区: Linux
标 题: Re: 问题,XWINDOW下屏保无效,LOCK SCREEN也不行。
发信站: BBS 水木清华站 (Tue Apr 18 17:06:47 2000)
【 在 mutex (重组酵母) 的大作中提到: 】
∶ 【 在 linuxrat (竹剑居士*崇文尚武*禅拳合一) 的大作中提到: 】
∶ 我也有同样问题,只是root用户屏保无效,LOCK SCREEN也不行;
∶ 而新创建的一般用户则屏保可以,LOCK SCREEN也行
去看看man page. 没事用什么root来锁屏?
Locking and root logins
In order for it to be safe for xscreensaver to be
launched by xdm, certain precautions had to be
taken, among them that xscreensaver never runs as
root. In particular, if it is launched as root
(as xdm is likely to do), xscreensaver will dis-
avow its privileges, and switch itself to a safe
user id (such as nobody.)
An implication of this is that if you log in as
root on the console, xscreensaver will refuse to
lock the screen (because it can't tell the differ-
ence between root being logged in on the console,
and a normal user being logged in on the console
but xscreensaver having been launched by the
xdm(1) Xsetup file.)
The solution to this is simple: you shouldn't be
logging in on the console as root in the first
place! (What, are you crazy or something?)
Proper Unix hygiene dictates that you should log
in as yourself, and su(1) to root as necessary.
People who spend their day logged in as root are
just begging for disaster.
--
※ 来源:·BBS 水木清华站 smth.org·[FROM: 166.111.60.178]
BBS水木清华站∶精华区