Rename accounts in FreeBSD
pw usermod -n oldname -l newname -d /usr/home/newname
pw groupmod -n oldname -l newname
mv /usr/home/oldname /usr/home/newname
chown -R newname:newname /usr/home/newname
pw usermod -n oldname -l newname -d /usr/home/newname
pw groupmod -n oldname -l newname
mv /usr/home/oldname /usr/home/newname
chown -R newname:newname /usr/home/newname
Previous post
bhyve-on-freebsd-10-1Next post
beginner-network-templating