From owner-freebsd-questions@freebsd.org Mon Mar 6 15:34:10 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 B58F6CFBB2A for ; Mon, 6 Mar 2017 15:34:10 +0000 (UTC) (envelope-from asv@inhio.net) Received: from cz-prg-mx-01.inhio.eu (mail.inhio.eu [178.238.36.226]) by mx1.freebsd.org (Postfix) with ESMTP id 81B7C1BEE for ; Mon, 6 Mar 2017 15:34:09 +0000 (UTC) (envelope-from asv@inhio.net) Received: from [192.168.0.9] (unknown [179.210.142.234]) by cz-prg-mx-01.inhio.eu (Postfix) with ESMTPSA id B6BA427AD8 for ; Mon, 6 Mar 2017 15:25:25 +0000 (UTC) Message-ID: <1488813922.11457.12.camel@inhio.net> Subject: /etc/skel doesn't work?! From: ASV To: freebsd-questions@freebsd.org Date: Mon, 06 Mar 2017 12:25:22 -0300 Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit 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 15:34:10 -0000 Hello there, I haven't use this standard functionality for ages but yesterday I suddenly needed and then I've tried ... and failed. Further reading led me to add files that I want to be added on any new user home dir in /usr/share/skel/dot(filename). For example: to make my customised .zshrc copied on any new user home dir I'd just copy the .zshrc file in question to /usr/share/skel/dot.zshrc and it will be copied with the proper rights without the prepending "dot". And that works! Nonetheless, according to my understanding, any file placed into /etc/skel should end up into the newly created user home directory but it does NOT. Doesn't matter how the file is named. Looks like a bug to me. My machine: FreeBSD 11.0-RELEASE-p2 (amd64) Command used: pw useradd -m P.S. would be interesting to know why "dot" is required to be prepended in files added in /usr/share/skel