use /etc/skel #1

Closed
opened 2026-09-02 17:55:16 +00:00 by dym · 0 comments
Member

sudo cp -ra /usr/local/share/hackportland/home-template/. /home/$name/

This line could be deleted if the files were kept in the skeleton directory that useradd or adduser would copy from automatically.

/etc/default/useradd
/etc/adduser.conf

# The directory from which skeletal user configuration files
# will be copied.
# Default: SKEL=/etc/skel
#SKEL=/etc/skel
https://git.hackportland.club/hackportland/scripts/src/commit/1c3edef1a43c201dba40ff81d5b5b7d89618b341/hp-create-user#L18 This line could be deleted if the files were kept in the skeleton directory that `useradd` or `adduser` would copy from automatically. ``` /etc/default/useradd /etc/adduser.conf # The directory from which skeletal user configuration files # will be copied. # Default: SKEL=/etc/skel #SKEL=/etc/skel ```
jacob closed this issue 2026-09-07 18:53:57 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
hackportland/scripts#1
No description provided.