From owner-freebsd-questions@freebsd.org Mon Mar 6 19:51:27 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 7A06ACFBF50 for ; Mon, 6 Mar 2017 19:51:27 +0000 (UTC) (envelope-from cknipe@savage.za.org) Received: from mail-qk0-x236.google.com (mail-qk0-x236.google.com [IPv6:2607:f8b0:400d:c09::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 38EC51D5A for ; Mon, 6 Mar 2017 19:51:27 +0000 (UTC) (envelope-from cknipe@savage.za.org) Received: by mail-qk0-x236.google.com with SMTP id y76so40819669qkb.0 for ; Mon, 06 Mar 2017 11:51:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=savage-za-org.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=RJqhrRh4qgLCYGYQ4fjnpAMlYuy+iW41ok0rdxu2Wog=; b=yoksiQgY5Ob0q1/sXY14lOGuQTQHYS1YVEF29k4weS+/mpxPHzcQZYFVUCegZyOwzW Os0+sVKHJgkp5JhiFba0Oa0lcg92lmquuQkHX1qosCNzqi0WFqw6ErUMatqyrEAats/6 8bXxUGKammSkYCq7RAO06/AlnwJPFpxMYigzKG8BVpj0LdHqhuce42EHXCrs9AGHUStB wG3Muyhur10SbOk36yhE5lBL8Be/Wh1Dmhr6I4aotDZztz2en8fDHBhL/xUepZ71b965 PkxaivgIlfcJejBgNfKRVObcd0VLeVfnfypb4Xl2+TuGcZGFT24Ypq6nga5IxsgSim+v KTCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=RJqhrRh4qgLCYGYQ4fjnpAMlYuy+iW41ok0rdxu2Wog=; b=AIbfoS1bcrOoHGGSxOXIw9a8SGoFJu5NKmsThebdUzdTjBSb6y+Wj6+YMg6/NxWLNT NhYaDvhv7pOxWdxgXpYUm27BSV1YJiXVls5pi9pg8oNEE9suaGcjvaIpKrsGkE88egsP wu/8rO6e86szSM6tT4RnidGit7RKbDMVZw/S8JrhJTphnwKDUuvM+p97ImvVON/xR+i4 8HesrGrG8aGqmgZlqG5Fs3RxjVPefmMJF4WFp3SaLC0ayYFXQAdQY3z/IGZ1HlsD8X2w /q3PjA5k1uKngUhQBoe1p0bylcfptwGAJJ4ZzmyaJ7sHfK2OGojJ42wA2Y/BLOWjr625 eCBQ== X-Gm-Message-State: AMke39k4tTAugBrFX0/amrsgojno4x+gexqBzScPvtPhCugys4FF8c+rRd1bicgAGejs94tr7sdZQsUfg6EqCw== X-Received: by 10.237.43.69 with SMTP id p63mr16829688qtd.68.1488829886185; Mon, 06 Mar 2017 11:51:26 -0800 (PST) MIME-Version: 1.0 Sender: cknipe@savage.za.org Received: by 10.55.89.69 with HTTP; Mon, 6 Mar 2017 11:51:25 -0800 (PST) X-Originating-IP: [2a07:b2c7:ffff:ff82:3888:e5c1:8baf:696] In-Reply-To: <20170306194515.GA1541@hephaistos.local> References: <1488813922.11457.12.camel@inhio.net> <20170306195758.17d83f1d.freebsd@edvax.de> <20170306194515.GA1541@hephaistos.local> From: Chris Knipe Date: Mon, 6 Mar 2017 21:51:25 +0200 X-Google-Sender-Auth: ybacH4dNW4J1fO7k90ckpmPN8Lc Message-ID: Subject: Re: /etc/skel doesn't work?! To: FreeBSD - Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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:51:27 -0000 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" > -- Regards, Chris Knipe