<?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: normal user core dumping after calling setresuid in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365956#M684544</link>
    <description>I'm getting the following error when I run this on 11iv2 machine..&lt;BR /&gt;&lt;BR /&gt;# echo dump_all/W 1| adb -o /stand/vmunix /dev/kmem&lt;BR /&gt;dump_all:       0                    =&lt;BR /&gt;adb: error: /dev/kmem: Bad file number.&lt;BR /&gt;</description>
    <pubDate>Thu, 26 Feb 2009 10:01:48 GMT</pubDate>
    <dc:creator>Aviansh</dc:creator>
    <dc:date>2009-02-26T10:01:48Z</dc:date>
    <item>
      <title>normal user core dumping after calling setresuid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365950#M684538</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Can anyone please tell me how to force child process to dump core.&lt;BR /&gt;I'm using setresuid inside the signal handler.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;-Avinash&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Feb 2009 09:01:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365950#M684538</guid>
      <dc:creator>Aviansh</dc:creator>
      <dc:date>2009-02-25T09:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: normal user core dumping after calling setresuid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365951#M684539</link>
      <description>do you mean that you have a process which has the setuid bit- we called that pink process-, and you want it to coredump?&lt;BR /&gt;&lt;BR /&gt;Once a process is pink, then it won't generate core even if the resuid is made to set it back to a normal user &lt;BR /&gt;&lt;BR /&gt;there are some way to generate it in that case,&lt;BR /&gt;removing that security.- the way to do it depends of hpux revision-&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Feb 2009 10:16:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365951#M684539</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2009-02-25T10:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: normal user core dumping after calling setresuid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365952#M684540</link>
      <description>&lt;P&gt;This looks like a continuation of your other thread. It is better to continue your related questions in the same thread.&lt;BR /&gt;&lt;A href="http://h30499.www3.hp.com/t5/Languages-and-Scripting/problem-with-setresuid-in-child-process-Pink-Process/td-p/4362801" target="_blank"&gt;http://h30499.www3.hp.com/t5/Languages-and-Scripting/problem-with-setresuid-in-child-process-Pink-Process/td-p/4362801&lt;/A&gt;﻿&lt;/P&gt;</description>
      <pubDate>Sun, 04 Sep 2011 05:15:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365952#M684540</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-09-04T05:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: normal user core dumping after calling setresuid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365953#M684541</link>
      <description>Hi  Laurent,&lt;BR /&gt;&lt;BR /&gt;Please describe in little more details..&lt;BR /&gt;&lt;BR /&gt;also how this is achieved on hp-ux different versions..&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;-Avinash</description>
      <pubDate>Thu, 26 Feb 2009 04:43:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365953#M684541</guid>
      <dc:creator>Aviansh</dc:creator>
      <dc:date>2009-02-26T04:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: normal user core dumping after calling setresuid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365954#M684542</link>
      <description>Hi Aviansh&lt;BR /&gt;&lt;BR /&gt;on 11.31 look at man coreadm&lt;BR /&gt;on 11.23&lt;BR /&gt;echo dump_all/W 1| adb -o /stand/vmunix /dev/kmem&lt;BR /&gt;on 11.11&lt;BR /&gt;echo dump_all/W 1| adb  /stand/vmunix /dev/kmem&lt;BR /&gt;&lt;BR /&gt;limit this to your debug session because it opens security holes on your system.</description>
      <pubDate>Thu, 26 Feb 2009 09:54:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365954#M684542</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2009-02-26T09:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: normal user core dumping after calling setresuid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365955#M684543</link>
      <description>to come back to normal behavior&lt;BR /&gt;- pink process don't generate core-&lt;BR /&gt;11.11&lt;BR /&gt;echo dump_all/W 0 | adb /stand/vmunix /dev/kmem&lt;BR /&gt;&lt;BR /&gt;11.23&lt;BR /&gt;echo dump_all/W 0 | adb -o /stand/vmunix /dev/kmem</description>
      <pubDate>Thu, 26 Feb 2009 09:56:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365955#M684543</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2009-02-26T09:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: normal user core dumping after calling setresuid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365956#M684544</link>
      <description>I'm getting the following error when I run this on 11iv2 machine..&lt;BR /&gt;&lt;BR /&gt;# echo dump_all/W 1| adb -o /stand/vmunix /dev/kmem&lt;BR /&gt;dump_all:       0                    =&lt;BR /&gt;adb: error: /dev/kmem: Bad file number.&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Feb 2009 10:01:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365956#M684544</guid>
      <dc:creator>Aviansh</dc:creator>
      <dc:date>2009-02-26T10:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: normal user core dumping after calling setresuid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365957#M684545</link>
      <description>sorry I should have executed &lt;BR /&gt;echo dump_all | adb -o /stand/vmunix /dev/kmem&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Feb 2009 10:07:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365957#M684545</guid>
      <dc:creator>Aviansh</dc:creator>
      <dc:date>2009-02-26T10:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: normal user core dumping after calling setresuid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365958#M684546</link>
      <description>I forgot -w&lt;BR /&gt;&lt;BR /&gt;it is &lt;BR /&gt;echo dump_all/W 1 | adb -o -w /stand/vmunix /dev/kmem&lt;BR /&gt;&lt;BR /&gt;and to revert back&lt;BR /&gt;echo dump_all/W 0|adb -o -w /stand/vmunix /dev/kmem&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Feb 2009 10:15:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365958#M684546</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2009-02-26T10:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: normal user core dumping after calling setresuid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365959#M684547</link>
      <description>I'll inform about this..&lt;BR /&gt;currently my build machine is down..!!!!!&lt;BR /&gt;&lt;BR /&gt;Thanks for your efforts&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Feb 2009 10:20:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365959#M684547</guid>
      <dc:creator>Aviansh</dc:creator>
      <dc:date>2009-02-26T10:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: normal user core dumping after calling setresuid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365960#M684548</link>
      <description>just a remark, this is to be done before the process core dump</description>
      <pubDate>Thu, 26 Feb 2009 10:23:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365960#M684548</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2009-02-26T10:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: normal user core dumping after calling setresuid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365961#M684549</link>
      <description>Thanks a lot laurent, it works..&lt;BR /&gt;&lt;BR /&gt;But this can only be used temporarily for the debugging purpose, as it breaches the unix security...&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Feb 2009 08:23:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365961#M684549</guid>
      <dc:creator>Aviansh</dc:creator>
      <dc:date>2009-02-27T08:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: normal user core dumping after calling setresuid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365962#M684550</link>
      <description>you can try to do it with a launcher which has the setuid bit&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;promoter.c&lt;BR /&gt;main()&lt;BR /&gt;{&lt;BR /&gt;   setreuid(0,0);&lt;BR /&gt;   execl("/mypath/commandtopromote","commandtopromore","param1",....,0);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;I am not sure that the commandtopromote will be pink too.&lt;BR /&gt;&lt;BR /&gt;or the other way if you need promotion just temporarily:&lt;BR /&gt;1 simple process with promotion to perform restricted ops.&lt;BR /&gt;1 process as normal user which makes the main operations&lt;BR /&gt;and the 2 processes talk using unix domain sockets, pipes, or other&lt;BR /&gt;&lt;BR /&gt;- or simply launching it if it is really occasionnally. - like grandpt() does for instance.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else if you are happy, don't forget points.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Feb 2009 10:06:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365962#M684550</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2009-02-27T10:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: normal user core dumping after calling setresuid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365963#M684551</link>
      <description>Hi Laurent,&lt;BR /&gt;&lt;BR /&gt;Can you please tell me how hp-ux login/shell does the same thing.&lt;BR /&gt;&lt;BR /&gt;Because the normal user sometimes are given root permission(like passwd file updation), yet they dump core..!!!&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;-Avinash&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Mar 2009 10:24:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365963#M684551</guid>
      <dc:creator>Aviansh</dc:creator>
      <dc:date>2009-03-03T10:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: normal user core dumping after calling setresuid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365964#M684552</link>
      <description>I mean to say..&lt;BR /&gt;&lt;BR /&gt;Normal users  can generate core from his login shell..&lt;BR /&gt;Then why not Pink Processes.?</description>
      <pubDate>Tue, 03 Mar 2009 10:26:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365964#M684552</guid>
      <dc:creator>Aviansh</dc:creator>
      <dc:date>2009-03-03T10:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: normal user core dumping after calling setresuid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365965#M684553</link>
      <description>Hi Avinash,&lt;BR /&gt;no, passwd, login generate a core dump only if they are started by root user.&lt;BR /&gt;&lt;BR /&gt;so a way to do it:&lt;BR /&gt;main(c,v)&lt;BR /&gt;int c;&lt;BR /&gt;char**v;&lt;BR /&gt;{&lt;BR /&gt;   if(getuid()!=0)&lt;BR /&gt;   {&lt;BR /&gt;       printf("need to recall");&lt;BR /&gt;       setreuid(0,0);&lt;BR /&gt;       execvp(v[0],v); /* restart the process as really root user */&lt;BR /&gt;   }&lt;BR /&gt;   printf ("%d\n",getuid());&lt;BR /&gt;   kill(getpid(),10);&lt;BR /&gt;   sleep(10);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;it will generate a core, but all the process is executed as root.&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Mar 2009 11:43:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365965#M684553</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2009-03-03T11:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: normal user core dumping after calling setresuid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365966#M684554</link>
      <description>or&lt;BR /&gt;main(c,v)&lt;BR /&gt;int c;&lt;BR /&gt;char**v;&lt;BR /&gt;{&lt;BR /&gt;   if(getuid()!=10)&lt;BR /&gt;   {&lt;BR /&gt;       printf("need to recall");&lt;BR /&gt;       setreuid(10,10);&lt;BR /&gt;       execvp("./r",v);&lt;BR /&gt;   }&lt;BR /&gt;   printf ("%d\n",getuid());&lt;BR /&gt;   kill(getpid(),10);&lt;BR /&gt;   sleep(10);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;cc k.c -o k&lt;BR /&gt;cp k r&lt;BR /&gt;chmod 6555 k&lt;BR /&gt;chmod 555 r&lt;BR /&gt;&lt;BR /&gt;./k  setuid to 10 10 then exec r which  is the same program but without setuid bit set.&lt;BR /&gt;so not pink</description>
      <pubDate>Tue, 03 Mar 2009 12:08:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365966#M684554</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2009-03-03T12:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: normal user core dumping after calling setresuid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365967#M684555</link>
      <description>my daemon is not having 6555 permission. It has 555 permissions.&lt;BR /&gt;&lt;BR /&gt;when we connect to this server(daemon) using non-root id it forks  a copy of itself to serve the request.&lt;BR /&gt;&lt;BR /&gt;we are using setresuid in our code and inside the signal handler.</description>
      <pubDate>Wed, 04 Mar 2009 06:57:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365967#M684555</guid>
      <dc:creator>Aviansh</dc:creator>
      <dc:date>2009-03-04T06:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: normal user core dumping after calling setresuid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365968#M684556</link>
      <description>Hi Laurent,&lt;BR /&gt;&lt;BR /&gt;I have some confusion over the concept of Pink process..&lt;BR /&gt;&lt;BR /&gt;a process is called a pink process when it becomes a privileged user or if it executes setresuid ..??&lt;BR /&gt;&lt;BR /&gt;Please clarify on this..&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;-Avinash</description>
      <pubDate>Thu, 05 Mar 2009 04:49:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365968#M684556</guid>
      <dc:creator>Aviansh</dc:creator>
      <dc:date>2009-03-05T04:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: normal user core dumping after calling setresuid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365969#M684557</link>
      <description>&amp;gt;I have some confusion over the concept of Pink process.&lt;BR /&gt;&lt;BR /&gt;Don explained what it (pinko) meant in your other thread.&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1315932#tdIdName5" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1315932#tdIdName5&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;(This is why you shouldn't have created another related thread.)</description>
      <pubDate>Thu, 05 Mar 2009 05:35:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/normal-user-core-dumping-after-calling-setresuid/m-p/4365969#M684557</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-03-05T05:35:41Z</dc:date>
    </item>
  </channel>
</rss>

