- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: userid with multiple group
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2003 02:32 AM
10-27-2003 02:32 AM
userid with multiple group
Thanks for help and input.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2003 02:35 AM
10-27-2003 02:35 AM
Re: userid with multiple group
A user can be part of more than one group. But users will be the primary group in your case.
User newgrp command to change the group id temporarily.
HTH,
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2003 02:36 AM
10-27-2003 02:36 AM
Re: userid with multiple group
Sam
Users
Pick the user.
Add secondary groups to the user. Do it carefully with the impact on security in mind.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2003 02:37 AM
10-27-2003 02:37 AM
Re: userid with multiple group
Plan B. Use sudo to give this user access to certain commands.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2003 02:47 AM
10-27-2003 02:47 AM
Re: userid with multiple group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2003 03:18 AM
10-27-2003 03:18 AM
Re: userid with multiple group
Also I was not able to perform as root even I put myself in root group as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2003 03:28 AM
10-27-2003 03:28 AM
Re: userid with multiple group
Take a look at /etc/groups.
Regards
Rainer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2003 03:29 AM
10-27-2003 03:29 AM
Re: userid with multiple group
Look in the /etc/group file for the additional group listing...
grep
grep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2003 03:29 AM
10-27-2003 03:29 AM
Re: userid with multiple group
/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.
Check Clay's answer for completeness.
HTH,
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2003 03:32 AM
10-27-2003 03:32 AM
Re: userid with multiple group
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.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2003 04:19 AM
10-27-2003 04:19 AM
Re: userid with multiple group
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.
Am i missing something?
Thanks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2003 04:24 AM
10-27-2003 04:24 AM
Re: userid with multiple group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2003 04:26 AM
10-27-2003 04:26 AM
Re: userid with multiple group
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.
HTH,
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2003 04:41 AM
10-27-2003 04:41 AM
Re: userid with multiple group
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.
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.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2003 06:10 AM
10-27-2003 06:10 AM
Re: userid with multiple group
Tod root2 senario sounds good.
as far as security tracking is concerned I have another question.
Is there a way to know the information about workstation also from where user is loged from.
I donot mean uname -a.
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.
I am not sure if tty information has be translated and how or is there another way to track it.
Thanks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2003 06:20 AM
10-27-2003 06:20 AM
Re: userid with multiple group
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.7p5/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2003 06:25 AM
10-27-2003 06:25 AM
Re: userid with multiple group
# last -R root
To see where root logged in from.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2003 06:26 AM
10-27-2003 06:26 AM
Re: userid with multiple group
who -u shows all users logged in.
who -R shows basically the same as who -u does.
You can include in the /etc/profile or CRON job and check for access.
who -u > /var/adm/wholog
or better
who -R |mailx -s "users' Logged in" root
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.
Also, you might have a CRON to compare /var/adm/sulog to sulog.diff every 15 minutes...
or run a wrapper to check for sulog modification instead of a cron every 15 minutes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2003 06:52 AM
10-27-2003 06:52 AM
Re: userid with multiple group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2003 07:59 AM
10-27-2003 07:59 AM
Re: userid with multiple group
I would like this to work for security perpose.
I think there is an issue with sourcing etc/profile. first time login it will do.
I would to get informed via e-mail as somelogs in as root and machine info (last -R root)
any other ideas or readily available scripts.
Once again thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2003 08:10 AM
10-27-2003 08:10 AM
Re: userid with multiple group
A wrapper file on the /var/adm/sulog will show who uses su command.
For who has logged in recently:
ll -u /etc/profile will provide the last time the /etc/profile was accessed... giving you exact time of user login...
Im a bit busy to write a script for this but you can either do a cron every 5 mins or include it in the wrapper for the /var/adm/sulog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2003 12:22 PM
10-28-2003 12:22 PM
Re: userid with multiple group
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2003 01:39 AM
10-29-2003 01:39 AM
Re: userid with multiple group
We also don't allow direct root except from the console, as Im sure you also require.
Jack's message reminded me of a security tool that we have loaded. It is called "scfmgr". This tool will email any violations to the specified individual or system mail. It is a part of the Sysguard security software package.
All users with su to root access should be listed in this file or else it generates a system message.