python uid uname manipultaion/fetching

Discussion in 'Python' started by Matthew Thorley, Jun 3, 2004.

  1. Is there anything in the standard library that will convert a uid to a
    username ? or do I have to parse the /etc/passwd ?

    thanks
    -matthew
    Matthew Thorley, Jun 3, 2004
    #1
    1. Advertising

  2. Phil Frost wrote:
    > See the pwd and grp standard modules.
    >
    > On Thu, Jun 03, 2004 at 04:06:31AM -0600, Matthew Thorley wrote:
    >
    >>Is there anything in the standard library that will convert a uid to a
    >>username ? or do I have to parse the /etc/passwd ?
    >>
    >>thanks
    >>-matthew

    >
    >


    thats perfect
    thanks
    -matthew
    Matthew Thorley, Jun 3, 2004
    #2
    1. Advertising

  3. Matthew Thorley

    Phil Frost Guest

    See the pwd and grp standard modules.

    On Thu, Jun 03, 2004 at 04:06:31AM -0600, Matthew Thorley wrote:
    > Is there anything in the standard library that will convert a uid to a
    > username ? or do I have to parse the /etc/passwd ?
    >
    > thanks
    > -matthew
    Phil Frost, Jun 3, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ksenia Marasanova

    (python), uid 80: exited on signal 11

    Ksenia Marasanova, Oct 28, 2004, in forum: Python
    Replies:
    0
    Views:
    470
    Ksenia Marasanova
    Oct 28, 2004
  2. Andrew MacIntyre

    Re: (python), uid 80: exited on signal 11

    Andrew MacIntyre, Oct 28, 2004, in forum: Python
    Replies:
    1
    Views:
    628
    Donn Cave
    Oct 30, 2004
  3. Stu

    [ann] uname ruby library

    Stu, Dec 6, 2004, in forum: Ruby
    Replies:
    2
    Views:
    135
  4. Daniel Berger

    [ANN] sys-uname 0.7.0

    Daniel Berger, Jan 11, 2005, in forum: Ruby
    Replies:
    0
    Views:
    79
    Daniel Berger
    Jan 11, 2005
  5. doni
    Replies:
    6
    Views:
    307
    Dr.Ruud
    Mar 5, 2007
Loading...

Share This Page