#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Posts
    16
    Rep Power
    0

    Linux usermanagement


    Just me again with another question
    Is there anyone who knows if there's a library for user/group management under linux? I don't want to do os.system() calls all the times ...
    Greets
    FraterQ
    Last edited by FraterQ; December 14th, 2003 at 06:37 AM.
  2. #2
  3. Only the strong survives!!.
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Feb 2003
    Location
    A World of wonders.
    Posts
    5,583
    Rep Power
    407
    I don't think so.. unless there is a library that has been coded in python, but as far as i know your best bet would be using the group executable binary
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Posts
    16
    Rep Power
    0
    mm, well, i think its time to code one
  6. #4
  7. Only the strong survives!!.
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Feb 2003
    Location
    A World of wonders.
    Posts
    5,583
    Rep Power
    407
    Good idea let that be your next project hehe
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Posts
    16
    Rep Power
    0
    The next problem is, how to implement?
    Is there maybe a general interface through a c-library? I don't think that i am the first with this problem.. But i don't find any relevant articles.
  10. #6
  11. Only the strong survives!!.
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Feb 2003
    Location
    A World of wonders.
    Posts
    5,583
    Rep Power
    407
    Well at the moment im a bit busy.. but who knows maybe one day i can create it before you can.. but first i need to know what is it that you exactly want?
  12. #7
  13. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Posts
    16
    Rep Power
    0
    I want an easy and save access to unix passwd/shadow and groups file and functions like user.addToGroup('xy') or user.removeFromGroup('xy') ... This would be nice. Just a pwdb interface
  14. #8
  15. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Posts
    16
    Rep Power
    0
    Ok,
    i've searched the whole night for an acceptable solution and i found a way through libshadow.
    I'll now try to write a class which grants access to the usermanagement through this libs. If anyone is interested and needs such a class to o leave me a message i'll try to adapt your suggestions.
    FraterQ

IMN logo majestic logo threadwatch logo seochat tools logo