<?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: Is there a version of chown for Linux for non-root users? in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/is-there-a-version-of-chown-for-linux-for-non-root-users/m-p/5224228#M60389</link>
    <description>Heh this brings back memories of how we used this anomaly in 'chown' on HP-UX to get arround quota ...&lt;BR /&gt;&lt;BR /&gt;Goran</description>
    <pubDate>Wed, 10 Feb 2010 06:21:59 GMT</pubDate>
    <dc:creator>Goran Koruga</dc:creator>
    <dc:date>2010-02-10T06:21:59Z</dc:date>
    <item>
      <title>Is there a version of chown for Linux for non-root users?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/is-there-a-version-of-chown-for-linux-for-non-root-users/m-p/5224220#M60381</link>
      <description>Does any one know of a version of chown for RHEL4 which works the same way as chown on HP-UX? i.e. a version which allows a non-root user to give away ownership.&lt;BR /&gt;&lt;BR /&gt;I know all the business about well-designed use of groups etc, etc, but we have over 15 years of HP-UX legacy set-up to overlay on to new Linux systems and this would be a lot less aggro than me as the root user having to modify all the current ownerships and permissions.</description>
      <pubDate>Tue, 09 Feb 2010 11:38:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/is-there-a-version-of-chown-for-linux-for-non-root-users/m-p/5224220#M60381</guid>
      <dc:creator>Sharon Prothero</dc:creator>
      <dc:date>2010-02-09T11:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a version of chown for Linux for non-root users?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/is-there-a-version-of-chown-for-linux-for-non-root-users/m-p/5224221#M60382</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;One version of chown&lt;BR /&gt;&lt;BR /&gt;It works for all users.&lt;BR /&gt;&lt;BR /&gt;Regular users can not execute chown on things they do not own. That is the way unix permissions work.&lt;BR /&gt;&lt;BR /&gt;The command doesn't work any differently on HP-UX.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 09 Feb 2010 13:21:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/is-there-a-version-of-chown-for-linux-for-non-root-users/m-p/5224221#M60382</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2010-02-09T13:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a version of chown for Linux for non-root users?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/is-there-a-version-of-chown-for-linux-for-non-root-users/m-p/5224222#M60383</link>
      <description>Linux won't allow you to chown a file, you do can chgrp a file if you are member of the new group.&lt;BR /&gt;&lt;BR /&gt;This avoid security problems that could be caused by using the chown command, for example, creating a SUID program with a regular user and chown to root is a great security risk.&lt;BR /&gt;&lt;BR /&gt;I think it's time to change your security model.</description>
      <pubDate>Tue, 09 Feb 2010 13:52:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/is-there-a-version-of-chown-for-linux-for-non-root-users/m-p/5224222#M60383</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2010-02-09T13:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a version of chown for Linux for non-root users?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/is-there-a-version-of-chown-for-linux-for-non-root-users/m-p/5224223#M60384</link>
      <description>I ran into this problem on SLES as well.&lt;BR /&gt;&lt;BR /&gt;What I finally did to work around it was to change the permissions on /bin/chown so that the setuid is set.&lt;BR /&gt;&lt;BR /&gt;My chown now looks like:&lt;BR /&gt;&lt;BR /&gt;-rwsr-xr-x 1 root root 43472 May  3  2007 /bin/chown*&lt;BR /&gt;&lt;BR /&gt;The normal chown permssions are:&lt;BR /&gt;&lt;BR /&gt;-rwxr-xr-x 1 root root 43472 May  3  2007 /bin/chown*&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I am also perfectly aware that this is a security hole.  At this point in time, with the limited user access on this one system, I can live with it.</description>
      <pubDate>Tue, 09 Feb 2010 15:16:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/is-there-a-version-of-chown-for-linux-for-non-root-users/m-p/5224223#M60384</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2010-02-09T15:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a version of chown for Linux for non-root users?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/is-there-a-version-of-chown-for-linux-for-non-root-users/m-p/5224224#M60385</link>
      <description>SEP,&lt;BR /&gt;The command is different between HP-UX and RHEL - a non-root RHEL user cannot change ownership of files they own; transcripts below.&lt;BR /&gt;&lt;BR /&gt;$ uname &lt;BR /&gt;Linux&lt;BR /&gt;$ who am i&lt;BR /&gt;13784sp  pts/3        Feb  9 10:50 (greebo)&lt;BR /&gt;$ ll&lt;BR /&gt;total 0&lt;BR /&gt;-rw-r--r--  1 13784sp logica 0 Feb  9 15:05 blahh&lt;BR /&gt;$ chown root blahh&lt;BR /&gt;chown: changing ownership of `blahh': Operation not permitted&lt;BR /&gt;&lt;BR /&gt;--------------------------------------------&lt;BR /&gt;&lt;BR /&gt;$ uname&lt;BR /&gt;HP-UX&lt;BR /&gt;$ who am i&lt;BR /&gt;13784sp    pts/tb       Feb  9 15:02&lt;BR /&gt;$ ll&lt;BR /&gt;total 0&lt;BR /&gt;-rw-rw-rw-   1 13784sp    logica           0 Feb  9 15:02 blahh&lt;BR /&gt;$  chown root blahh&lt;BR /&gt;$ ll&lt;BR /&gt;total 0&lt;BR /&gt;-rw-rw-rw-   1 root       logica           0 Feb  9 15:02 blahh&lt;BR /&gt;$ &lt;BR /&gt;&lt;BR /&gt;I suppose I could just nfs mount everything from the Linux boxes and let the users change the permissions on a remaining HP-UX system. Or they can copy them to their PC as the account which owns the file and then copy back using the intended destination account. &lt;BR /&gt;&lt;BR /&gt;Looks like I'll spend the next fortnight changing permissions and ownerships.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Feb 2010 15:17:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/is-there-a-version-of-chown-for-linux-for-non-root-users/m-p/5224224#M60385</guid>
      <dc:creator>Sharon Prothero</dc:creator>
      <dc:date>2010-02-09T15:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a version of chown for Linux for non-root users?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/is-there-a-version-of-chown-for-linux-for-non-root-users/m-p/5224225#M60386</link>
      <description>Thanks, Patrick. That at least gives me a work around if/when I need it. Some of our other settings may not meet security best practice, so we can probably live with one more occasionally.</description>
      <pubDate>Tue, 09 Feb 2010 15:24:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/is-there-a-version-of-chown-for-linux-for-non-root-users/m-p/5224225#M60386</guid>
      <dc:creator>Sharon Prothero</dc:creator>
      <dc:date>2010-02-09T15:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a version of chown for Linux for non-root users?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/is-there-a-version-of-chown-for-linux-for-non-root-users/m-p/5224226#M60387</link>
      <description>chmod +s chown</description>
      <pubDate>Tue, 09 Feb 2010 15:26:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/is-there-a-version-of-chown-for-linux-for-non-root-users/m-p/5224226#M60387</guid>
      <dc:creator>Sharon Prothero</dc:creator>
      <dc:date>2010-02-09T15:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a version of chown for Linux for non-root users?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/is-there-a-version-of-chown-for-linux-for-non-root-users/m-p/5224227#M60388</link>
      <description>In this case, you should at least create a script the wraps the chown command to ensure that the calling user is owner of the file to change.</description>
      <pubDate>Tue, 09 Feb 2010 18:55:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/is-there-a-version-of-chown-for-linux-for-non-root-users/m-p/5224227#M60388</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2010-02-09T18:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a version of chown for Linux for non-root users?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/is-there-a-version-of-chown-for-linux-for-non-root-users/m-p/5224228#M60389</link>
      <description>Heh this brings back memories of how we used this anomaly in 'chown' on HP-UX to get arround quota ...&lt;BR /&gt;&lt;BR /&gt;Goran</description>
      <pubDate>Wed, 10 Feb 2010 06:21:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/is-there-a-version-of-chown-for-linux-for-non-root-users/m-p/5224228#M60389</guid>
      <dc:creator>Goran Koruga</dc:creator>
      <dc:date>2010-02-10T06:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a version of chown for Linux for non-root users?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/is-there-a-version-of-chown-for-linux-for-non-root-users/m-p/5224229#M60390</link>
      <description>Thanks for the pointer about wrapping chown in a script. Looks like we're making RHEL chown work like HP-UX chown at last.</description>
      <pubDate>Wed, 10 Feb 2010 10:30:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/is-there-a-version-of-chown-for-linux-for-non-root-users/m-p/5224229#M60390</guid>
      <dc:creator>Sharon Prothero</dc:creator>
      <dc:date>2010-02-10T10:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a version of chown for Linux for non-root users?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/is-there-a-version-of-chown-for-linux-for-non-root-users/m-p/5224230#M60391</link>
      <description>&amp;gt;The command is different between HP-UX and RHEL&lt;BR /&gt;&lt;BR /&gt;On HP-UX, you can configure chown to work either way, on Linux it appears you can't.</description>
      <pubDate>Sun, 14 Feb 2010 09:06:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/is-there-a-version-of-chown-for-linux-for-non-root-users/m-p/5224230#M60391</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-02-14T09:06:20Z</dc:date>
    </item>
  </channel>
</rss>

