Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 06 Mar 2017 12:25:22 -0300
From:      ASV <asv@inhio.net>
To:        freebsd-questions@freebsd.org
Subject:   /etc/skel doesn't work?!
Message-ID:  <1488813922.11457.12.camel@inhio.net>

next in thread | raw e-mail | index | archive | help
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 <username> -m

P.S. would be interesting to know why "dot" is required to be prepended
in files added in /usr/share/skel



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1488813922.11457.12.camel>