<?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: Odd /dev files and /dev files owned by users in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/odd-dev-files-and-dev-files-owned-by-users/m-p/3295283#M182889</link>
    <description>Chris and Rita --&lt;BR /&gt;&lt;BR /&gt;Thank you both for weighing in on my submission.&lt;BR /&gt;&lt;BR /&gt;I suspect you are both right -- the admin tells me his users tend to drop their GUI while logged into the application rather than exiting the app in the proper manner. A little instruction to the users would probably alleviate the problem, but I don't have much hope that it would do much good.&lt;BR /&gt;&lt;BR /&gt;I will direct the admin to look into possible utmp/wtmp corruption.&lt;BR /&gt;&lt;BR /&gt;Ted M.</description>
    <pubDate>Thu, 03 Jun 2004 11:27:46 GMT</pubDate>
    <dc:creator>TedM</dc:creator>
    <dc:date>2004-06-03T11:27:46Z</dc:date>
    <item>
      <title>Odd /dev files and /dev files owned by users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/odd-dev-files-and-dev-files-owned-by-users/m-p/3295280#M182886</link>
      <description>The system in question is an HP9000 (K-420) running HP-UX 10.20. It runs an application I don't normally support, but the admin in charge of it asked me for help because I have some experience in HP-UX admin.&lt;BR /&gt;&lt;BR /&gt;He called because he said he has to reboot his system every two to three weeks to clear 'hung logins'. Prior to his last reboot, I did a 'who -u' and saw several login entries with odd line names (instead of ttyp4, for example, the line name contained non-printing chars or extended-character set chars). After his reboot, I looked in /dev and found numerous ordinary files with names as I described. They simply contained the generic HP shutdown message, some from the last reboot, some from past reboots.&lt;BR /&gt;&lt;BR /&gt;I suggested a way the admin could safely remove the bogus /dev files without removing others that really should be there. He did a good job of it, and the problem has not recurred since his last reboot (over two weeks ago). I'm assuming it wouldn't hurt to also do a cleanup of /etc/utmp and /var/adm/wtmp using the fwtmp utility, but still have a nagging feeling I haven't gotten to the root cause.&lt;BR /&gt;&lt;BR /&gt;Besides the oddly-named /dev files, I did note one other strange thing whilst poking around in /dev. A range of /dev files (tty[pqr][0-f]) showed owner:group of users defined in the system rather than root:root or bin:tty. Everything else I saw in /dev had the ownership I expected to see.&lt;BR /&gt;&lt;BR /&gt;This is not a critical problem, but was wondering if anyone in the forum might have experienced the /dev anomalies I've described. Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;Ted M.</description>
      <pubDate>Thu, 03 Jun 2004 10:33:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/odd-dev-files-and-dev-files-owned-by-users/m-p/3295280#M182886</guid>
      <dc:creator>TedM</dc:creator>
      <dc:date>2004-06-03T10:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Odd /dev files and /dev files owned by users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/odd-dev-files-and-dev-files-owned-by-users/m-p/3295281#M182887</link>
      <description>Having device files with normal ID's as owners is correct.  Normally, these are located in /dev/pts, and show which ones are currently in use.&lt;BR /&gt;&lt;BR /&gt;for example, &lt;BR /&gt;&lt;BR /&gt;On one of my systems, currently the logged in users (from who) are;&lt;BR /&gt;&lt;BR /&gt;pg17142g   pts/0    May 17 10:29  old   12639&lt;BR /&gt;cw16791n   pts/1    Jun  3 16:43   .    21816&lt;BR /&gt;ukdpsd     pts/4    Jun  1 11:55  old   16357&lt;BR /&gt;ukdpsd     pts/7    Jun  3 09:12  7:13  27819&lt;BR /&gt;&lt;BR /&gt;if I then go to /dev/pts, and run &lt;BR /&gt;&lt;BR /&gt;ll | grep -v root&lt;BR /&gt;&lt;BR /&gt;I get&lt;BR /&gt;&lt;BR /&gt;total 0&lt;BR /&gt;crw--w---- 1 pg17142g tty 157 0x000000 Jun  2 13:18 0&lt;BR /&gt;crw--w---- 1 cw16791n tty 157 0x000001 Jun  3 16:43 1&lt;BR /&gt;crw--w---- 1 ukdpsd tty 157 0x000004 Jun  1 17:21 4&lt;BR /&gt;crw--w---- 1 ukdpsd tty 157 0x000007 Jun  3 09:29 7&lt;BR /&gt;&lt;BR /&gt;As you can see, the ID's and device files match between the two.&lt;BR /&gt;&lt;BR /&gt;It is possible that some files are left with incorrect owners (if for example a user crashes out of the system, rather than logging out cleanly)&lt;BR /&gt;&lt;BR /&gt;I've not seen a problem like the other one  you describe (extended character set), but I suspect that at some point this corruption has been entered into the utmp/wtmp files, and then the system broadcast on shutdown has created the files containing the shutdown message because it believes that it is writing to true device files.</description>
      <pubDate>Thu, 03 Jun 2004 10:50:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/odd-dev-files-and-dev-files-owned-by-users/m-p/3295281#M182887</guid>
      <dc:creator>Chris Wilshaw</dc:creator>
      <dc:date>2004-06-03T10:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Odd /dev files and /dev files owned by users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/odd-dev-files-and-dev-files-owned-by-users/m-p/3295282#M182888</link>
      <description>Usually I see bogus files in /dev when somebody tries to tar a file and their syntax is wrong.  So instead of going to the tape unit (or whatever) they wind up creating a bogus filename under /dev.&lt;BR /&gt;&lt;BR /&gt;It is possible that something like that is going on....who owned the 'funny file'? - since you mention they show user names attached..maybe some folks just need a little 'instructional assistance' on syntax.&lt;BR /&gt;&lt;BR /&gt;Just a thought,&lt;BR /&gt;Rita&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Jun 2004 11:03:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/odd-dev-files-and-dev-files-owned-by-users/m-p/3295282#M182888</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2004-06-03T11:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Odd /dev files and /dev files owned by users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/odd-dev-files-and-dev-files-owned-by-users/m-p/3295283#M182889</link>
      <description>Chris and Rita --&lt;BR /&gt;&lt;BR /&gt;Thank you both for weighing in on my submission.&lt;BR /&gt;&lt;BR /&gt;I suspect you are both right -- the admin tells me his users tend to drop their GUI while logged into the application rather than exiting the app in the proper manner. A little instruction to the users would probably alleviate the problem, but I don't have much hope that it would do much good.&lt;BR /&gt;&lt;BR /&gt;I will direct the admin to look into possible utmp/wtmp corruption.&lt;BR /&gt;&lt;BR /&gt;Ted M.</description>
      <pubDate>Thu, 03 Jun 2004 11:27:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/odd-dev-files-and-dev-files-owned-by-users/m-p/3295283#M182889</guid>
      <dc:creator>TedM</dc:creator>
      <dc:date>2004-06-03T11:27:46Z</dc:date>
    </item>
  </channel>
</rss>

