<?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 user login error in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/user-login-error/m-p/2827468#M87989</link>
    <description>Today,where user login,found the error message as follows:&lt;BR /&gt; Terminal type set to vt100&lt;BR /&gt;&lt;BR /&gt;############ ERRORS FOUND AT BOOT ############&lt;BR /&gt;process process not attached to terminal&lt;BR /&gt;Usage:  who [-rbtpludAasHTqRm] [am i] [utmp_like_file]&lt;BR /&gt;&lt;BR /&gt;r       run level&lt;BR /&gt;b       boot time&lt;BR /&gt;t       time changes&lt;BR /&gt;p       processes other than getty or users&lt;BR /&gt;l       login processes&lt;BR /&gt;u       useful information&lt;BR /&gt;d       dead processes&lt;BR /&gt;A       accounting information&lt;BR /&gt;a       all (rbtpludA options)&lt;BR /&gt;s       short form of who (no time since last output or pid)&lt;BR /&gt;H       print header&lt;BR /&gt;T       status of tty (+ writable, - not writable, x exclusive open, ? hung)&lt;BR /&gt;q       quick who&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;why?</description>
    <pubDate>Wed, 16 Oct 2002 23:33:21 GMT</pubDate>
    <dc:creator>David Shao</dc:creator>
    <dc:date>2002-10-16T23:33:21Z</dc:date>
    <item>
      <title>user login error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-login-error/m-p/2827468#M87989</link>
      <description>Today,where user login,found the error message as follows:&lt;BR /&gt; Terminal type set to vt100&lt;BR /&gt;&lt;BR /&gt;############ ERRORS FOUND AT BOOT ############&lt;BR /&gt;process process not attached to terminal&lt;BR /&gt;Usage:  who [-rbtpludAasHTqRm] [am i] [utmp_like_file]&lt;BR /&gt;&lt;BR /&gt;r       run level&lt;BR /&gt;b       boot time&lt;BR /&gt;t       time changes&lt;BR /&gt;p       processes other than getty or users&lt;BR /&gt;l       login processes&lt;BR /&gt;u       useful information&lt;BR /&gt;d       dead processes&lt;BR /&gt;A       accounting information&lt;BR /&gt;a       all (rbtpludA options)&lt;BR /&gt;s       short form of who (no time since last output or pid)&lt;BR /&gt;H       print header&lt;BR /&gt;T       status of tty (+ writable, - not writable, x exclusive open, ? hung)&lt;BR /&gt;q       quick who&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;why?</description>
      <pubDate>Wed, 16 Oct 2002 23:33:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-login-error/m-p/2827468#M87989</guid>
      <dc:creator>David Shao</dc:creator>
      <dc:date>2002-10-16T23:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: user login error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-login-error/m-p/2827469#M87990</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am not sure why this message was displayed. It is actually the output of when you use 'who -h'. The error is likely to come from one of two places. The first is from /etc/inittab where it is trying to start some process. The other is from /sbin/init.d from one of the run-levels. You may post a copy of the '/etc/rc.log' file. Were there any new entries added to /sbin/init.d, /sbin/rc?.d ?&lt;BR /&gt;&lt;BR /&gt;Michael</description>
      <pubDate>Thu, 17 Oct 2002 00:13:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-login-error/m-p/2827469#M87990</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-10-17T00:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: user login error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-login-error/m-p/2827470#M87991</link>
      <description>*************************************************&lt;BR /&gt;Cron: The previous message is the standard output&lt;BR /&gt;      and standard error of one of your crontab commands:&lt;BR /&gt;&lt;BR /&gt;su - tmosadm -cf 'source .login; /opt/tmos/bin/PMA_StartCleanUp' &amp;gt; /dev/null&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Oct 2002 00:21:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-login-error/m-p/2827470#M87991</guid>
      <dc:creator>David Shao</dc:creator>
      <dc:date>2002-10-17T00:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: user login error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-login-error/m-p/2827471#M87992</link>
      <description>I posted the rc.log.&lt;BR /&gt;When I telnet and login,display the error message.&lt;BR /&gt;I also found the same error message in root mail.&lt;BR /&gt;Message 260/267 from root                              Oct 16 '2002 at 8:16 pm&lt;BR /&gt;&lt;BR /&gt;Date: Thu, 17 Oct 2002 08:16:28 +0800 (EAT)&lt;BR /&gt;Subject: cron&lt;BR /&gt;Status: RO&lt;BR /&gt;&lt;BR /&gt;process not attached to terminal&lt;BR /&gt;Usage:  who [-rbtpludAasHTqRm] [am i] [utmp_like_file]&lt;BR /&gt;&lt;BR /&gt;r       run level&lt;BR /&gt;b       boot time&lt;BR /&gt;t       time changes&lt;BR /&gt;p       processes other than getty or users&lt;BR /&gt;l       login processes&lt;BR /&gt;u       useful information&lt;BR /&gt;d       dead processes&lt;BR /&gt;A       accounting information&lt;BR /&gt;a       all (rbtpludA options)&lt;BR /&gt;s       short form of who (no time since last output or pid)&lt;BR /&gt;H       print header&lt;BR /&gt;T       status of tty (+ writable, - not writable, x exclusive open, ? hung)&lt;BR /&gt;q       quick who&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Oct 2002 00:22:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-login-error/m-p/2827471#M87992</guid>
      <dc:creator>David Shao</dc:creator>
      <dc:date>2002-10-17T00:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: user login error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-login-error/m-p/2827472#M87993</link>
      <description>&lt;BR /&gt;I posted the rc.log. &lt;BR /&gt;When I telnet and login,display the error message. &lt;BR /&gt;I also found the same error message in root mail. &lt;BR /&gt;Message 260/267 from root Oct 16 '2002 at 8:16 pm &lt;BR /&gt;&lt;BR /&gt;Date: Thu, 17 Oct 2002 08:16:28 +0800 (EAT) &lt;BR /&gt;Subject: cron &lt;BR /&gt;Status: RO &lt;BR /&gt;&lt;BR /&gt;process not attached to terminal &lt;BR /&gt;Usage: who [-rbtpludAasHTqRm] [am i] [utmp_like_file] &lt;BR /&gt;&lt;BR /&gt;r run level &lt;BR /&gt;b boot time &lt;BR /&gt;t time changes &lt;BR /&gt;p processes other than getty or users &lt;BR /&gt;l login processes &lt;BR /&gt;u useful information &lt;BR /&gt;d dead processes &lt;BR /&gt;A accounting information &lt;BR /&gt;a all (rbtpludA options) &lt;BR /&gt;s short form of who (no time since last output or pid) &lt;BR /&gt;H print header &lt;BR /&gt;T status of tty (+ writable, - not writable, x exclusive open, ? hung) &lt;BR /&gt;q quick who &lt;BR /&gt; &lt;BR /&gt;************************************************* &lt;BR /&gt;Cron: The previous message is the standard output &lt;BR /&gt;and standard error of one of your crontab commands: &lt;BR /&gt;&lt;BR /&gt;su - tmosadm -cf 'source .login; /opt/tmos/bin/PMA_StartCleanUp' &amp;gt; /dev/null &lt;BR /&gt;</description>
      <pubDate>Thu, 17 Oct 2002 00:34:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-login-error/m-p/2827472#M87993</guid>
      <dc:creator>David Shao</dc:creator>
      <dc:date>2002-10-17T00:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: user login error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-login-error/m-p/2827473#M87994</link>
      <description>&lt;BR /&gt;What does the -cf option do on su??&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Thu, 17 Oct 2002 00:43:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-login-error/m-p/2827473#M87994</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-10-17T00:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: user login error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-login-error/m-p/2827474#M87995</link>
      <description>I don't know what's the option mean.</description>
      <pubDate>Thu, 17 Oct 2002 01:05:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-login-error/m-p/2827474#M87995</guid>
      <dc:creator>David Shao</dc:creator>
      <dc:date>2002-10-17T01:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: user login error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-login-error/m-p/2827475#M87996</link>
      <description>I would like to check your /etc/profile or .profile&lt;BR /&gt;or any initialization files for the user.&lt;BR /&gt;&lt;BR /&gt;I suspect somewhere it has a &lt;BR /&gt;who am i -u &lt;BR /&gt;&lt;BR /&gt;which is looking out for the terminal process and is unable to catch it out.&lt;BR /&gt;&lt;BR /&gt;Please revert.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 17 Oct 2002 04:20:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-login-error/m-p/2827475#M87996</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2002-10-17T04:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: user login error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-login-error/m-p/2827476#M87997</link>
      <description>I found in csh login file the following line produce the error message:&lt;BR /&gt;&lt;BR /&gt;#Display errors from boot&lt;BR /&gt;tmos_rc_display&lt;BR /&gt;&lt;BR /&gt;I don't know what the 'tmos_rc_display' mean.&lt;BR /&gt;May be a application. I'll ask someone who is familar with the applications in my system.&lt;BR /&gt;&lt;BR /&gt;I suspect that someone invaded my system and changed the .login file, because I didn't found this error message yesterday.&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Oct 2002 04:29:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-login-error/m-p/2827476#M87997</guid>
      <dc:creator>David Shao</dc:creator>
      <dc:date>2002-10-17T04:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: user login error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-login-error/m-p/2827477#M87998</link>
      <description>I found in csh login file the following line produce the error message:&lt;BR /&gt;&lt;BR /&gt;#Display errors from boot&lt;BR /&gt;tmos_rc_display&lt;BR /&gt;&lt;BR /&gt;I don't know what the 'tmos_rc_display' mean.&lt;BR /&gt;May be a application. I'll ask someone who is familar with the applications in my system.&lt;BR /&gt;&lt;BR /&gt;I suspect that someone invaded my system and changed the .login file, because I didn't found this error message yesterday.&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Oct 2002 04:35:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-login-error/m-p/2827477#M87998</guid>
      <dc:creator>David Shao</dc:creator>
      <dc:date>2002-10-17T04:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: user login error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-login-error/m-p/2827478#M87999</link>
      <description>Cron: The previous message is the standard output &lt;BR /&gt;and standard error of one of your crontab commands: &lt;BR /&gt;&lt;BR /&gt;su - tmosadm -cf 'source .login; /opt/tmos/bin/PMA_StartCleanUp' &amp;gt; /dev/null &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The process tries opening the /dev/tty&lt;BR /&gt;be sure your process has stdout, stderr, and stdin all redirected somewhere.&lt;BR /&gt;&lt;BR /&gt;check it up.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Oct 2002 04:40:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-login-error/m-p/2827478#M87999</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2002-10-17T04:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: user login error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-login-error/m-p/2827479#M88000</link>
      <description>sorry.how to check.&lt;BR /&gt;Now, my stdout and stderr are all screen.</description>
      <pubDate>Thu, 17 Oct 2002 05:14:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-login-error/m-p/2827479#M88000</guid>
      <dc:creator>David Shao</dc:creator>
      <dc:date>2002-10-17T05:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: user login error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-login-error/m-p/2827480#M88001</link>
      <description>Hi all.  I'm getting the same problem by my cause is likely related to running whoami to get the current owner of the script.&lt;BR /&gt;&lt;BR /&gt;Is there another way to catch the owner of the running background process without running whoami.  I would really like to get rid of the error message when running my background scripts.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I need to know the owner of the process running the script in order to prevent unauthorized users from running the script.&lt;BR /&gt;&lt;BR /&gt;Any other ideas?</description>
      <pubDate>Fri, 31 Oct 2003 16:04:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-login-error/m-p/2827480#M88001</guid>
      <dc:creator>Jack C. Mahaffey</dc:creator>
      <dc:date>2003-10-31T16:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: user login error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-login-error/m-p/2827481#M88002</link>
      <description>Jack... we use   `id -u`  to check the user running the script.&lt;BR /&gt;&lt;BR /&gt;Something like this works fine:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;if [ ! `id -u` = 123 ]&lt;BR /&gt;  then&lt;BR /&gt;   USER=`id -un`&lt;BR /&gt;    echo "Run permission denied for user " ${USER}&lt;BR /&gt;    exit 1&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;(Where 123 is the "correct" userid)&lt;BR /&gt;&lt;BR /&gt;Afraid that doesn't help our original poster, however.&lt;BR /&gt;</description>
      <pubDate>Fri, 31 Oct 2003 16:29:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-login-error/m-p/2827481#M88002</guid>
      <dc:creator>Chris Watkins_1</dc:creator>
      <dc:date>2003-10-31T16:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: user login error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-login-error/m-p/2827482#M88003</link>
      <description>Chris, thanks.  Using the id approach will work.  I just posted a different post on the question.&lt;BR /&gt;&lt;BR /&gt;Thanks a bunch.  Using the id approach will work.  I'll add some more code to acess the /etc/password file with a login to get the expected UID first and then compare the output from id -u.&lt;BR /&gt;&lt;BR /&gt;I'm thinking something like the following:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;login=root&lt;BR /&gt;&lt;BR /&gt;passwdID=`grep "^${login}:"  | awk -F: ' { print $3 } '`&lt;BR /&gt;idID=`id -u`&lt;BR /&gt;&lt;BR /&gt;if  [ $passwdID -eq $idID ] ; then&lt;BR /&gt;    echo "Allowed..."&lt;BR /&gt;else&lt;BR /&gt;    echo "Not Allowed " &lt;BR /&gt;fi&lt;BR /&gt;</description>
      <pubDate>Fri, 31 Oct 2003 17:55:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-login-error/m-p/2827482#M88003</guid>
      <dc:creator>Jack C. Mahaffey</dc:creator>
      <dc:date>2003-10-31T17:55:33Z</dc:date>
    </item>
  </channel>
</rss>

