Subject: Re: "default shell" [was: Re: CVS commit: src/usr.sbin/user]
To: None <>
From: Hubert Feyrer <>
List: tech-userlevel
Date: 10/02/2006 21:19:08
OK, obviously there are many possibilities here, but no concensus.

 	So how about pushing the decision to the user?

We already ask for what shell root should get, how about using that to 
setup /etc/usermgmt.conf? It's not optimal, but may work for a quick 

Everything that's needed is in the huge patch below (untested)!
(We don't ship a /etc/usermgmt.conf, but "useradd -D ..." will create one)

How about going that route instead of having an endless discussion about 
shells and whatnot?

  - Hubert

Index: util.c
RCS file: /cvsroot/src/distrib/utils/sysinst/util.c,v
retrieving revision
diff -u -r1.143.2.2 util.c
--- util.c	27 Sep 2006 12:15:14 -0000
+++ util.c	2 Oct 2006 19:13:35 -0000
@@ -1191,6 +1191,7 @@
  	process_menu(MENU_rootsh, &shellpath);
  	run_program(RUN_DISPLAY | RUN_CHROOT, "chpass -s %s root", shellpath);
+	run_program(RUN_DISPLAY | RUN_CHROOT, "useradd -D -s %s", shellpath);
  	return 0;