Skip to content

Instantly share code, notes, and snippets.

@stuartpb
Created June 18, 2014 23:10
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save stuartpb/0acf735c8fa6b1b55209 to your computer and use it in GitHub Desktop.
Get the base for home directories used by useradd
unset HOME
[ -e /etc/default/useradd ] && source /etc/default/useradd
${HOME:=/home}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment