How to create a unix shell account with Python?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sebastjan Trepca

    #1

    How to create a unix shell account with Python?

    Hi!

    I couldn't find anything on creating a new linux user account in
    Python documentation.
    Anyone has any experience with this? You just run useradd command in
    shell or is there a more pythonic way?

    Thanks, Sebastjan
  • brent.chambers@gmail.com

    #2
    Re: How to create a unix shell account with Python?

    os.system("user add ...")

    Its not pretty, but it gets it done.

    Comment

    • Sebastjan Trepca

      #3
      Re: How to create a unix shell account with Python?

      Ok, thanks :)


      On 5 Feb 2006 13:01:23 -0800, brent.chambers@ gmail.com
      <brent.chambers @gmail.com> wrote:[color=blue]
      > os.system("user add ...")
      >
      > Its not pretty, but it gets it done.
      >
      > --
      > http://mail.python.org/mailman/listinfo/python-list
      >[/color]

      Comment

      Working...