sprinkle-tool / sprinkle

Sprinkle is a software provisioning tool you can use to build remote servers with. eg. to install a Rails, or Sinatra stack on a brand new slice directly after its been created
https://github.com/sprinkle-tool/sprinkle
MIT License
1.15k stars 138 forks source link

Why use adduser instead of the more low level useradd? #130

Closed koenpunt closed 11 years ago

koenpunt commented 11 years ago

Is there a specific reason not to use the low level useradd instead of adduser?

joshgoebel commented 11 years ago

We've always used adduser and I think it would surprise users and break a lot of scripts to switch now since we encourage users to pass custom flags. I'm not against the other, just not sure it make sense to switch mid-stream unless there is some real benefit.

koenpunt commented 11 years ago

My thoughts on adduser is that it is more of an interactive utility where useradd is more of a system command. And in the user installer it is never user interactively right? Although it's a valid argument that people are already using this..

joshgoebel commented 11 years ago

I agree in general, but we've fixed the interactive issue... so if this is in use and keeping people happy I don' see a reason to spend time changing it unless you want to babysit the slow depreciation and switch over across multiple versions. :) I don't.

If you did you'd have to change the API of add_user so you had some way to detect users wanting to use the old method and could warn/throw a notice...