Results 1 to 3 of 3

Thread: username => uid and vice versa (C)

  1. #1

    username => uid and vice versa (C)

    ???
    I know there is a call for it, just don't recall which.

    Thanks.

  2. #2

    Re:username => uid and vice versa (C)

    Take a look at getpwuid and getpwnam. They both return the same info in the form of a pointer to "struct passwd" (as per pwd.h).

  3. #3

    Re:username => uid and vice versa (C)

    [quote author=pam link=board=9;threadid=5160;start=0#50996 date=1033386392]
    Take a look at getpwuid and getpwnam. They both return the same info in the form of a pointer to "struct passwd" (as per pwd.h).
    [/quote]

    score! thanks this is what i was looking for.

Similar Threads

  1. NFS mounts with different username
    By svar in forum Linux - General Topics
    Replies: 5
    Last Post: 01-20-2011, 12:13 PM
  2. Fedora 8 username and password
    By hedleyq in forum Redhat / Fedora
    Replies: 4
    Last Post: 03-28-2008, 01:27 AM
  3. opennms username,passwd
    By pavangogineni in forum Linux - Hardware, Networking & Security
    Replies: 2
    Last Post: 02-14-2006, 07:26 AM
  4. Slackware Username
    By -JhAzEr- in forum Linux - General Topics
    Replies: 3
    Last Post: 09-19-2002, 03:31 PM
  5. ftp/scp username/password via script
    By Blaqb0x in forum Programming
    Replies: 3
    Last Post: 08-06-2002, 01:47 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •