<?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: setuid setgid  ? pls Help in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/setuid-setgid-pls-help/m-p/3233351#M73678</link>
    <description>Stuart Browne, Many Many thanks for ur kind Feedback.&lt;BR /&gt;&lt;BR /&gt;I do agree with u Stuart, i.e Jeroen Peereboom explained me so nice.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 30 Mar 2004 22:46:38 GMT</pubDate>
    <dc:creator>Maaz</dc:creator>
    <dc:date>2004-03-30T22:46:38Z</dc:date>
    <item>
      <title>setuid setgid  ? pls Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/setuid-setgid-pls-help/m-p/3233347#M73674</link>
      <description>Hi Gurus&lt;BR /&gt;Why and What are setuid and setgid??? which command is used to set 'setuid' and  'setgid' &lt;BR /&gt;on a file.&lt;BR /&gt;B4 posting this question on forum, I tried to learn man pages, but didnt get the reason and usage of setuid and setgid, so Please Please TeAcH and/or ExPlaiN ... and if possible by ExamPleS&lt;BR /&gt;&lt;BR /&gt;Second, i issue '$cat /etc/fstab' and found "none  /dev/pts   devpts  gid=5,mode=620"&lt;BR /&gt;please also le me know whats 'gid=5' and 'mode=620' ?&lt;BR /&gt;&lt;BR /&gt;Many Thanks In Advance&lt;BR /&gt;Best Regards,&lt;BR /&gt;Maaz</description>
      <pubDate>Tue, 30 Mar 2004 01:00:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/setuid-setgid-pls-help/m-p/3233347#M73674</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2004-03-30T01:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: setuid setgid  ? pls Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/setuid-setgid-pls-help/m-p/3233348#M73675</link>
      <description>Maaz,&lt;BR /&gt;&lt;BR /&gt;you login using an account.&lt;BR /&gt;If you start a program it runs with that account, which means that (for exapmle) privileges to write to a file are based on your account.&lt;BR /&gt;If the program you run is 'setuid', it runs which the file-owner account. For example, the /usr/bin/passwd command is setuid root.&lt;BR /&gt;This means that if you run this program. you 'are' temporarily root. This means you can write to the /etc/passwd file (which is writable to root only).&lt;BR /&gt;&lt;BR /&gt;setgid is the same, but for the group the file belongs to.&lt;BR /&gt;&lt;BR /&gt;chmod 4750 file:&lt;BR /&gt;4 -&amp;gt; setuid&lt;BR /&gt;7 =4+2+1= r+w+x for user&lt;BR /&gt;5 =4+1 = r + x for group&lt;BR /&gt;0 = nothing for others&lt;BR /&gt;&lt;BR /&gt;gid=5 -&amp;gt; group id = 5 &lt;BR /&gt;grep :5: /etc/group tells it's the 'tty' group.&lt;BR /&gt;Mode 620: user read/write, group write, others nothing.&lt;BR /&gt;&lt;BR /&gt;JP</description>
      <pubDate>Tue, 30 Mar 2004 01:14:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/setuid-setgid-pls-help/m-p/3233348#M73675</guid>
      <dc:creator>Jeroen Peereboom</dc:creator>
      <dc:date>2004-03-30T01:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: setuid setgid  ? pls Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/setuid-setgid-pls-help/m-p/3233349#M73676</link>
      <description>Many Thanks Jeroen&lt;BR /&gt;but please also le me know how to set gid on a file ... chmod 4760 will sets suid not gid.&lt;BR /&gt;Second when I should set gid/suid on a file??? I mean when it is recommended or in which scenario one shold set suid/gid on a file&lt;BR /&gt;&lt;BR /&gt;Maaz</description>
      <pubDate>Tue, 30 Mar 2004 02:10:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/setuid-setgid-pls-help/m-p/3233349#M73676</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2004-03-30T02:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: setuid setgid  ? pls Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/setuid-setgid-pls-help/m-p/3233350#M73677</link>
      <description>Ok, 4 octets:&lt;BR /&gt;&lt;BR /&gt;1st: 4 = setuid, 2 = setgid, 1 = set sticky&lt;BR /&gt;2nd: (user) 4 = read, 2 = write, 1 = execute&lt;BR /&gt;3rd: (group) 4 = read, 2 = write, 1 = execute&lt;BR /&gt;4th: (other) 4 = read, 2 = write, 1 = execute&lt;BR /&gt;&lt;BR /&gt;To set GUID on a file use one of the following:&lt;BR /&gt;&lt;BR /&gt;chmod g+s file&lt;BR /&gt;or&lt;BR /&gt;chmod 2&lt;FILEPERM&gt; file&lt;BR /&gt;&lt;BR /&gt;This is all explained in the 'chmod' man page.&lt;BR /&gt;&lt;BR /&gt;As for the 'fstab' entries, it's stating it wants that mount point (/dev/pts) to have group-id of 5, and all files under it (pts device nodes in this case) to have 620 permissions (-rw-w----).&lt;BR /&gt;&lt;BR /&gt;.. oh, Jereon explained that already .. &lt;BR /&gt;&lt;/FILEPERM&gt;</description>
      <pubDate>Tue, 30 Mar 2004 02:38:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/setuid-setgid-pls-help/m-p/3233350#M73677</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2004-03-30T02:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: setuid setgid  ? pls Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/setuid-setgid-pls-help/m-p/3233351#M73678</link>
      <description>Stuart Browne, Many Many thanks for ur kind Feedback.&lt;BR /&gt;&lt;BR /&gt;I do agree with u Stuart, i.e Jeroen Peereboom explained me so nice.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Mar 2004 22:46:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/setuid-setgid-pls-help/m-p/3233351#M73678</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2004-03-30T22:46:38Z</dc:date>
    </item>
  </channel>
</rss>

