Re: how to autologin in xdm?

From: Hugo Lovhoiden (hugo_at_office-center.nospam.invalid)
Date: 07/28/03


Date: Mon, 28 Jul 2003 13:55:41 +0200

On Mon, 28 Jul 2003 12:28:02 +0800, Dan Jacobson wrote:

>> || How can one do autologin in xdm so one doesn't have to type username
>> || and passwd each session?
>
>> You don't.
>
> < But you can if you use kdm instead of xdm (break you system on your own
> < risk!) Allow this by hacking the kdmrc directy or via kcontrol.
>
> But since I am just a humble icewm user, I already apt-got xdm and
> banished all the kde glitz away because I never use it.
> Plus keeping it up to date is modem overflow.
>
>> You run an X session of your choice using startx (or straight xinit)
>> from an rc script.
>
> All I know is ~/.xsession is run after login.
>
>> However, since this is about security, don't do it unless you know what
>> you're doing. And given your question, you probably shouldn't. But it's
>> impossible to tell for lack of background information.
>
> < I can only second that!
> < Well, I'm just giving you what you asked for - "more rope" :)
>
> On my island hilltop, no other linux users are near.
>
> Must I accept the glitz of "gdm" as the only other choice?

What I don't get is why you want to use xdm when you aren't going to use
it? I mean, having xdm auto-login is precisely the opposite of what it was
designed to do: Give you a graphical login prompt.

Use runlevel 3 and add 'su - <your user> -c startx' to
/etc/init.d/rc.local or (if using inittab) change
"x:5:respawn:/etc/X11/prefdm -nodaemon" to "x:5:respawn:su - <your user>
-c startx".

-- 
Mvh Hugo


Relevant Pages

  • Re: unable to login on the console with xwindows
    ... I logged in and started startx. ... Cannot start session due to some internal error. ... I'd temporarily stop xdm (I think it will be an initscript but I've ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Multiple X Sessions on OSR 6
    ... | Bob Stockler wrote: ... and command line startx fails with me in various ways. ... | session, X will start and give me the grey stippled background but no ...
    (comp.unix.sco.misc)
  • Re: X startup: background image of xdm
    ... is the title of the login screen. ... labeled Logo area:. ... Define which session types should be accessible from the login window. ... find your xdm setup files. ...
    (comp.os.linux.x)
  • Re: gnome-session
    ... neil writes: ... If, i want to start a x session, i want to be able to just 'startx' ... At the moment I have to start gnome by 'startx gnome-session'. ...
    (comp.unix.bsd.freebsd.misc)
  • Re: gnome-session
    ... If, i want to start a x session, i want to be able to just 'startx' ... At the moment I have to start gnome by 'startx gnome-session'. ... There is NO .xinitrc file ...
    (comp.unix.bsd.freebsd.misc)