<?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: Shell scripting and changing group id in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting-and-changing-group-id/m-p/2597419#M855168</link>
    <description>James W.  Your answer doesnt fit, the ./ is to look here first or to source a file.</description>
    <pubDate>Thu, 18 Oct 2001 15:21:03 GMT</pubDate>
    <dc:creator>Belinda Dermody</dc:creator>
    <dc:date>2001-10-18T15:21:03Z</dc:date>
    <item>
      <title>Shell scripting and changing group id</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting-and-changing-group-id/m-p/2597415#M855164</link>
      <description>HP-UX 10.20.  Is there a way you can change a user to a new group without starting up a new shell ( like newgrp command) within a script.  I have a certain security group that writes files to to a directory owned by root and group is a/r the permission are 770 on the directory. People belong to different primary and a/r is secondary, but the system wont let them cd to the directory.  I can do it with sudo commands, but I would rather not use it.</description>
      <pubDate>Thu, 18 Oct 2001 15:01:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting-and-changing-group-id/m-p/2597415#M855164</guid>
      <dc:creator>Belinda Dermody</dc:creator>
      <dc:date>2001-10-18T15:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: Shell scripting and changing group id</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting-and-changing-group-id/m-p/2597416#M855165</link>
      <description>Have you tried setting up the /etc/logingroup file.  This should fix the problem of the user not being able to cd into the directory.  As long as they are a member of the group that owns the directory and the directory has execute permissions, the user should be able to cd in to the directory.&lt;BR /&gt;&lt;BR /&gt;Just link /etc/group /etc/logingroup.&lt;BR /&gt;&lt;BR /&gt;-Santosh</description>
      <pubDate>Thu, 18 Oct 2001 15:09:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting-and-changing-group-id/m-p/2597416#M855165</guid>
      <dc:creator>Santosh Nair_1</dc:creator>
      <dc:date>2001-10-18T15:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Shell scripting and changing group id</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting-and-changing-group-id/m-p/2597417#M855166</link>
      <description>I may be wrong, but have you tried&lt;BR /&gt;&lt;BR /&gt;. /usr/bin/newgrp&lt;BR /&gt;&lt;BR /&gt;? That '.' at the beginning means it won't fork a new process. Just an idea...&lt;BR /&gt;&lt;BR /&gt;James</description>
      <pubDate>Thu, 18 Oct 2001 15:13:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting-and-changing-group-id/m-p/2597417#M855166</guid>
      <dc:creator>James Beamish-White</dc:creator>
      <dc:date>2001-10-18T15:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Shell scripting and changing group id</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting-and-changing-group-id/m-p/2597418#M855167</link>
      <description>Thanks Santos, your response is correct and it solved my problems, it is amazing how long you work at a job and the new things that you learn each day.  I read and searched, but didnt read deep enough.</description>
      <pubDate>Thu, 18 Oct 2001 15:18:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting-and-changing-group-id/m-p/2597418#M855167</guid>
      <dc:creator>Belinda Dermody</dc:creator>
      <dc:date>2001-10-18T15:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Shell scripting and changing group id</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting-and-changing-group-id/m-p/2597419#M855168</link>
      <description>James W.  Your answer doesnt fit, the ./ is to look here first or to source a file.</description>
      <pubDate>Thu, 18 Oct 2001 15:21:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting-and-changing-group-id/m-p/2597419#M855168</guid>
      <dc:creator>Belinda Dermody</dc:creator>
      <dc:date>2001-10-18T15:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Shell scripting and changing group id</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting-and-changing-group-id/m-p/2597420#M855169</link>
      <description>Actually, if the users are members of both groups they should be able to do the cd without problem. I suspect the problem is permissions of the directories above OR the permissions of the mountpoint. If you examine all the mounted directories and everything is fine, umount the filesystems and examine the permissions of the mountpoint itself. Just to test this, I did exactly what you describe on a 10.20 box and it worked just as expected with directory permissions set to 770.&lt;BR /&gt;&lt;BR /&gt;Clay</description>
      <pubDate>Thu, 18 Oct 2001 15:22:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting-and-changing-group-id/m-p/2597420#M855169</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-10-18T15:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Shell scripting and changing group id</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting-and-changing-group-id/m-p/2597421#M855170</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;if you have a first line in your script like this:&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;then you could set the SGID (group-id bit) on the script, "chgrp" it to the wanted group, and give execute permission to everybody (an read and execute for that group, of course).&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Wodisch</description>
      <pubDate>Thu, 18 Oct 2001 15:43:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting-and-changing-group-id/m-p/2597421#M855170</guid>
      <dc:creator>Wodisch</dc:creator>
      <dc:date>2001-10-18T15:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Shell scripting and changing group id</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting-and-changing-group-id/m-p/2597422#M855171</link>
      <description>Sorry, didn't go down in typing:&lt;BR /&gt;&lt;BR /&gt;.&lt;SPACE&gt;/usr/bin/newgrp &lt;BR /&gt;&lt;BR /&gt;.&lt;SPACE&gt;&lt;COMMAND&gt; is what I meant, not ./&lt;BR /&gt;&lt;BR /&gt;Sorry for the mistaking comunication.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;James&lt;/COMMAND&gt;&lt;/SPACE&gt;&lt;/SPACE&gt;</description>
      <pubDate>Fri, 19 Oct 2001 12:42:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting-and-changing-group-id/m-p/2597422#M855171</guid>
      <dc:creator>James Beamish-White</dc:creator>
      <dc:date>2001-10-19T12:42:07Z</dc:date>
    </item>
  </channel>
</rss>

