Re: How to lock screen

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



sudo is your friend . . .
http://www.courtesan.com/sudo/intro.html

Instead of staying logged in as root give your user account full sudo
privileges.  Then when you want to run a command that needs root access just
put sudo in front of the command.  The first time you run sudo it will ask
you for your password.  After that you wont need to use a password again.
Your kids won't be able to mess with your machine while you are away and
you'll have full convenient access to root commands, without logging in as
root.

The quickest config for you is by editing the sudoers file by using the
visudo command.  Add the line:

yourusername  ALL=(ALL)    ALL

to the file and save it.  This is a very wide open config but your logged in
a root already so its still much better.

Russell

On 4/8/06, Vladimir Kosovac <vkosovac@xxxxxxxxx> wrote:
>
> Why don't you just logout?
>
> V
>
> On 4/9/06, Patrick Derwael <pderwael@xxxxxxxxxxx> wrote:
> > Hi list
> >
> > I'm trying to find a way to "lock screen" when logged on as root on the
> > console of a RHEL4 box
> > I know that everyone will say "don't do this", but nevertheless, that is
> > what I really want to do...
> > In a few words: this is a box on which security is not an issue, I just
> > want to prevent curious fingers to mess around with my desktop when I'm
> > away (you know, we name them something like 'kids')
> >
> > I went through the xscreensaver doc, but it didn't help, 'xhost +'
> didn't
> > either
> >
> > Any clue is welcome
> >
> >
> > --
> > Patrick Derwael
> > T: 0479/80.50.79
> > Web and Co sprl
> > http://www.webandco.be.be
> >
> > --
> > redhat-list mailing list
> > unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> > https://www.redhat.com/mailman/listinfo/redhat-list
> >
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subjecthttps://www.redhat.com/mailman/listinfo/redhat-list


[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux