Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Mar 2017 22:21:45 -0500
From:      Baho Utot <baho-utot@columbus.rr.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: /etc/skel doesn't work?!
Message-ID:  <0e5a295f-f78c-dad2-794a-fec839c1e4fc@columbus.rr.com>
In-Reply-To: <CA+4TWFuPS4qrPBOdD1XGqX3uC3j7NVxBdcojmX5Grk0noJfAFw@mail.gmail.com>
References:  <1488813922.11457.12.camel@inhio.net> <20170306195758.17d83f1d.freebsd@edvax.de> <20170306194515.GA1541@hephaistos.local> <CA+4TWFuPS4qrPBOdD1XGqX3uC3j7NVxBdcojmX5Grk0noJfAFw@mail.gmail.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help

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 <Ephaeton@gmx.net> 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 ?




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?0e5a295f-f78c-dad2-794a-fec839c1e4fc>