Re: uid and gid ?

2009-07-10 Thread SandeepKsinha
HI, On Sat, Jul 11, 2009 at 7:45 AM, Mulyadi Santosa wrote: > Hi... > > On Fri, Jul 10, 2009 at 11:35 PM, SandeepKsinha > wrote: > > > > > > On Thu, Jul 9, 2009 at 11:45 PM, Adrian Cornish wrote: > >> > >> Is there any inbuilt( ) c function which can validate if the passed > >> uid/gid exist's

Re: uid and gid ?

2009-07-10 Thread Mulyadi Santosa
Hi... On Fri, Jul 10, 2009 at 11:35 PM, SandeepKsinha wrote: > > > On Thu, Jul 9, 2009 at 11:45 PM, Adrian Cornish wrote: >> >> Is there any inbuilt( ) c function which can validate if the passed >> uid/gid exist's on the machine or not? >> How about:- >> struct passwd *getpwuid(uid_t uid); > > T

Re: uid and gid ?

2009-07-10 Thread SandeepKsinha
On Thu, Jul 9, 2009 at 11:45 PM, Adrian Cornish wrote: > Is there any inbuilt( ) c function which can validate if the passed > uid/gid exist's on the machine or not? > How about:- > struct passwd *getpwuid(uid_t uid); > Thanks, but any for validating the gid > > > Adrian > -- Regards,

RE: uid and gid ?

2009-07-09 Thread Adrian Cornish
Is there any inbuilt( ) c function which can validate if the passed uid/gid exist's on the machine or not? How about:- struct passwd *getpwuid(uid_t uid); Adrian

Re: uid and gid ?

2009-07-09 Thread Mulyadi Santosa
Hi On Thu, Jul 9, 2009 at 11:53 PM, SandeepKsinha wrote: > Hi, > > Is there any inbuilt( ) c function which can validate if the passed uid/gid > exist's on the machine or not? I think Linux PAM might lend a help here. Take a look on http://www.linuxjournal.com/article/5940 to find out on how to d

uid and gid ?

2009-07-09 Thread SandeepKsinha
Hi, Is there any inbuilt( ) c function which can validate if the passed uid/gid exist's on the machine or not? -- Regards, Sandeep. “To learn is to change. Education is a process that changes the learner.”