Subject: bin/10985: useradd: No skel files used, but several ones installed
To: None <gnats-bugs@gnats.netbsd.org>
From: Hubert Feyrer <feyrer@feyrer.de>
List: netbsd-bugs
Date: 09/10/2000 19:48:15
>Number:         10985
>Category:       bin
>Synopsis:       useradd: No skel files used, but several ones installed
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 10 19:49:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Hubert Feyrer
>Release:        1.5_ALPHA2
>Organization:
	
>Environment:
	
System: NetBSD miyu 1.5_ALPHA2 NetBSD 1.5_ALPHA2 (MIYU) #10: Sun Sep 3 23:37:40 MEST 2000 feyrer@miyu:/ccd0/cvs/src-1.5/sys/arch/i386/compile/MIYU i386


>Description:
	We currently have three places for skeleton files:

	 * /etc/skel: empty
	 * /usr/share/skel: dot.cshrc, ...
	 * /usr/share/examples/usermgmt: .cshrc, .lgin, ...

	useradd(8) manages to pick the empty one as default.


>How-To-Repeat:
	$ su
	# useradd -m test
	useradd: No "dot" initialisation files found
	# ls -la ~test
	total 4
	drwxr-xr-x   2 test  users  512 Sep 11 04:38 .
	drwxr-xr-x  10 root  wheel  512 Sep 11 04:38 ..
	# 

	Wonder what the stuff in the other dirs is intended for.

>Fix:
	We should really ship a ready-to-use config:

	 * Don't install yet another set of dot-files from
	   usr.sbin/user
	 * Move skel-files from share/skel/dot.* to etc/skel/.*
	 * Nuke share/skel from orbit

	This should work for a start, and things can be changed to
	/usr/share/skel via 'useradd -D -k /usr/share/skel'.

	(People may argue that /usr/share/skel is a better default
	place than /etc/skel - I don't care as long as a consens
	*IS* found in a timely manner).
>Release-Note:
>Audit-Trail:
>Unformatted: