What | Removed | Added |
---|---|---|
Flags | needinfo?(werner@suse.com) |
(In reply to Stefan Dirsch from comment #11) > Created attachment 841688 [details] > useradd.local.patch > > This patch for useradd.local implements copying of skel files from > /usr/etc/skel, which don't exist in /etc/skel. With shopt -s dotglob it would be possible to use shopt -s dotglob for file in ${USRSKELDIR}/*; do file=${file##*/} # Only copy if not exist yet, i.e. does *not* exist in /etc/skel, which is still # being preferred ... test -e $HOMEDIR/$file && continue cp -a $USRSKELDIR/$file $HOMEDIR chown -R $USER.$GID $HOMEDIR/$file done