Bug 17584 - Screen locking in apmscript does not work properly for root.
Screen locking in apmscript does not work properly for root.
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: apmd (Show other bugs)
7.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Bernhard Rosenkraenzer
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-09-18 03:14 EDT by martikka
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-09-18 03:14:48 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description martikka 2000-09-18 03:14:44 EDT
Screen locking in apmscript does not work properly for root.
There are couple of bugs in apmscripts (incorrent version was submitted to
bero).
Here's the fix:

66,67c66,67
<                               if [ "X$Usern" = "Xroot" ]; then
<                                       su $Usern -c "xlock -display
$XDisp" &>/dev/null &
---
>                               if [ "x$Usern" = "Xroot" ]; then
>                                       xlock -display $XDisp &>/dev/null &


Anyway the screen-locking is a crude hack... :)
Comment 1 Bernhard Rosenkraenzer 2000-09-23 11:33:47 EDT
This is fixed in 3.0final-20 (and probably -19 and -18).
Comment 2 martikka 2000-10-05 12:15:54 EDT
The X=x test was fixed, but it seems that "su $Usern -c " fix was omitted.
Xlock doesn't work without su (at least for me).

Note You need to log in before you can comment on or make changes to this bug.