Work around a potential bug in pw(8) when '-m' is specified.
According to the manual page, '-m' should create the user home directory, however rigorous testing suggests it does not, and it is unclear if this is an implementation or expectation issue. Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
a40200ca80
commit
717a45fcae
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=284010
@ -82,7 +82,7 @@ arm_create_user() {
|
|||||||
# and set the default password for the 'root' user to 'root'.
|
# and set the default password for the 'root' user to 'root'.
|
||||||
chroot ${CHROOTDIR} /usr/sbin/pw -R ${DESTDIR} \
|
chroot ${CHROOTDIR} /usr/sbin/pw -R ${DESTDIR} \
|
||||||
groupadd freebsd -g 1001
|
groupadd freebsd -g 1001
|
||||||
chroot ${CHROOTDIR} mkdir -p ${DESTDIR}/home
|
chroot ${CHROOTDIR} mkdir -p ${DESTDIR}/home/freebsd
|
||||||
chroot ${CHROOTDIR} /usr/sbin/pw -R ${DESTDIR} \
|
chroot ${CHROOTDIR} /usr/sbin/pw -R ${DESTDIR} \
|
||||||
useradd freebsd \
|
useradd freebsd \
|
||||||
-m -M 0755 -w yes -n freebsd -u 1001 -g 1001 -G 0 \
|
-m -M 0755 -w yes -n freebsd -u 1001 -g 1001 -G 0 \
|
||||||
|
Loading…
Reference in New Issue
Block a user