This appears to be an issue with the patches to shadow for subuid/subgid support. The --{add,del}-sub{uid,gid}s options don't operate on /etc/passwd, only on /etc/sub{uid,gid}; but the code causes usermod to fail if called for any non-local user.
Assuming there's no policy reason why non-local users are disallowed from /etc/sub{uid,gid}, this is a simple fix. Cc:ing Serge Hallyn for comment, as he originally pulled these patches in. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to shadow in Ubuntu. https://bugs.launchpad.net/bugs/1475749 Title: usermod --add-subuids fails for users not in /etc/passwd Status in Canonical System Image: New Status in shadow package in Ubuntu: New Bug description: currently we have need to utilize lxc on vivid+stable overlay which requires adding subuser & subgroup ids. unfortunately, usermod currently fails since phablet password is readonly To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1475749/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp