uid (user authentication)
From: Janina Kramer (j.kramer_at_school-sucks.com)
Date: 07/26/04
- Previous message: John Reiser: "Re: Symbol Tables and Backtraces in Linux"
- Next in thread: Larry I Smith: "Re: uid (user authentication)"
- Reply: Larry I Smith: "Re: uid (user authentication)"
- Reply: Juha Laiho: "Re: uid (user authentication)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 26 Jul 2004 00:30:09 +0200
hi ng,
i want to read a username and a password, verify it and change the uid
of the current process to the corresponding user. changing the uid by
using setuid(..) isn't the problem (though by the way: would it be
better to change the uid or the effective uid? - or doesn't that matter
at all, because i will let the process terminate itself just after
performing it's task, anyways?), but how can i get the uid of that
specific user and verify the password? (i want to use just the same
users that can be used at system login or for ssh and so on.)
thanks in advance
janina
p.s.: language is C, of course
- Previous message: John Reiser: "Re: Symbol Tables and Backtraces in Linux"
- Next in thread: Larry I Smith: "Re: uid (user authentication)"
- Reply: Larry I Smith: "Re: uid (user authentication)"
- Reply: Juha Laiho: "Re: uid (user authentication)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|