Hacker News new | past | comments | ask | show | jobs | submit login

It's accountsservice: https://gitlab.freedesktop.org/accountsservice/accountsservi...

It's an API and associated service daemon to add/remove/modify users, since Linux does not have one of those. (except forking out to useradd/usermod/userdel, except on Debian where they supply the adduser/rmuser commands instead, because consistency is for chumps, I guess)




Not “instead”. The adduser/rmuser commands are in addition to useradd/usermod/userdel, which are more low-level.


browsed the repo 30s and found this commit https://gitlab.freedesktop.org/accountsservice/accountsservi...

    Never delete the root filesystem when removing users
    Many, many user accounts use / as their home directory. 
    If deleting these accounts with accountsservice, we should just ignore requests to 
    delete the home dir, rather than trash the user's computer.

    Fixes #57


Slightly off-topic, but why on Earth does something like this need to be written in C?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: