illumos-joyent
illumos-joyent copied to clipboard
useradd fails when using -D flag
instance: base-64 20.1.0 platform image: 20200603T203505Z
The useradd default values cannot be set with useradd -D
.
The specific error is:
UX: useradd: ERROR: Unexpected failure. Defaults unchanged.
And as warned, nothing changes.
Doing a little more digging, it appears that useradd is attempting to access /usr/sadm/defadduser
which is mounted as read-only within a zone.