Thread: how to lock my screen in RHEL5 in root mode

  1. #1
    kotin
    Join Date
    Oct 2009
    Posts
    132

    how to lock my screen in RHEL5 in root mode

    I am able to lock the screen on my RHEL 5 as a regular user
    but as root it will not lock the screen when I clcik the lock
    icon. What is the command line to do this?


    i look for your further replys

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Not sure, but should you be logged onto a desktop environment as root? Better to use a normal user and sudo anything you need higher privs for

  3. #3
    Registered User
    Join Date
    Oct 2009
    Location
    While(1)
    Posts
    377
    If you are using GNOME on RHEL just try to do it with CTRL+ALT+l

  4. #4
    Registered User
    Join Date
    Oct 2009
    Location
    While(1)
    Posts
    377
    For sudo just add your user to /etc/sudoers

  5. #5
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Logging into X as root is moronic.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  6. #6
    {Jaxom,Imriel,Liam}'s Dad Kennedy's Avatar
    Join Date
    Aug 2006
    Location
    Alabama
    Posts
    1,065
    Nah, I'm root. . . I'm running X. . . done it for _YEARS_ . Never had a problem. One just needs to remember that one can toast one's self if one does something moronic. Logging into x as root != moronic -- doing stupid things as root == moronic. One needs not be in X to do stupid things as root.

  7. #7
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Quote Originally Posted by Kennedy View Post
    Nah, I'm root. . . I'm running X. . . done it for _YEARS_ . Never had a problem. One just needs to remember that one can toast one's self if one does something moronic. Logging into x as root != moronic -- doing stupid things as root == moronic. One needs not be in X to do stupid things as root.


    Its not just what you do. If you inadvertently run malicious code as root, then that code has root privs too. Do the sensible thing - setup sudo and get a proper account

  8. #8
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    Quote Originally Posted by Kennedy View Post
    Nah, I'm root. . . I'm running X. . . done it for _YEARS_ . Never had a problem. One just needs to remember that one can toast one's self if one does something moronic. Logging into x as root != moronic -- doing stupid things as root == moronic. One needs not be in X to do stupid things as root.
    And what about software defects? I'm sure that will NEVER happen :\. What you're doing is moronic.

  9. #9
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,229
    And people have been drunk driving and still alive, for now.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Bisection Method function value at root incorrect
    By mr_glass in forum C Programming
    Replies: 3
    Last Post: 11-10-2005, 09:10 AM
  2. Running in full screen mode!
    By Skute in forum Game Programming
    Replies: 0
    Last Post: 12-10-2001, 03:56 AM
  3. How do I refresh the screen in Mode X(unchained)?
    By frenchfry164 in forum A Brief History of Cprogramming.com
    Replies: 10
    Last Post: 10-27-2001, 01:13 PM
  4. How do I refresh the screen in Mode X(unchained)?
    By frenchfry164 in forum C++ Programming
    Replies: 1
    Last Post: 10-22-2001, 01:58 AM
  5. need help in making graphics in C++
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 10
    Last Post: 10-21-2001, 12:14 PM