<?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 it dangerous to remove some groups? in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/is-it-dangerous-to-remove-some-groups/m-p/3631604#M19701</link>
    <description>I don't think it would cause any problems.&lt;BR /&gt;&lt;BR /&gt;Removing the group entry will just remove the name of the group.  The passwd entry will still have the numeric group id for that user.  The files owned by that group will just be displayed with the numeric value.  &lt;BR /&gt;&lt;BR /&gt;If you change the group id in the passwd file for the user, any previously existing files will keep their group id.&lt;BR /&gt;&lt;BR /&gt;The User Private Groups scheme that RedHat implement is just one way of implementing things (it doesn't involve any fundamental changes to the underlying Linux). It means by default that you don't have group access permissions to read another user's file.  Normally (e.g. on HP-UX) users are put in the same group so can share access to files,  but with UPG they'd both need to be members of a separate group to do this.&lt;BR /&gt;&lt;BR /&gt;Andrew</description>
    <pubDate>Fri, 23 Sep 2005 06:58:42 GMT</pubDate>
    <dc:creator>Andrew Merritt_2</dc:creator>
    <dc:date>2005-09-23T06:58:42Z</dc:date>
    <item>
      <title>Is it dangerous to remove some groups?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/is-it-dangerous-to-remove-some-groups/m-p/3631597#M19694</link>
      <description>Hi there,&lt;BR /&gt;&lt;BR /&gt;when you create a new user on Linux, penguin for example, a group with the same name is created, and the UID is the same as the GID (505 for example).&lt;BR /&gt;What happens if this group is deleted? What becomes impossible to do when this group is deleted? Is it dangerous? I ask the question for all the cases, but also in the case of a Samba fileserver.</description>
      <pubDate>Wed, 21 Sep 2005 13:03:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/is-it-dangerous-to-remove-some-groups/m-p/3631597#M19694</guid>
      <dc:creator>Nils_9</dc:creator>
      <dc:date>2005-09-21T13:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is it dangerous to remove some groups?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/is-it-dangerous-to-remove-some-groups/m-p/3631598#M19695</link>
      <description>You won't be able to delete user's primay group. If you want to delete the group, you need to change the user's primary group with usermod -g.&lt;BR /&gt;&lt;BR /&gt;If you delete the group, you need to modify also the group membership permissions of all files that the group owns, you can use the find command to find out what files are owned by the group, and change the group owner. (find / -group groupname -exec chgrp newgrp {} \;   )&lt;BR /&gt;&lt;BR /&gt;You can delete a group, but you need to be sure that the group does not own any files.&lt;BR /&gt;&lt;BR /&gt;Also, that group membership scheme (groupname same as username) is part of a security best practice known as User Private Group. Take a look to UPG.</description>
      <pubDate>Wed, 21 Sep 2005 14:04:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/is-it-dangerous-to-remove-some-groups/m-p/3631598#M19695</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2005-09-21T14:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Is it dangerous to remove some groups?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/is-it-dangerous-to-remove-some-groups/m-p/3631599#M19696</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;The users primary group should not be deleted. You can either assign the user to a different group and then delete the group.&lt;BR /&gt;&lt;BR /&gt;Rgds&lt;BR /&gt;&lt;BR /&gt;HGN</description>
      <pubDate>Wed, 21 Sep 2005 15:10:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/is-it-dangerous-to-remove-some-groups/m-p/3631599#M19696</guid>
      <dc:creator>HGN</dc:creator>
      <dc:date>2005-09-21T15:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Is it dangerous to remove some groups?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/is-it-dangerous-to-remove-some-groups/m-p/3631600#M19697</link>
      <description>When you add users via the Linux way it adds a corresponding group with the user account name. I have had no problems in reassigning the user to another group and then removing the new group that was created. &lt;BR /&gt;&lt;BR /&gt;If you need to add some 500 users, you could get some 500 new groups as well.</description>
      <pubDate>Wed, 21 Sep 2005 15:19:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/is-it-dangerous-to-remove-some-groups/m-p/3631600#M19697</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2005-09-21T15:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Is it dangerous to remove some groups?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/is-it-dangerous-to-remove-some-groups/m-p/3631601#M19698</link>
      <description>&lt;BR /&gt;You should not delete the primary group of the user, then GID set for files in his home directory will turn in to numeric.&lt;BR /&gt;&lt;BR /&gt;Having GID same as UID is something I believe RedHat's choice of maintaining users. I would suggest to have single group id (eg: users) and  when users are created assign this group as their primary group. Necessary options to do this is available as part of useradd command.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Gopi</description>
      <pubDate>Thu, 22 Sep 2005 01:04:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/is-it-dangerous-to-remove-some-groups/m-p/3631601#M19698</guid>
      <dc:creator>Gopi Sekar</dc:creator>
      <dc:date>2005-09-22T01:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is it dangerous to remove some groups?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/is-it-dangerous-to-remove-some-groups/m-p/3631602#M19699</link>
      <description>Thanks a lot for your help.&lt;BR /&gt;Has someone an example of a problem caused by the fact that the users of a Linux system (whatever the distro) haven't a group of the same name and same ID?</description>
      <pubDate>Thu, 22 Sep 2005 13:56:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/is-it-dangerous-to-remove-some-groups/m-p/3631602#M19699</guid>
      <dc:creator>Nils_9</dc:creator>
      <dc:date>2005-09-22T13:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Is it dangerous to remove some groups?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/is-it-dangerous-to-remove-some-groups/m-p/3631603#M19700</link>
      <description>When you have more than one user in the same group, (that's what happen if you don't use a private group), then by default, all users in the same group can see the files created by other users, that may be not good.&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;&lt;BR /&gt;UID: user1&lt;BR /&gt;GID: users&lt;BR /&gt;&lt;BR /&gt;UID: user2&lt;BR /&gt;GID: users&lt;BR /&gt;&lt;BR /&gt;umask 027&lt;BR /&gt;&lt;BR /&gt;user1:&lt;BR /&gt;&lt;BR /&gt;touch my_private_file&lt;BR /&gt;ls -la my_private_file&lt;BR /&gt;&lt;BR /&gt;-rw-r----- user1 users my_private_file&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;See? If you don't modify the umask setting to something like 077, the my_private_file by default can be read by user2.</description>
      <pubDate>Thu, 22 Sep 2005 14:06:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/is-it-dangerous-to-remove-some-groups/m-p/3631603#M19700</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2005-09-22T14:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Is it dangerous to remove some groups?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/is-it-dangerous-to-remove-some-groups/m-p/3631604#M19701</link>
      <description>I don't think it would cause any problems.&lt;BR /&gt;&lt;BR /&gt;Removing the group entry will just remove the name of the group.  The passwd entry will still have the numeric group id for that user.  The files owned by that group will just be displayed with the numeric value.  &lt;BR /&gt;&lt;BR /&gt;If you change the group id in the passwd file for the user, any previously existing files will keep their group id.&lt;BR /&gt;&lt;BR /&gt;The User Private Groups scheme that RedHat implement is just one way of implementing things (it doesn't involve any fundamental changes to the underlying Linux). It means by default that you don't have group access permissions to read another user's file.  Normally (e.g. on HP-UX) users are put in the same group so can share access to files,  but with UPG they'd both need to be members of a separate group to do this.&lt;BR /&gt;&lt;BR /&gt;Andrew</description>
      <pubDate>Fri, 23 Sep 2005 06:58:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/is-it-dangerous-to-remove-some-groups/m-p/3631604#M19701</guid>
      <dc:creator>Andrew Merritt_2</dc:creator>
      <dc:date>2005-09-23T06:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is it dangerous to remove some groups?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/is-it-dangerous-to-remove-some-groups/m-p/3631605#M19702</link>
      <description>Thanks a lot Ivan &amp;amp; Andrew, so I'll do a umask 077 to the homes directories. Does umask stay after a reboot? Just if needed..</description>
      <pubDate>Sun, 25 Sep 2005 12:06:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/is-it-dangerous-to-remove-some-groups/m-p/3631605#M19702</guid>
      <dc:creator>Nils_9</dc:creator>
      <dc:date>2005-09-25T12:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Is it dangerous to remove some groups?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/is-it-dangerous-to-remove-some-groups/m-p/3631606#M19703</link>
      <description>No, the umask command should be configured in the /etc/profile file.</description>
      <pubDate>Mon, 26 Sep 2005 07:49:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/is-it-dangerous-to-remove-some-groups/m-p/3631606#M19703</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2005-09-26T07:49:05Z</dc:date>
    </item>
  </channel>
</rss>

