LinuxSA Mailing list archives
Index:
[thread]
[date]
[subject]
[author]
[stats]
From: Alex Garner <alex@netcraft.com.au>
To : <linuxsa@linuxsa.org.au>
Date: Wed, 25 Jul 2001 10:44:22 +0930
Re: linux X windows screen lock useless?
Alan,
If you absolutely must use startx, rather than xdm or gdm etc, then
you could try this solution...
alias startx='/usr/bin/ssh-agent /usr/X11R6/bin/startx \
> ~/startx.log 2>&1 & vlock'
Obviously this will shove X into the background then lock the console
and hide any ugly output and error messages that will blow away your
vlock password prompt.
It is better to do this than simply exiting the shell, (ie put 'exit'
instead of vlock). The reason for this is that on some systems,
(RedHat par exemple), permissions to certain devices (such as cdrom,
floppy, dsp etc) are granted to the first person to log in at the
console. These permissions are removed when you log out.
This behaviour is controlled by pam and the config file
/etc/security/console.perms. In fact, here is what the pam_console man
page has to say...
"pam_console.so is designed to give users at the physical console
(virtual terminals and local xdm-managed X sessions by default,
but that is configurable) capabilities that they would not
otherwise have, and to take those capabilities away when the are
no longer logged in at the console.
Also note that the other type of user who get these permissions by
default is the one who first logs in using xdm! (Another great reason
to use xdm).
Anyway, if you really love startx, then the above alias is your
friend.
> Obviously I need to study xdm.
> Yet another software-clump to study!
> I can still see problems there though.
> Like do I really want to configure a new monitor
> when I change monitor?
> E.g. I had one machine where the monitor was just not capable
> of running the kdm or gdm or xdm login thing and therefore I
> always wanted to run that machine in text only.
> I've just got in the _habit_ now of setting up all
> machines for console login plus startx.
> It just saves me having to think about anything else.
> At least I get a guaranteed minimum level of access.
> If I get into the _habit_ of using these modern-fangled xdm
> things, then I'll have to study how to get rid of it when
> I need to.
> Having xdm in inittab obviously makes it more difficult to
> get rid of than running out of startx.
>
> On my latest machine (a Toshiba portégé 3020CT), I experimented
> with xdm, gdm and kdm for start up for a few days, and finally
> just dumped them all in favour of the getty console.
> The reason in that case was that the mouse was so awful.
> Sometimes even the mouse doesn't work at all or I don't have a mouse.
> And sometimes I don't have the RAM required for using graphics.
> The plain xdm does not give me the options to use gnome or afterstep
> or kde or fvwm2 etc. That's why I prefer gdm or kdm to xdm.
>
> The "sans mouse" problem can sometimes be solved by the
> control-shift-numberlock trick. But my latest notebook PC
> doesn't have the numberlock key!!
>
> Anyway, I'll go off and study it now (rather than doing
> productive work!), and write it up in a web page when I understand it.
--
Alex Garner <alex@netcraft.com.au>
NetCraft Australia
Phone (08) 8338 0888
http://www.netcraft.com.au
"We have achieved the best possible performance by using
the available power supply & holding the air velocity to
a level which will allow it to heat to the highest
temperature near dry hands could stand on a warm day."
--
LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
Index:
[thread]
[date]
[subject]
[author]
[stats]
Return to the LinuxSA Mailing List Information Page