Python wrappers for pw (freebsd password tool)

Tyler Eaves ninja114 at spl.at
Fri Mar 21 00:11:40 EST 2003


VanL wrote:

> Hello,
> 
> Has anyone written a python wrapper for pw*?  Whether by swig, popen, or
> os.system it doesn't matter.  I need one, and would rather reuse
> existing code than write from scratch.
> 
> Alternatively, does anyone have any utilities for updating the freebsd
> password database file?  I know about pwd in the statndard library, but
> that is a read-only tool.  I want to programmatically add users, not
> just read the file.
> 
> * I am referring specifically to pw for freebsd, the swiss-army-knife
> password database manipulation tool.
> 
> Thanks,
> 
> VanL

Any reason why you couldn't just call adduser and friends?




More information about the Python-list mailing list