Subject: startx [or X?] asks for SSH password?
To: None <current-users@netbsd.org>
From: Ian Zagorskih <ianzag@megasignal.com>
List: current-users
Date: 03/24/2005 19:26:00
I just built and installed NetBSD-current/i386 with XFree 4.5.0:

---cut---
$ uname -a
NetBSD IANZAG 3.99.1 NetBSD 3.99.1 (IANZAG-ACPI) #0: Thu Mar 24 18:30:05 NOVT 
2005  toor@NBSD1:/usr/src/sys/arch/i386/compile/IANZAG-ACPI i386

$ X -version 
SSH passphrase: 
SSH passphrase: 

XFree86 Version 4.5.0
Release Date: 16 March 2005
X Protocol Version 11, Revision 0
Build Operating System:NetBSD/i386 3.99.1 - The NetBSD Foundation, Inc.
Current Operating System: NetBSD IANZAG 3.99.1 NetBSD 3.99.1 (IANZAG-ACPI) #0: 
Thu Mar 24 18:30:05 NOVT 2005  
toor@NBSD1:/usr/src/sys/arch/i386/compile/IANZAG-ACPI i386
Build Date: 24 March 2005
        Before reporting problems, check http://www.XFree86.Org/
        to make sure that you have the latest version.
Module Loader present
Command line: X -version
---cut---

Looks like all works just fine as prior but i found quite weird behaviour of 
X. Ok, at least weird from my point of view. When i run X in any way, for 
example as above, it asks SSH password. Twice. And starts X only when i enter 
valid password for my login.

Just wondering how to disable this feature so i can start X without extra 
password checks as in old good pre-PAM days :)

$ ls -l /etc/pam.d/
total 36
-rw-r--r--  1 root  wheel  2959 Feb 25 20:27 README
-rw-r--r--  1 root  wheel   586 Feb 25 20:27 ftpd
-rw-r--r--  1 root  wheel   516 Feb 25 20:27 gdm
-rw-r--r--  1 root  wheel   376 Feb 25 20:27 imap
-rw-r--r--  1 root  wheel   516 Feb 25 20:27 kde
-rw-r--r--  1 root  wheel   423 Feb 25 20:27 login
-rw-r--r--  1 root  wheel   715 Feb 25 20:27 other
-rw-r--r--  1 root  wheel   366 Feb 25 20:27 passwd
-rw-r--r--  1 root  wheel   377 Feb 25 20:27 pop3
-rw-r--r--  1 root  wheel   462 Feb 25 20:27 rexecd
-rw-r--r--  1 root  wheel   379 Feb 25 20:27 rsh
-rw-r--r--  1 root  wheel   790 Feb 25 20:27 sshd
-rw-r--r--  1 root  wheel   511 Feb 25 20:27 su
-rw-r--r--  1 root  wheel   664 Feb 25 20:27 system
-rw-r--r--  1 root  wheel   808 Feb 25 20:27 telnetd
-rw-r--r--  1 root  wheel   568 Feb 25 20:27 xdm

PS: Of course i installed new kernel first, rebooted, installed userland, 
updated /dev, run /etc/postinstall fix and so on.

// wbr