I want to use adduser USER
(USER is a user name), but this asks me many questions like full name and address. I want a script which types the return key automatically and skip those questions. For example, I execute ./myadduser.sh USER
and myadduser.sh call adduser USER and input return to all questions. Is there a great way to do this? I am thinking about Ubuntu 14.04.
Sorry, I made a mistake. Input return not to all questions since I have to input password which cannot be return. Is it possible to input return to all questions except questions about password?
yes "" | adduser ...
– Michael Homer Aug 27 '16 at 02:45adduser --help
and you'll see all those can be passed in a single line. – Julie Pelletier Aug 27 '16 at 02:46