<div dir="ltr">Hello.<div>>xdm runs Xstartup on behalf of the user.</div><div>Hmm.. man page says: "After the user logs in, xdm runs the Xstartup script as root.".</div><div>There is a $USER argument passed to this script, but the script itself runs as root.</div><div><br></div><div>>. What does your Xstartup say?</div><div><br></div><div>exec /usr/bin/sessreg -a -w /var/log/wtmp -u /var/run/utmp -x /usr/lib64/X11/xdm/Xservers -l $DISPLAY -h "" $USER<br></div><div><br></div><div>I am pretty sure the problem is the following line in xdm-config:</div><div><br></div><div>DisplayManager*startup: /usr/lib64/X11/xdm/Xstartup<br>! The following three resources set up display :0 as the console.<br>DisplayManager._0.startup: /usr/lib64/X11/xdm/GiveConsole</div><div><br></div><div>GiveConsole is: </div><div>chown $USER /dev/console<br><br></div><div>So, sessreg is simply not called when xdm serves screen :0</div><div><br></div><div>I was able to fix it by copying sessreg line to the GiveConsole, but it looks like a strange hack..</div><div>Ilya</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Oct 18, 2020 at 5:35 PM Chris Sorenson <<a href="mailto:csoren@isd.net">csoren@isd.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">xdm runs Xstartup on behalf of the user. Or, at least it's supposed to. <br>
Xstartup should then call sessreg which should invoke wtmp and utmp. <br>
However, it's possible to bypass wtmp/utmp by passing "-w none" to <br>
sessreg, in which case "w" won't show the login. What does your Xstartup <br>
say?<br>
<br>
<br>
On 10/18/2020 07:00 AM, <a href="mailto:xorg-request@lists.x.org" target="_blank">xorg-request@lists.x.org</a> wrote:<br>
> <br>
<br>
> <br>
> Message: 1<br>
> Date: Sun, 18 Oct 2020 00:12:22 +0300<br>
> From: IL Ka <<a href="mailto:kazakevichilya@gmail.com" target="_blank">kazakevichilya@gmail.com</a>><br>
> To: xorg <<a href="mailto:xorg@lists.x.org" target="_blank">xorg@lists.x.org</a>><br>
> Subject: xdm-config for :0 doesn't call Xstartup?<br>
> Message-ID:<br>
> <CAHv=<a href="mailto:rM33zEZEML9qKEnphvKAzH%2BuPn%2BTDb7SbjjkL9qV8jed9Q@mail.gmail.com" target="_blank">rM33zEZEML9qKEnphvKAzH+uPn+TDb7SbjjkL9qV8jed9Q@mail.gmail.com</a>><br>
> Content-Type: text/plain; charset="utf-8"<br>
> <br>
> Hello.<br>
> <br>
> I found that xdm-config has the following lines<br>
> DisplayManager*startup: /usr/lib64/X11/xdm/Xstartup<br>
> DisplayManager._0.startup: /usr/lib64/X11/xdm/GiveConsole<br>
> <br>
> As I understand, that means GiveConsole is run instead of Xstartup,<br>
> so sessreg is not called, and I do not see my login in "w" output.<br>
> <br>
> I am sure this is how it worked for decades, so it could be that I<br>
> misunderstand something.<br>
> <br>
> Is it a bug?<br>
> <br>
> Ilya.<br>
> <br>
</blockquote></div>