<?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: setgid command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/setgid-command/m-p/3830709#M271772</link>
    <description>Hi SHiv:&lt;BR /&gt;&lt;BR /&gt;Using the 'setgid' bit for *directories* has a useful side effect for files and directories created *within* the directory.&lt;BR /&gt;&lt;BR /&gt;The effect is that new files are created with their group ID set to that of the directory.  This applies for new directories, too.  The new sub directories will also have their setgid bit set on (at least on some Unixes).&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF... &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 26 Jul 2006 06:34:29 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2006-07-26T06:34:29Z</dc:date>
    <item>
      <title>setgid command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setgid-command/m-p/3830707#M271770</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Where do we use setgid for setting the permission ?&lt;BR /&gt;&lt;BR /&gt;Are there any programs and files we use this permission ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Shiv</description>
      <pubDate>Wed, 26 Jul 2006 01:21:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setgid-command/m-p/3830707#M271770</guid>
      <dc:creator>Shivkumar</dc:creator>
      <dc:date>2006-07-26T01:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: setgid command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setgid-command/m-p/3830708#M271771</link>
      <description>setuid or setgid may be required when we want users to execute a certain file with owner perms or group perms.&lt;BR /&gt;&lt;BR /&gt;Like passwd command. It has setuid set. Now owner of passwd file is root, but we all can execute it. It has setuid set, so anybody executing it will in turn cause it to run as root user(which is allowed to update passwd file)&lt;BR /&gt;&lt;BR /&gt;In same way setgid would allow a group os users to execute a  file as if they all are owner of that file.&lt;BR /&gt;&lt;BR /&gt;find . -perm -02000 -exec ll -d {} \;&lt;BR /&gt;will find files with setgid set.</description>
      <pubDate>Wed, 26 Jul 2006 01:41:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setgid-command/m-p/3830708#M271771</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2006-07-26T01:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: setgid command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setgid-command/m-p/3830709#M271772</link>
      <description>Hi SHiv:&lt;BR /&gt;&lt;BR /&gt;Using the 'setgid' bit for *directories* has a useful side effect for files and directories created *within* the directory.&lt;BR /&gt;&lt;BR /&gt;The effect is that new files are created with their group ID set to that of the directory.  This applies for new directories, too.  The new sub directories will also have their setgid bit set on (at least on some Unixes).&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF... &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Jul 2006 06:34:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setgid-command/m-p/3830709#M271772</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-07-26T06:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: setgid command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setgid-command/m-p/3830710#M271773</link>
      <description>Shivkumar,&lt;BR /&gt;&lt;BR /&gt;Also is you are planning to use setgid in binary files this small guide will help you out,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://neworder.box.sk/newsread.php?newsid=2380" target="_blank"&gt;http://neworder.box.sk/newsread.php?newsid=2380&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Jaime.</description>
      <pubDate>Wed, 26 Jul 2006 06:48:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setgid-command/m-p/3830710#M271773</guid>
      <dc:creator>Jaime Bolanos Rojas.</dc:creator>
      <dc:date>2006-07-26T06:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: setgid command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setgid-command/m-p/3830711#M271774</link>
      <description>Actually setgid() is used very, very often -- each time you login.</description>
      <pubDate>Wed, 26 Jul 2006 09:30:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setgid-command/m-p/3830711#M271774</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-07-26T09:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: setgid command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setgid-command/m-p/3830712#M271775</link>
      <description>Shiv,&lt;BR /&gt;&lt;BR /&gt;Here are some of the files on one of my 11.00 systems that are setguid:&lt;BR /&gt;&lt;BR /&gt;/usr/bin/mail&lt;BR /&gt;/usr/bin/X11/hpterm&lt;BR /&gt;/usr/bin/X11/xfs&lt;BR /&gt;/usr/bin/elm&lt;BR /&gt;/usr/bin/iostat&lt;BR /&gt;/usr/bin/ipcs&lt;BR /&gt;/usr/bin/kermit&lt;BR /&gt;/usr/bin/rmail&lt;BR /&gt;/usr/bin/netstat&lt;BR /&gt;/usr/bin/uptime&lt;BR /&gt;/usr/bin/stmkfont&lt;BR /&gt;/usr/bin/top&lt;BR /&gt;/usr/bin/w&lt;BR /&gt;/usr/bin/vmstat&lt;BR /&gt;/usr/bin/pipcs&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If you're interested exclusively in files  that are setguid, you can find them with:&lt;BR /&gt;&lt;BR /&gt;find / \( -perm -g+s -a ! -perm -u+s \) -print&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Wed, 26 Jul 2006 09:49:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setgid-command/m-p/3830712#M271775</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-07-26T09:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: setgid command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setgid-command/m-p/3830713#M271776</link>
      <description>setuid and setgid are mostly used to allow users on a computer system to execute binary executables with temporarily elevated privileges in order to perform a specific task.&lt;BR /&gt;Setuid and setgid are needed for tasks that require higher privileges than those which a common user has, such as changing his or her login password. Some of the tasks that require elevated privilege may not immediately be obvious, though -- such as the ping command, which must send and listen for control packets on a network interface.&lt;BR /&gt;&lt;BR /&gt;Setuid and setgid flags on a directory have an entirely different meaning. Directories with the setuid/setgid permission will force all files and sub-directories created in them to be owned by the directory owner/group and not the user/group of the user creating the file.&lt;BR /&gt;&lt;BR /&gt;further reference:&lt;BR /&gt;&lt;A href="http://en.wikipedia.org/wiki/Setuid" target="_blank"&gt;http://en.wikipedia.org/wiki/Setuid&lt;/A&gt;</description>
      <pubDate>Wed, 26 Jul 2006 10:38:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setgid-command/m-p/3830713#M271776</guid>
      <dc:creator>inventsekar_1</dc:creator>
      <dc:date>2006-07-26T10:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: setgid command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setgid-command/m-p/3830714#M271777</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Example from a Red Hat study guide.&lt;BR /&gt;&lt;BR /&gt;You want a directory to inherit its default ownership from someone other than the creating user.&lt;BR /&gt;&lt;BR /&gt;mkdir oracledb&lt;BR /&gt;chmod 3775 oracledb/&lt;BR /&gt;chown oracle:dba oracledb/&lt;BR /&gt;su - sprotter&lt;BR /&gt;cd /home/oracledb&lt;BR /&gt;touch sprotterfile&lt;BR /&gt;&lt;BR /&gt;Group ownership will show dba&lt;BR /&gt;&lt;BR /&gt;Try it.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Jul 2006 11:00:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setgid-command/m-p/3830714#M271777</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-07-26T11:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: setgid command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setgid-command/m-p/3830715#M271778</link>
      <description>Sekar:&lt;BR /&gt;&lt;BR /&gt;When you *copy* text, verbatim, from another source, it is proper to indicate that you are quoting another work and in doing so, provide citation threeof!  Open-source licensing aside, too, I'm old-school: copying without acknowledgement is plain old plagiarism.&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Jul 2006 11:12:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setgid-command/m-p/3830715#M271778</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-07-26T11:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: setgid command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setgid-command/m-p/3830716#M271779</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;To set the 'setgid' bit one uses an octal number of the form:&lt;BR /&gt;&lt;BR /&gt;# chmod 2nnn&lt;BR /&gt;&lt;BR /&gt;...using:&lt;BR /&gt;&lt;BR /&gt;# chmod 3nnn&lt;BR /&gt;&lt;BR /&gt;...sets both the 'setgid' and the 'sticky' bit.  See the manpages for 'chmod(1) and/or 'chmod(2)'&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 26 Jul 2006 11:17:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setgid-command/m-p/3830716#M271779</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-07-26T11:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: setgid command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setgid-command/m-p/3830717#M271780</link>
      <description>...JRF...&lt;BR /&gt;when i copy from somewhere, i used to provide the link as well,  the reason is same as u told. i thought that is enough. if not, how i can do that. &lt;BR /&gt;***when reading a text of two or more lines, the writers "english" will tell whether that is original or not.isnt*** &lt;BR /&gt;</description>
      <pubDate>Wed, 26 Jul 2006 11:26:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setgid-command/m-p/3830717#M271780</guid>
      <dc:creator>inventsekar_1</dc:creator>
      <dc:date>2006-07-26T11:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: setgid command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setgid-command/m-p/3830718#M271781</link>
      <description>Sekar:&lt;BR /&gt;&lt;BR /&gt;No, the English (style) used is not an acceptable excuse for a lack of a proper citation.  To ask me to discern *your* words from those written by someone else, presumes that I know both your style and the writer's style and background.  While I am sensitive to cadence and form, that's not fair. &lt;BR /&gt;&lt;BR /&gt;I have witnessed many non-native English folks write and speak more properly than a large number of American English-raised individuals!&lt;BR /&gt;&lt;BR /&gt;It proper to place double quotation marks around vertatim passages of text.  Another technique that I believe works well (for instance, here) is to delineate the material thusly:&lt;BR /&gt;&lt;BR /&gt;/* begin_quote */&lt;BR /&gt;&lt;BR /&gt;In the beginning was the Word...&lt;BR /&gt;&lt;BR /&gt;/* end_quote */&lt;BR /&gt;&lt;BR /&gt;Now, for anyone who thinks that I am picking only on you, I am not.  I have seen other instances of this, too.  Your post just happened to be the most recent one, and I think that this is something that we all could do well to remember.&lt;BR /&gt;&lt;BR /&gt;_end_rant_&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;/* no points for this post, please */</description>
      <pubDate>Wed, 26 Jul 2006 11:47:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setgid-command/m-p/3830718#M271781</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-07-26T11:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: setgid command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setgid-command/m-p/3830719#M271782</link>
      <description>got it JRF.&lt;BR /&gt;&lt;BR /&gt;/* Now, for anyone who thinks that I am picking only on you, I am not. I have seen other instances of this, too. Your post just happened to be the most recent one, and I think that this is something that we all could do well to remember. */&lt;BR /&gt;&lt;BR /&gt;the first "anyone" is me. but i like my "teacher" who always scolds me.&lt;BR /&gt;as one or two days back clay (i am sorry if its wrong) told, its difficult to work with olympian.</description>
      <pubDate>Wed, 26 Jul 2006 12:00:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setgid-command/m-p/3830719#M271782</guid>
      <dc:creator>inventsekar_1</dc:creator>
      <dc:date>2006-07-26T12:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: setgid command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setgid-command/m-p/3830720#M271783</link>
      <description>Sekar,&lt;BR /&gt;&lt;BR /&gt;-- and to add to Jim's rant, it is simply rude and your momma should whup you for it.&lt;BR /&gt;&lt;BR /&gt;I have seen cases where some of my C code was cut-and-pasted and survived absolutely intact other than my authorship comments (which I'm sure were only inadvertently omitted). I only mention that because it would be difficult to discern one's English speaking ability (which I ain't known for nohow) in C but plagiarism is still plagiarism. The only sin in my view that is worse than plagiarism is falsifying data.&lt;BR /&gt; &lt;BR /&gt;Be very glad you are not one of my former students because you would have just flunked the course.&lt;BR /&gt;&lt;BR /&gt;Food for thought, Clay&lt;BR /&gt;&lt;BR /&gt;No points, please.&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Jul 2006 12:01:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setgid-command/m-p/3830720#M271783</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-07-26T12:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: setgid command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setgid-command/m-p/3830721#M271784</link>
      <description>Clay,&lt;BR /&gt;most of the time, these olympians write very crisp. i am not able to understand that crisp. &lt;BR /&gt;"Be very glad you are not one of my former students because you would have just flunked the course." &lt;BR /&gt;means what?</description>
      <pubDate>Wed, 26 Jul 2006 12:39:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setgid-command/m-p/3830721#M271784</guid>
      <dc:creator>inventsekar_1</dc:creator>
      <dc:date>2006-07-26T12:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: setgid command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setgid-command/m-p/3830722#M271785</link>
      <description>"The only sin in my view that is worse than plagiarism is falsifying data."&lt;BR /&gt;&lt;BR /&gt;And what about falsifying plagiarism -- when you not only have not done your own work, but no one else has either?</description>
      <pubDate>Wed, 26 Jul 2006 12:44:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setgid-command/m-p/3830722#M271785</guid>
      <dc:creator>Jonathan Fife</dc:creator>
      <dc:date>2006-07-26T12:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: setgid command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setgid-command/m-p/3830723#M271786</link>
      <description>In a former life, I taught on the college level. It means that had I discovered that you had "borrowed" someone else's work without giving them proper credit then you would have instantly received a failing grade for the course.&lt;BR /&gt;&lt;BR /&gt;As for the 'sin" of plagiarizing falsified data, then I don't really consider that "original" sin -- that there is just amplifying noise.&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Jul 2006 14:40:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setgid-command/m-p/3830723#M271786</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-07-26T14:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: setgid command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setgid-command/m-p/3830724#M271787</link>
      <description>In searching the forums, I ran across this thread and couldn't help posting a reply. How many of you have read the previous answer, which was the right answer and felt compelled to add your "own" answer anyway by changing some of the text around in the previous post.&lt;BR /&gt;&lt;BR /&gt;Previous post: "do this: ps -ef | grep This"&lt;BR /&gt;Your post: "type this: ps -ef | grep -i this"&lt;BR /&gt;&lt;BR /&gt;All you nitpickers are guilty of this. Frankly I don't care where the "text" answer comes from as long as it's the answer. If it's a different method of finding the answer, fine please post it, but the above example is not a new method. If it's code that someone wrote like Clay's caljd, then by all means give the proper credit.&lt;BR /&gt;&lt;BR /&gt;Oh, and you didn't even answer the author's question with your actual answer.</description>
      <pubDate>Wed, 13 Sep 2006 14:24:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setgid-command/m-p/3830724#M271787</guid>
      <dc:creator>Jeff Gyurko</dc:creator>
      <dc:date>2006-09-13T14:24:29Z</dc:date>
    </item>
  </channel>
</rss>

