From owner-freebsd-questions@freebsd.org Mon Mar 6 19:45:28 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 ACF87CFBB6A for ; Mon, 6 Mar 2017 19:45:28 +0000 (UTC) (envelope-from Ephaeton@gmx.net) Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0BEA916AB for ; Mon, 6 Mar 2017 19:45:27 +0000 (UTC) (envelope-from Ephaeton@gmx.net) Received: from hephaistos.local ([85.214.91.234]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Meh8S-1cw1Ar0FXU-00OJ8b; Mon, 06 Mar 2017 20:45:17 +0100 Received: by hephaistos.local (Postfix, from userid 1000) id DA4D3297CDF7; Mon, 6 Mar 2017 20:45:15 +0100 (CET) Date: Mon, 6 Mar 2017 20:45:15 +0100 From: "Martin S. Weber" To: ASV Cc: freebsd-questions@freebsd.org Subject: Re: /etc/skel doesn't work?! Message-ID: <20170306194515.GA1541@hephaistos.local> Mail-Followup-To: ASV , freebsd-questions@freebsd.org References: <1488813922.11457.12.camel@inhio.net> <20170306195758.17d83f1d.freebsd@edvax.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170306195758.17d83f1d.freebsd@edvax.de> User-Agent: Mutt/1.7.2 (2016-11-26) X-Provags-ID: V03:K0:ZfIlNQS2IiKdPFP4qQ8KjNCntKPCrmKFcM5sT8lD7NhN8KoQL8z VK4rCjGYgfswBBeuo5Nsed4WQyF1GI/Z5d4D0OHxoAzji0ILmHtyZrIgbpdduTtIOHQBDw4 r+QoQeiQaczx1HqUB07bfvgwVSRRhZFpCveg6+I58L+RrtFt+ijKwO2euQkd+OOzdavDFSJ cGom4HesRBWA8lVzJIJsg== X-UI-Out-Filterresults: notjunk:1;V01:K0:tDgkDuYwqws=:KL+zZJiM89fYAc6fr933AD J0+VvspkAqYuiQGEGNYc2ou6isKaYtbSQWe8u0WqaEri6lC33btcytHxqJtR+Sr4YZSPy6+xR gzY4q2npnMu0vzhOuf6p+Ygp7AIhYiAxL+4tenL7hQhuGnOXLWECQqBEW7X3rmfHUUubFq5Ej iNgPrr4bIMPuWJhmBwrEsnXRQszf0Ujo/YW+xh/ZUNF6kEij2Dwy/FB60JE1SjkAl0KDmrjq+ lYCQr0E8jasbuRzmg6xSiH/Exwc/pL832mpsRv5qsx65eazV1/L9nKcbF+EDRmoYg7EXDj/6R PBURCxfadDlAkE0++gjyaQrPFrH/61GdAef6IXZk4t0oisCkP8bMBjgwxd8bwUc9Aw5oBlCYH 19RnOtp4kYFcL4GO04HqXg+atc8Yw/XEm03BDf0dy5Kl82b/DXaoJpWbM+zD3GnNsWiMNLSSI DFsz64YtMcX12a+6WL33s0WkSwEXMdNZTnaltj0DzWTdAWDPJMAmOrz64rHcSODCF7DzQTIoU fWhCf+a54zfwmQUTf/6kHwDNOBtBcjziolk+0rRukYBZhapNI/jAmvB9Jhsz1hJywb8TFiVj9 HRZkCHxAdMmW+b9RDgCFejux+i3lDOijEJ0L5jF29/UbMVc6Dq4pKLcrSYduD0luAjLmgyy/c rdgyCDgMlGXlZUtIIyJrWnnWeEQYE8+aNDuXQNA/uKqNLeBT1Px2u5WB4yF+toJW5ir5l5X1E cLMc5vAoffVoNV5ZhElV2z9DPwgegRw7ROeLpf5pb0dajtuGnXXkQbhxpbA= 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 19:45:28 -0000 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