<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: C programming question: how to verify userid/password on Unix OS (hp or linux) in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/c-programming-question-how-to-verify-userid-password-on-unix-os/m-p/3151783#M72891</link>
    <description>Hello Liping,&lt;BR /&gt;&lt;BR /&gt;not sure if there is a way to avoid putting some logic about the passwd location into the &lt;BR /&gt;program, but using fgetpwent and/or the shadow &lt;BR /&gt;routines (man shadow)  you should be able to get at the data you need.&lt;BR /&gt;&lt;BR /&gt;Greetings, Martin</description>
    <pubDate>Tue, 23 Dec 2003 12:15:53 GMT</pubDate>
    <dc:creator>Martin P.J. Zinser</dc:creator>
    <dc:date>2003-12-23T12:15:53Z</dc:date>
    <item>
      <title>C programming question: how to verify userid/password on Unix OS (hp or linux)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-programming-question-how-to-verify-userid-password-on-unix-os/m-p/3151782#M72890</link>
      <description>Hi,&lt;BR /&gt;Is there any functions that can be used to verify userid/password without worring about whereabouts of the password: /etc/passwd , /etc/shadow or somewhere else?&lt;BR /&gt;&lt;BR /&gt;I am used to use 'getpwent' to do password verification on our HP machine, but when I moved the code to Linux, it didn't work because the encrypted password resides in /etc/shadow instead of /etc/passwd.&lt;BR /&gt;&lt;BR /&gt;Any help is highly appreciated!&lt;BR /&gt;&lt;BR /&gt;Liping</description>
      <pubDate>Tue, 23 Dec 2003 11:50:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-programming-question-how-to-verify-userid-password-on-unix-os/m-p/3151782#M72890</guid>
      <dc:creator>liping guo</dc:creator>
      <dc:date>2003-12-23T11:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: C programming question: how to verify userid/password on Unix OS (hp or linux)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-programming-question-how-to-verify-userid-password-on-unix-os/m-p/3151783#M72891</link>
      <description>Hello Liping,&lt;BR /&gt;&lt;BR /&gt;not sure if there is a way to avoid putting some logic about the passwd location into the &lt;BR /&gt;program, but using fgetpwent and/or the shadow &lt;BR /&gt;routines (man shadow)  you should be able to get at the data you need.&lt;BR /&gt;&lt;BR /&gt;Greetings, Martin</description>
      <pubDate>Tue, 23 Dec 2003 12:15:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-programming-question-how-to-verify-userid-password-on-unix-os/m-p/3151783#M72891</guid>
      <dc:creator>Martin P.J. Zinser</dc:creator>
      <dc:date>2003-12-23T12:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: C programming question: how to verify userid/password on Unix OS (hp or linux)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-programming-question-how-to-verify-userid-password-on-unix-os/m-p/3151784#M72892</link>
      <description>When doing it from a shell script, you could do it with su:&lt;BR /&gt;su &lt;USERNAME&gt; -c /bin/true&lt;BR /&gt;&lt;BR /&gt;The problem with doing it from a C-program is that the encrypted passwd is not accessible for normal users, only root, on systems using the /etc/shadow (linux/solaris) or trusted (hp-ux) environments.&lt;BR /&gt;&lt;BR /&gt;So, even if you do program it correctly, you have to have root privileges to make it work... meaning a new possible security hole. You might, of course, try the system command to start the su line like in a shell script. That should work...&lt;/USERNAME&gt;</description>
      <pubDate>Tue, 30 Dec 2003 08:39:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-programming-question-how-to-verify-userid-password-on-unix-os/m-p/3151784#M72892</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2003-12-30T08:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: C programming question: how to verify userid/password on Unix OS (hp or linux)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-programming-question-how-to-verify-userid-password-on-unix-os/m-p/3151785#M72893</link>
      <description>Hi &lt;BR /&gt;There is pam  Pluggable Authentication Module&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Dec 2003 16:54:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-programming-question-how-to-verify-userid-password-on-unix-os/m-p/3151785#M72893</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2003-12-30T16:54:58Z</dc:date>
    </item>
  </channel>
</rss>

