illumos-joyent icon indicating copy to clipboard operation
illumos-joyent copied to clipboard

useradd fails when using -D flag

Open brianewell opened this issue 4 years ago • 1 comments

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.

brianewell avatar Jun 15 '20 07:06 brianewell

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.

brianewell avatar Jun 16 '20 03:06 brianewell