All the worse that Debian has both useradd and adduser. I never remember which is the one I want. And in Redhat-derivatives it’s something even more confusing.
The only thing I ever want to do is add a user to a group, is that too much to ask?
adduser is an interactive wrapper for useradd. It can, for example, prompt the user to set a password rather than execute passwd separately. Very useful if you just want to manage a user without reading through useradd’s command line options, then running usermod because you forgot to set something.
It doesn’t excuse the bad naming, I’d rather have something like useradd --interactive, but it’s worth remembering.
All the worse that Debian has both useradd and adduser. I never remember which is the one I want. And in Redhat-derivatives it’s something even more confusing.
The only thing I ever want to do is add a user to a group, is that too much to ask?
adduseris an interactive wrapper foruseradd. It can, for example, prompt the user to set a password rather than executepasswdseparately. Very useful if you just want to manage a user without reading throughuseradd’s command line options, then runningusermodbecause you forgot to set something.It doesn’t excuse the bad naming, I’d rather have something like
useradd --interactive, but it’s worth remembering.You’d want
usermodfor that, no? If the user already exists and you’re just modifying their groups?