News for hackers. Stuff that matters.
Re:Limiting the power of package installation in Debian by simion314 on Friday November 16, 2018 @09:34AM (#18468965)
How would you solve a task like creating an user group or things that are more complicated then dropping some files on the disk?
Re:Limiting the power of package installation in Debian by heinrichhartman on Friday November 16, 2018 @10:04AM (#18469181)
Adding new systemd service, for example just requires me to put a file into `/etc/systemd/system`. Many other applications work like this as well: Apache configs, /etc/sudoers.d on Debian, more examples in `/etc/?.d`

It's generally a good practice to make your system open for extension but closed to modifications [1].

There is no reason, the user database can not work the same way. Just have the system scan `/etc/passwd.d/*` on boot/reload and drop files there.

[1] https://drive.google.com/file/d/0BwhCYaYDn8EgODUxZTJhOWEtMTZ...

Re:Limiting the power of package installation in Debian by toast0 on Friday November 16, 2018 @10:08AM (#18469202)
User management could be handled as part of the package metadata, rather than an install script.

Schema migrations would still need a script or something though.

Re:Limiting the power of package installation in Debian by simion314 on Friday November 16, 2018 @10:47AM (#18469455)
Then you need to add support for this features to the package manager, I imagine that the package manager will never cover all uses so you would need for rare cases the ability to run a script.
Re:Limiting the power of package installation in Debian by anoncake on Friday November 16, 2018 @11:30AM (#18469744)
That script could be sandboxed to only have access to its packages' files.