<?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: /dev/tty and getpass() in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/dev-tty-and-getpass/m-p/3325944#M188255</link>
    <description>Hai,&lt;BR /&gt;&lt;BR /&gt; Did you try it with a simple program to check the getpass() call.&lt;BR /&gt;&lt;BR /&gt; I have tried it on 11.23 as,&lt;BR /&gt;&lt;BR /&gt; /* test.c */&lt;BR /&gt; #include &lt;UNISTD.H&gt;&lt;BR /&gt; main() {&lt;BR /&gt;   const char *prompt="/dev/tty";&lt;BR /&gt;   if ( getpass(prompt) == NULL ) {&lt;BR /&gt;     printf ("Error in reading problem\n");&lt;BR /&gt;     exit (1);&lt;BR /&gt;   }&lt;BR /&gt;        exit (0);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt; It is prompting for /dev/tty. But there is &lt;ENTER&gt; needed to stop the program.&lt;BR /&gt;&lt;BR /&gt; Use debugger and Check this on both machines. &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Muthukumar.&lt;/ENTER&gt;&lt;/UNISTD.H&gt;</description>
    <pubDate>Thu, 08 Jul 2004 00:05:33 GMT</pubDate>
    <dc:creator>Muthukumar_5</dc:creator>
    <dc:date>2004-07-08T00:05:33Z</dc:date>
    <item>
      <title>/dev/tty and getpass()</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dev-tty-and-getpass/m-p/3325943#M188254</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I have a C program that calls getpass() on a HP-UX 11.0 system. However getpass fails because it has a problem reading /dev/tty. However my permissions on /dev/tty are as follows:&lt;BR /&gt;&lt;BR /&gt;crw-rw-rw-   1 bin        bin        207 0x000000 Jul  1 13:28 /dev/tty&lt;BR /&gt;&lt;BR /&gt;The program works on another HP-UX 11 box with the same permissions as the above.&lt;BR /&gt;&lt;BR /&gt;Any help would be much appreciated ?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;JUP</description>
      <pubDate>Wed, 07 Jul 2004 22:58:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dev-tty-and-getpass/m-p/3325943#M188254</guid>
      <dc:creator>JUP</dc:creator>
      <dc:date>2004-07-07T22:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: /dev/tty and getpass()</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dev-tty-and-getpass/m-p/3325944#M188255</link>
      <description>Hai,&lt;BR /&gt;&lt;BR /&gt; Did you try it with a simple program to check the getpass() call.&lt;BR /&gt;&lt;BR /&gt; I have tried it on 11.23 as,&lt;BR /&gt;&lt;BR /&gt; /* test.c */&lt;BR /&gt; #include &lt;UNISTD.H&gt;&lt;BR /&gt; main() {&lt;BR /&gt;   const char *prompt="/dev/tty";&lt;BR /&gt;   if ( getpass(prompt) == NULL ) {&lt;BR /&gt;     printf ("Error in reading problem\n");&lt;BR /&gt;     exit (1);&lt;BR /&gt;   }&lt;BR /&gt;        exit (0);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt; It is prompting for /dev/tty. But there is &lt;ENTER&gt; needed to stop the program.&lt;BR /&gt;&lt;BR /&gt; Use debugger and Check this on both machines. &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Muthukumar.&lt;/ENTER&gt;&lt;/UNISTD.H&gt;</description>
      <pubDate>Thu, 08 Jul 2004 00:05:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dev-tty-and-getpass/m-p/3325944#M188255</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-07-08T00:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: /dev/tty and getpass()</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dev-tty-and-getpass/m-p/3325945#M188256</link>
      <description>The getpass(0 routine fails. My guess is that /dev/tty has failed to open.&lt;BR /&gt;&lt;BR /&gt;How can I test ?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Jul 2004 01:05:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dev-tty-and-getpass/m-p/3325945#M188256</guid>
      <dc:creator>JUP</dc:creator>
      <dc:date>2004-07-08T01:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: /dev/tty and getpass()</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dev-tty-and-getpass/m-p/3325946#M188257</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Dealing with the tty is getpass job, I think you don't even need to identify the tty or even mention it.&lt;BR /&gt;&lt;BR /&gt;char *temp;&lt;BR /&gt;temp = (char *)getpass ("Password: ");&lt;BR /&gt;&lt;BR /&gt;How do you use getpass and what is the exact error message ?&lt;BR /&gt;&lt;BR /&gt;Nicolas&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Jul 2004 02:56:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dev-tty-and-getpass/m-p/3325946#M188257</guid>
      <dc:creator>Nicolas Dumeige</dc:creator>
      <dc:date>2004-07-08T02:56:59Z</dc:date>
    </item>
  </channel>
</rss>

