#user #linux #passwd #manage #admin #home-dir

bin+lib umanux

Library for managing Linux users and their directories

1 unstable release

0.1.1 Nov 24, 2020

#9 in #passwd

MIT/Apache

81KB
2K SLoC

User MANager for linUX

A Usermanager written in Rust

This project is very much work in progress. Do absolutely not use in production systems!

When done this library intends to provide all the functionality needed to manage users on a linux system.

What is working so far:

  • Parsing:
    • /etc/passwd
    • /etc/shadow (root permission needed)
    • /etc/group (not yet really assigned to the users)
  • Modifying:
    • delete a user
      • passwd
      • shadow
      • group
        • own group
        • member
      • home dir
        • delete
        • keep
        • archive
      • mail?
      • multiple entries "Multiple entries named '%s' in %s. Please fix this with pwck or grpck."
      • cancel jobs:
        • cron
        • at
        • print
    • create a user
      • passwd
      • shadow
      • group
        • own group
        • member
      • home dir
        • create from skeleton
        • Skip
        • create from directory
      • mail?
      • multiple entries (check uid duplication)

Dependencies

~7–16MB
~199K SLoC