<?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: userid with multiple group in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103186#M905173</link>
    <description>Cathy,&lt;BR /&gt;&lt;BR /&gt; In our shop we do not allow root to login. Authorized users must su to root to become root. Therefore, the user must have an account on the machine to login. We control this by a group that the authorized administrators belong to. Only users in this group may su to root. Actual security can be managed by root's password. This can be changed periodically (under system control) and only current group members advised of the new password.</description>
    <pubDate>Tue, 28 Oct 2003 20:22:35 GMT</pubDate>
    <dc:creator>Jack Werner</dc:creator>
    <dc:date>2003-10-28T20:22:35Z</dc:date>
    <item>
      <title>userid with multiple group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103165#M905152</link>
      <description>I have to give an access to one of our users to adm privileges and she is already in users group. can i add the same id in another group or have to create new id with different adm group. what is best way to handle this situation and how?&lt;BR /&gt;Thanks for help and input.</description>
      <pubDate>Mon, 27 Oct 2003 10:32:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103165#M905152</guid>
      <dc:creator>Cathy Arora</dc:creator>
      <dc:date>2003-10-27T10:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: userid with multiple group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103166#M905153</link>
      <description>Cathy,&lt;BR /&gt;  A user can be part of more than one group.  But users will be the primary group in your case.&lt;BR /&gt;  User newgrp command to change the group id temporarily.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Umapathy&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Oct 2003 10:35:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103166#M905153</guid>
      <dc:creator>Umapathy S</dc:creator>
      <dc:date>2003-10-27T10:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: userid with multiple group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103167#M905154</link>
      <description>Fastest way to go:&lt;BR /&gt;&lt;BR /&gt;Sam &lt;BR /&gt;Users&lt;BR /&gt;&lt;BR /&gt;Pick the user.&lt;BR /&gt;&lt;BR /&gt;Add secondary groups to the user.  Do it carefully with the impact on security in mind.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 27 Oct 2003 10:36:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103167#M905154</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-10-27T10:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: userid with multiple group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103168#M905155</link>
      <description>You can simply edit the /etc/group file and add the user to additional group. The user's primary group remains the GID in the passwd entry. If you now link /etc/group and /etc/logingroup, the user will not be required to issue a newgrp command but automatically be checked for group membership.&lt;BR /&gt;&lt;BR /&gt;Plan B. Use sudo to give this user access to certain commands.&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Oct 2003 10:37:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103168#M905155</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-10-27T10:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: userid with multiple group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103169#M905156</link>
      <description>Thanks for your sugessions.&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Oct 2003 10:47:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103169#M905156</guid>
      <dc:creator>Cathy Arora</dc:creator>
      <dc:date>2003-10-27T10:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: userid with multiple group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103170#M905157</link>
      <description>I used sam to give access to additonal group but when i browse passwd file, I can not see additional group listed there.&lt;BR /&gt;Also I was not able to perform as root even I put myself in root group as well.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Oct 2003 11:18:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103170#M905157</guid>
      <dc:creator>Cathy Arora</dc:creator>
      <dc:date>2003-10-27T11:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: userid with multiple group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103171#M905158</link>
      <description>You will only see the primary group in /etc/passwd.&lt;BR /&gt;Take a look at /etc/groups.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Rainer</description>
      <pubDate>Mon, 27 Oct 2003 11:28:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103171#M905158</guid>
      <dc:creator>Rainer von Bongartz</dc:creator>
      <dc:date>2003-10-27T11:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: userid with multiple group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103172#M905159</link>
      <description>If you added the group instead of changing the group, then the passwd file will only show the primary group. &lt;BR /&gt; &lt;BR /&gt;Look in the /etc/group file for the additional group listing...&lt;BR /&gt;&lt;BR /&gt;grep &lt;USER&gt; /etc/group&lt;BR /&gt;grep &lt;GROUPID&gt; /etc/group&lt;/GROUPID&gt;&lt;/USER&gt;</description>
      <pubDate>Mon, 27 Oct 2003 11:29:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103172#M905159</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2003-10-27T11:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: userid with multiple group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103173#M905160</link>
      <description>Cathy,&lt;BR /&gt;  /etc/passwd contains the primary group id of the user.  Userids are associated with the group than the other way round.  Comma seperated User ids will be in the /etc/group file.  &lt;BR /&gt;  Check Clay's answer for completeness.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Umapathy</description>
      <pubDate>Mon, 27 Oct 2003 11:29:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103173#M905160</guid>
      <dc:creator>Umapathy S</dc:creator>
      <dc:date>2003-10-27T11:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: userid with multiple group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103174#M905161</link>
      <description>Hi Cathy,&lt;BR /&gt;&lt;BR /&gt;If you want your userid to act as root, change your UID in the /etc/passwd file to "0" or if you are using useradd command using the -o -g 0 option with the useradd command.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Oct 2003 11:32:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103174#M905161</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2003-10-27T11:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: userid with multiple group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103175#M905162</link>
      <description>Thanks very much all.&lt;BR /&gt;I can user being added in group file under root. However I was not able to use useradd or other root privilages even I can see my user being added in root group as a secondary group. &lt;BR /&gt;&lt;BR /&gt;Am i missing something?&lt;BR /&gt;&lt;BR /&gt;Thanks again.&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Oct 2003 12:19:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103175#M905162</guid>
      <dc:creator>Cathy Arora</dc:creator>
      <dc:date>2003-10-27T12:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: userid with multiple group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103176#M905163</link>
      <description>Being in group root is not the same as having a UID of zero. Group root only grants you access to some restricted files but it does nothing towards becomiing super-user. That is what setuid() is for.&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Oct 2003 12:24:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103176#M905163</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-10-27T12:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: userid with multiple group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103177#M905164</link>
      <description>Cathy,&lt;BR /&gt;  Most of the admin commands need to be run as root.  You can create or set your userid to 0 to effect the same.  But for security reasons a big no for this.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Umapathy</description>
      <pubDate>Mon, 27 Oct 2003 12:26:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103177#M905164</guid>
      <dc:creator>Umapathy S</dc:creator>
      <dc:date>2003-10-27T12:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: userid with multiple group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103178#M905165</link>
      <description>Cathy,&lt;BR /&gt;&lt;BR /&gt;Seems like you need to create a root2 user with a different pasword than you have for root, for this type of functionality or give Restricted SAM to the user who needs it.&lt;BR /&gt; &lt;BR /&gt;I agree with above posters, never give a normal user 0 UID... but better have them su to a root2 account so that you can track it with the /var/adm/sulog.&lt;BR /&gt; &lt;BR /&gt;Im guessing this person is fairly relaible and trustworthy that you can count on them to act responsibly. giving them a root2 account would be a good way of doing what you need OR a restricted SAM for their current user.</description>
      <pubDate>Mon, 27 Oct 2003 12:41:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103178#M905165</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2003-10-27T12:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: userid with multiple group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103179#M905166</link>
      <description>Thanks all. &lt;BR /&gt;Tod root2 senario sounds good. &lt;BR /&gt;as far as security tracking is concerned I have another question.&lt;BR /&gt;Is there a way to know the information about workstation also from where user is loged from.&lt;BR /&gt;I donot mean uname -a. &lt;BR /&gt;I would like real machine information (each organization gives a machine some kind of a tag # or name) and if a user telnet from one machine and issue some dangerous operation I would like to track which machine was logged in as root.&lt;BR /&gt;I am not sure if tty information has be translated and how or is there another way to track it.&lt;BR /&gt;Thanks again.&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Oct 2003 14:10:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103179#M905166</guid>
      <dc:creator>Cathy Arora</dc:creator>
      <dc:date>2003-10-27T14:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: userid with multiple group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103180#M905167</link>
      <description>I would NEVER have more than one user with UID 0. That is simply asking for huge security problems. Once that person acquires UID 0, anything can be done. A much smarter way to give limited admin access to a user is through the sudo command.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.7p5/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.7p5/&lt;/A&gt;</description>
      <pubDate>Mon, 27 Oct 2003 14:20:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103180#M905167</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-10-27T14:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: userid with multiple group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103181#M905168</link>
      <description>To see who was logged in from where, you can do a 'last -R' and that will show each user and what machine name or IP address they connected from if they connected via telnet or rlogin.&lt;BR /&gt;&lt;BR /&gt;# last -R root&lt;BR /&gt;&lt;BR /&gt;To see where root logged in from.&lt;BR /&gt;&lt;BR /&gt;I also agree with A. Clay...I do not recommend having more than 1 UID 0 user.  If you must allow others to run commands only root can run, look at something like sudo.</description>
      <pubDate>Mon, 27 Oct 2003 14:25:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103181#M905168</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2003-10-27T14:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: userid with multiple group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103182#M905169</link>
      <description>who -a shows all connections.&lt;BR /&gt;who -u shows all users logged in.&lt;BR /&gt;who -R shows basically the same as who -u does.&lt;BR /&gt; &lt;BR /&gt;You can include in the /etc/profile or CRON job and check for access.&lt;BR /&gt; &lt;BR /&gt;who -u &amp;gt; /var/adm/wholog&lt;BR /&gt; &lt;BR /&gt;or better&lt;BR /&gt; &lt;BR /&gt;who -R |mailx -s "users' Logged in" root&lt;BR /&gt;  &lt;BR /&gt;This will be run everytime someone logs into your host. AND cant be messed with b/c it is run as they log in.What Im not sure about is if the /etc/profile is sourced when you su to another user. I know it is sourced when you initially log in.&lt;BR /&gt; &lt;BR /&gt;Also, you might have a CRON to compare /var/adm/sulog to sulog.diff every 15 minutes... &lt;BR /&gt; &lt;BR /&gt;or run a wrapper to check for sulog modification instead of a cron every 15 minutes.&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Oct 2003 14:26:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103182#M905169</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2003-10-27T14:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: userid with multiple group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103183#M905170</link>
      <description>Thanks very much for help.</description>
      <pubDate>Mon, 27 Oct 2003 14:52:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103183#M905170</guid>
      <dc:creator>Cathy Arora</dc:creator>
      <dc:date>2003-10-27T14:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: userid with multiple group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103184#M905171</link>
      <description>last -R root works, however who -a does not show all users logged as they log in.&lt;BR /&gt;I would like this to work for security perpose.&lt;BR /&gt; &lt;BR /&gt;I think there is an issue with sourcing etc/profile. first time login it will do.&lt;BR /&gt;I would to get informed via e-mail as somelogs in as root and machine info (last -R root) &lt;BR /&gt;any other ideas or readily available scripts.&lt;BR /&gt;Once again thanks.&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Oct 2003 15:59:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/userid-with-multiple-group/m-p/3103184#M905171</guid>
      <dc:creator>Cathy Arora</dc:creator>
      <dc:date>2003-10-27T15:59:57Z</dc:date>
    </item>
  </channel>
</rss>

