From nobody@FreeBSD.org  Wed Dec  5 07:12:22 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 4E0026AB
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  5 Dec 2012 07:12:22 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 366B88FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  5 Dec 2012 07:12:22 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id qB57CMl8068723
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 5 Dec 2012 07:12:22 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id qB57CLl7068722;
	Wed, 5 Dec 2012 07:12:21 GMT
	(envelope-from nobody)
Message-Id: <201212050712.qB57CLl7068722@red.freebsd.org>
Date: Wed, 5 Dec 2012 07:12:21 GMT
From: Chris Petrik <c.petrik.sosa@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [PATCH] usr.sbin/adduser default to csh as sh is just annoying
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         174144
>Category:       bin
>Synopsis:       [PATCH] usr.sbin/adduser default to csh as sh is just annoying
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gjb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 05 07:20:00 UTC 2012
>Closed-Date:    Mon Dec 10 02:03:26 UTC 2012
>Last-Modified:  Mon Dec 10 02:03:26 UTC 2012
>Originator:     Chris Petrik
>Release:        FreeBSD 9.0-p5
>Organization:
ns
>Environment:
>Description:
I have always used adduser to create users, but having sh as default is
not really user friendly for most and it is a pain to use otherwise so
why not change it to csh?
>How-To-Repeat:

>Fix:
patch

Patch attached with submission follows:

Index: freebsdsrc/head/usr.sbin/adduser/adduser.sh
==================================================================
--- freebsdsrc/head/usr.sbin/adduser/adduser.sh
+++ freebsdsrc/head/usr.sbin/adduser/adduser.sh
@@ -834,11 +834,11 @@
 }
 
 #### END SUBROUTINE DEFINITION ####
 
 THISCMD=`/usr/bin/basename $0`
-DEFAULTSHELL=/bin/sh
+DEFAULTSHELL=/bin/csh
 ADDUSERCONF="${ADDUSERCONF:-/etc/adduser.conf}"
 PWCMD="${PWCMD:-/usr/sbin/pw}"
 MAILCMD="${MAILCMD:-mail}"
 ETCSHELLS="${ETCSHELLS:-/etc/shells}"
 NOHOME="/nonexistent"



>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: gjb 
State-Changed-When: Mon Dec 10 02:02:12 UTC 2012 
State-Changed-Why:  
Close this, as it is the system administrator's responsibility 
to change the shell for new user accounts based on what is installed 
on the system.  There are no technical limitations included in the 
PR of /bin/sh over /bin/csh as the default. 



Responsible-Changed-From-To: freebsd-bugs->gjb 
Responsible-Changed-By: gjb 
Responsible-Changed-When: Mon Dec 10 02:02:12 UTC 2012 
Responsible-Changed-Why:  
I'll take the heat. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=174144 
>Unformatted:
