Hot answers tagged useradd
adduser calls the external program chfn to read the full name and other user information. chfn reads a bufferful of input, including not only what it needs but that last Y line. When adduser asks for confirmation afterward, the Y line has been read (but ignored) by chfn, so adduser sees an end of file on its input. The variable $answer is expected to contain ...
Only top voted, non community-wiki answers of a minimum length are eligible