December 14th, 2003, 06:34 AM
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 ...
Last edited by FraterQ; December 14th, 2003 at 06:37 AM.
December 14th, 2003, 07:08 AM
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
December 14th, 2003, 07:40 AM
mm, well, i think its time to code one
December 14th, 2003, 07:44 AM
Good idea let that be your next project hehe
December 14th, 2003, 08:07 AM
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.
December 14th, 2003, 08:18 AM
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?
December 14th, 2003, 01:29 PM
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
December 16th, 2003, 05:18 AM
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.