<?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: chown question in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/chown-question/m-p/5072137#M49040</link>
    <description>Hello Pattabhi,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; behavious only on Linux&lt;BR /&gt;&amp;gt;&amp;gt; but not on HPUX&lt;BR /&gt;&amp;gt;&amp;gt; have an idea what is happening here&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; [ssriniva@marple ~]$ chown praman1 aaa&lt;BR /&gt;&amp;gt;&amp;gt; chown: changing ownership of `aaa': Operation not permitted&lt;BR /&gt;&lt;BR /&gt;Try: [ssriniva@marple ~]$ chown ssriniva aaa&lt;BR /&gt;--&amp;gt; No Error&lt;BR /&gt;&lt;BR /&gt;For Linux, may require root to change file owner to other owner.&lt;BR /&gt;&lt;BR /&gt;You can try to install GNU core utilities in HP-UX OS &amp;amp; compare:&lt;BR /&gt;&lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Gnu/coreutils-6.9/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Gnu/coreutils-6.9/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;[HP-UX] $ /usr/local/coreutils/bin/chown praman1 aaa&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
    <pubDate>Wed, 03 Oct 2007 03:34:51 GMT</pubDate>
    <dc:creator>TY 007</dc:creator>
    <dc:date>2007-10-03T03:34:51Z</dc:date>
    <item>
      <title>chown question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/chown-question/m-p/5072136#M49039</link>
      <description>Gurus,&lt;BR /&gt;&lt;BR /&gt;I am not able to change the ownership of a file that is owned by me to a different id. I go to /tmp create a file and then try to change the ownership by "chown" command and it says operation not permitted/not owner.&lt;BR /&gt;&lt;BR /&gt;I see thi speculiar behavious only on Linux and Solaris but not on HPUX. ould nay one have an idea what is happening here?&lt;BR /&gt;&lt;BR /&gt;Below exampe might give you a good idea&lt;BR /&gt;&lt;BR /&gt;[ssriniva@marple ~]$ pwd&lt;BR /&gt;/home/ssriniva&lt;BR /&gt;[ssriniva@marple ~]$ id&lt;BR /&gt;uid=1807(ssriniva) gid=500(support) groups=500(support)&lt;BR /&gt;[ssriniva@marple ~]$ touch aaa&lt;BR /&gt;[ssriniva@marple ~]$ ls -ld aaa&lt;BR /&gt;-rw-r--r--  1 ssriniva support 0 Oct  3  2007 aaa&lt;BR /&gt;[ssriniva@marple ~]$ chown praman1 aaa&lt;BR /&gt;chown: changing ownership of `aaa': Operation not permitted&lt;BR /&gt;[ssriniva@marple ~]$&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Oct 2007 02:41:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/chown-question/m-p/5072136#M49039</guid>
      <dc:creator>Pattabhi</dc:creator>
      <dc:date>2007-10-03T02:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: chown question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/chown-question/m-p/5072137#M49040</link>
      <description>Hello Pattabhi,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; behavious only on Linux&lt;BR /&gt;&amp;gt;&amp;gt; but not on HPUX&lt;BR /&gt;&amp;gt;&amp;gt; have an idea what is happening here&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; [ssriniva@marple ~]$ chown praman1 aaa&lt;BR /&gt;&amp;gt;&amp;gt; chown: changing ownership of `aaa': Operation not permitted&lt;BR /&gt;&lt;BR /&gt;Try: [ssriniva@marple ~]$ chown ssriniva aaa&lt;BR /&gt;--&amp;gt; No Error&lt;BR /&gt;&lt;BR /&gt;For Linux, may require root to change file owner to other owner.&lt;BR /&gt;&lt;BR /&gt;You can try to install GNU core utilities in HP-UX OS &amp;amp; compare:&lt;BR /&gt;&lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Gnu/coreutils-6.9/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Gnu/coreutils-6.9/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;[HP-UX] $ /usr/local/coreutils/bin/chown praman1 aaa&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 03 Oct 2007 03:34:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/chown-question/m-p/5072137#M49040</guid>
      <dc:creator>TY 007</dc:creator>
      <dc:date>2007-10-03T03:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: chown question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/chown-question/m-p/5072138#M49041</link>
      <description>It works with core utils&lt;BR /&gt;&lt;BR /&gt;[56] % cd /tmp&lt;BR /&gt;[57] % ls -ld a&lt;BR /&gt;-rw-r-----   1 praman1    support          0 Oct  3 13:01 a&lt;BR /&gt;[58] % id&lt;BR /&gt;uid=1500(praman1) gid=500(support)&lt;BR /&gt;[59] % /usr/local/coreutils/bin/chown reproadm a&lt;BR /&gt;[60] % ls -ld a&lt;BR /&gt;-rw-r-----   1 reproadm   support          0 Oct  3 13:01 a&lt;BR /&gt;[61] %&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;and even chown ssriniva aaa also works</description>
      <pubDate>Wed, 03 Oct 2007 04:13:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/chown-question/m-p/5072138#M49041</guid>
      <dc:creator>Pattabhi</dc:creator>
      <dc:date>2007-10-03T04:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: chown question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/chown-question/m-p/5072139#M49042</link>
      <description>I have seen this behaviour on Linux,Solaris and AIX but on HPUX it works fine..</description>
      <pubDate>Wed, 03 Oct 2007 04:29:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/chown-question/m-p/5072139#M49042</guid>
      <dc:creator>Pattabhi</dc:creator>
      <dc:date>2007-10-03T04:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: chown question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/chown-question/m-p/5072140#M49043</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;[root@marple ~]# chmod 4755 /bin/chown&lt;BR /&gt;&lt;BR /&gt;[sriniva@marple ~]$ chown praman1 aaa&lt;BR /&gt;&lt;BR /&gt;Possible the earlier result is expected as per design? &lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 03 Oct 2007 04:38:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/chown-question/m-p/5072140#M49043</guid>
      <dc:creator>TY 007</dc:creator>
      <dc:date>2007-10-03T04:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: chown question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/chown-question/m-p/5072141#M49044</link>
      <description>Thanks Mate... So i can infer that it is as per design in Linux,Solaris and AIX and if you have to make it work u need to set the "set-uid" option.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;REgards,&lt;BR /&gt;Pattabhi Raman</description>
      <pubDate>Wed, 03 Oct 2007 05:05:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/chown-question/m-p/5072141#M49044</guid>
      <dc:creator>Pattabhi</dc:creator>
      <dc:date>2007-10-03T05:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: chown question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/chown-question/m-p/5072142#M49045</link>
      <description>I'd be very careful with that last suggestion. That will allow anyone on the system to chown any file.&lt;BR /&gt;&lt;BR /&gt;The behaviour that you're seeing is by design on Linux/Solaris/AIX - allowing file giveaways is a bad thing. &lt;BR /&gt;&lt;BR /&gt;On HP-UX it is enabled by default. Have a look at getprivgrp/setprivgrp&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Philip.</description>
      <pubDate>Wed, 03 Oct 2007 22:55:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/chown-question/m-p/5072142#M49045</guid>
      <dc:creator>Philip Gunter</dc:creator>
      <dc:date>2007-10-03T22:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: chown question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/chown-question/m-p/5072143#M49046</link>
      <description>Thanks for the pointers mate.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Pattabhi RAman</description>
      <pubDate>Thu, 04 Oct 2007 00:46:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/chown-question/m-p/5072143#M49046</guid>
      <dc:creator>Pattabhi</dc:creator>
      <dc:date>2007-10-04T00:46:27Z</dc:date>
    </item>
  </channel>
</rss>

