Chu Qiu wrote: > I need to get uid with username. > Are there any solution with pam functinos? A call to getlogin (not a PAM function but a generic C library function) should do the trick. /kneth