<?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: issues with usernames longer than 8 characters. in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/issues-with-usernames-longer-than-8-characters/m-p/4126030#M31276</link>
    <description>The PS_FORMAT should display correctly the usernames, it works for me. Probably, you need to increase the user:&lt;N&gt; value.&lt;BR /&gt;&lt;BR /&gt;With that format, long username should be displayed.&lt;/N&gt;</description>
    <pubDate>Tue, 08 Jan 2008 17:41:42 GMT</pubDate>
    <dc:creator>Ivan Ferreira</dc:creator>
    <dc:date>2008-01-08T17:41:42Z</dc:date>
    <item>
      <title>issues with usernames longer than 8 characters.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/issues-with-usernames-longer-than-8-characters/m-p/4126027#M31273</link>
      <description>Hi all,&lt;BR /&gt;I noticed that whenever there's a username longer than 8 characters, programs like `who`,`w`,`ps` have problems displaying it. In particular:&lt;BR /&gt;`w` and `who` display just the first 8 characters, while `ps` displays the uid for these users instead of their username.&lt;BR /&gt;&lt;BR /&gt;Does anyone know whether it's possible to overcome this limit?&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Tue, 08 Jan 2008 15:50:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/issues-with-usernames-longer-than-8-characters/m-p/4126027#M31273</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2008-01-08T15:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: issues with usernames longer than 8 characters.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/issues-with-usernames-longer-than-8-characters/m-p/4126028#M31274</link>
      <description>You can try setting this:&lt;BR /&gt;&lt;BR /&gt;PS_FORMAT="user:15,pid,%cpu,%mem,vsz,rss,tty,stat,start,time,command"&lt;BR /&gt;&lt;BR /&gt;Then run "ps ax"</description>
      <pubDate>Tue, 08 Jan 2008 16:02:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/issues-with-usernames-longer-than-8-characters/m-p/4126028#M31274</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2008-01-08T16:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: issues with usernames longer than 8 characters.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/issues-with-usernames-longer-than-8-characters/m-p/4126029#M31275</link>
      <description>Thanks,&lt;BR /&gt;But this doesn't help me. Whenever there's a long username - `ps` simply replaces it with the respective UID.&lt;BR /&gt;&lt;BR /&gt;Basically I have the workaround of executing `ps` with some options to get the UIDs of all users instead of their names and then to go over the list with some basic script to match the UID to the username, but I wonder if there's a solution for it.</description>
      <pubDate>Tue, 08 Jan 2008 16:17:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/issues-with-usernames-longer-than-8-characters/m-p/4126029#M31275</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2008-01-08T16:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: issues with usernames longer than 8 characters.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/issues-with-usernames-longer-than-8-characters/m-p/4126030#M31276</link>
      <description>The PS_FORMAT should display correctly the usernames, it works for me. Probably, you need to increase the user:&lt;N&gt; value.&lt;BR /&gt;&lt;BR /&gt;With that format, long username should be displayed.&lt;/N&gt;</description>
      <pubDate>Tue, 08 Jan 2008 17:41:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/issues-with-usernames-longer-than-8-characters/m-p/4126030#M31276</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2008-01-08T17:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: issues with usernames longer than 8 characters.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/issues-with-usernames-longer-than-8-characters/m-p/4126031#M31277</link>
      <description>If I use the exact commands as you gave me - I get only the following fields:&lt;BR /&gt;PID TTY      STAT   TIME COMMAND.&lt;BR /&gt;&lt;BR /&gt;Never the less, the command:&lt;BR /&gt;`ps axo user:15,cmd`&lt;BR /&gt;shows even the long usernames on my systems (rhel 4).&lt;BR /&gt;&lt;BR /&gt;Do you have any idea if there's something to do with the `w` command and the fact that it shows only 8 characters?  I use the output from `w` in scripts...&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Jan 2008 14:21:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/issues-with-usernames-longer-than-8-characters/m-p/4126031#M31277</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2008-01-09T14:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: issues with usernames longer than 8 characters.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/issues-with-usernames-longer-than-8-characters/m-p/4126032#M31278</link>
      <description>The format in the 'w' command is hardcoded to "%-9.8s".  You would need to edit the source and rebuild it to overcome the limit.&lt;BR /&gt;(Actually you could do a horrible hack to the binary.  But what kind of sick mind would even think of something like that. ;-)&lt;BR /&gt;&lt;BR /&gt;sed -e 's/9\.8/016/g' &amp;lt; /usr/bin/w &amp;gt; w&lt;BR /&gt;chmod +x w&lt;BR /&gt;./w&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Jan 2008 17:20:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/issues-with-usernames-longer-than-8-characters/m-p/4126032#M31278</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2008-01-09T17:20:15Z</dc:date>
    </item>
  </channel>
</rss>

