From owner-freebsd-questions@freebsd.org Mon Mar 6 22:21:58 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0DFE8D009BB for ; Mon, 6 Mar 2017 22:21:58 +0000 (UTC) (envelope-from baho-utot@columbus.rr.com) Received: from cdptpa-oedge-vip.email.rr.com (cdptpa-outbound-snat.email.rr.com [107.14.166.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "cdptpa-oedge", Issuer "cdptpa-oedge" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id CA42F1FFF for ; Mon, 6 Mar 2017 22:21:57 +0000 (UTC) (envelope-from baho-utot@columbus.rr.com) Received: from [76.181.114.47] ([76.181.114.47:57008] helo=raspberrypi.bildanet.com) by cdptpa-omsmta03 (envelope-from ) (ecelerity 3.6.9.48312 r(Core:3.6.9.0)) with ESMTP id 1D/8B-21189-EF0EDB85; Mon, 06 Mar 2017 22:21:50 +0000 Received: from [192.168.1.156] by raspberrypi.bildanet.com with esmtp (Exim 4.84) (envelope-from ) id 1cl10o-0003zQ-AS for freebsd-questions@freebsd.org; Mon, 06 Mar 2017 17:21:50 -0500 Subject: Re: /etc/skel doesn't work?! To: freebsd-questions@freebsd.org References: <1488813922.11457.12.camel@inhio.net> <20170306195758.17d83f1d.freebsd@edvax.de> <20170306194515.GA1541@hephaistos.local> From: Baho Utot Message-ID: <0e5a295f-f78c-dad2-794a-fec839c1e4fc@columbus.rr.com> Date: Mon, 6 Mar 2017 22:21:45 -0500 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-RR-Connecting-IP: 107.14.168.88:25 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Mar 2017 22:21:58 -0000 On 3/6/2017 2:51 PM, Chris Knipe wrote: > Just out of interest... > > Is there any reason why /etc/skel IS there then? Other than to create > confusion of course. > > On Mon, Mar 6, 2017 at 9:45 PM, Martin S. Weber wrote: > >> On 2017-03-06 19:57:58, Polytropon wrote: >>> On Mon, 06 Mar 2017 12:25:22 -0300, ASV wrote: >>>> (...) >>>> Looks like a bug to me. >> Files in /etc/skel are not copied. Default skeleton directory is, >> confusingly, /usr/share/skel and not /etc/skel. The value of the >> default skeleton directory is neither mentioned in pw's manfile's >> -k options, or pw's manpage's FILES section. It IS, however, >> mentioned in pw.conf's manpage. >> >> So, ASV: >> touch /etc/skel/etc-skel >> touch /usr/share/skel/usr-share-skel >> pw useradd asv -m >> ls -l /home/asv >> # with empty /etc/pw.conf, we expect to see /home/asv/usr-share-skel, but >> # not /home/asv/etc-skel. >> >> FWIW, ASV, I understand your confusion. Fact just is, the default >> skeleton directory under FreeBSD is not what one expects when coming >> from other worlds. So, yes, any file will get copied, but you need to >> put it in the right directory :) And yes, re $SUBJECT, >> "/etc/skel does not work", without further configuration, period. >> >> -> man pw.conf >> >> Regards, >> -Martin >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to "freebsd-questions- >> unsubscribe@freebsd.org" >> > > Should /etc/usr/skel be a symlink to /usr/share/skel ?