Fairly simple proposition, but here's the full recipe:
# NEWUSER=bob
# zfs create rpool/export/home/
${NEWUSER}
# useradd -d /export/home/
${NEWUSER}
-m -s /usr/bin/bash -c "Bob Lastname"${NEWUSER}
# chown -R ${NEWUSER} /export/home/
${NEWUSER}
# chgrp -R staff /export/home/
${NEWUSER}
# passwd
${NEWUSER}
New Password:
Re-enter new Password:
passwd: password successfully changed for...
# unset
NEWUSER
The only detail is that we have to create the user before changing the home directory's owner. Chicken and egg thing.
No comments:
Post a Comment