Subject: pkg/24722: KDM cannot login with default shell set to bash
To: None <>
From: None <>
List: netbsd-bugs
Date: 03/09/2004 12:57:16
>Number:         24722
>Category:       pkg
>Synopsis:       kdm cannot login with default shell set to bash
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 09 19:59:00 UTC 2004
>Originator:     Chris Budd
>Release:        NetBSD 1.6.1
System: NetBSD cbudd 1.6.1 NetBSD 1.6.1 (GENERIC) #0: Tue Apr 8 12:05:52 UTC 2003 i386
Architecture: i386
Machine: i386
	Not sure if this is a NetBSD bug or a kdm/X bug.
	On a clean install of NetBSD 1.6.1 and kde,
	I set kdm in rc.local.  When I reboot, all is fine.
	However, if I install bash 2.05.2, and use chpass
	to set the default shell to /usr/pkg/bin/bash, then 
	subsequent logins from kdm fail.  This is annoying
	since any logins outside of kdm will not automatically
	drop me in the bash shell.  Obviously, I can just type
	bash, but I'm lazy.

	From the i386pkg CDs for NetBSD 1.6.1 from April 2003:
	1.  Boot off CD 8 of 8 from the 1.6.1 i386pkg
	2.  Configure network settings within sysinst
	3.  install
	3.a.  use a default disklabel "standard with X"
	3.b.  full install -- all sets
	4.  reboot and login as root
	5.  xf86cfg to configure X, but do not start X
	6.  pkg_add ghostscript-esp from disk 1 of 8 of 1.6.1 i386pkg
	(should be done through KDE install, but it missed this ghostscript for some reason)
	7.  pkg_add kde -- should install from disk 1 of 8 of 1.6.1 i386pkg
	8.  pkg_add bash -- should install 2.05.2 from disk 6 of 8 of 1.6.1 i386pkg
	9.  add the following line to the bottom of your /etc/rc.local 
	--> /usr/X11R6/bin/kdm
	10.  chpass and change the Shell: line to /usr/pkg/bin/bash
	11.  reboot and attempt to login as root

	When the login from kdm fails, login into the console
	as root, and chpass to change the Shell back to /bin/csh.