- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Changing roots default GID to none default GI...
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
06-10-2005 01:08 AM
06-10-2005 01:08 AM
Changing roots default GID to none default GID
Any help will be greatly appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2005 01:11 AM
06-10-2005 01:11 AM
Re: Changing roots default GID to none default GID
Don't do it.
If you change roots GID you may have all kinds of unintended impacts on operation. You may have trouble installing software. Lots of things may go wrong.
Why do you want to do this? I bet myself or others can provide you a better solution.
I never,never,never,ever mess with the root users shell or other settings.
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
06-10-2005 01:20 AM
06-10-2005 01:20 AM
Re: Changing roots default GID to none default GID
Okay, you "could" change the GID in /etc/passwd and chgrp any files on your system.
HOWEVER, UID 0 and GID 0 have special meaning within the kernel itself, the passwd entry is only a symbolic representation that 0 is root.
I can't predict what would happen, because I have and never will do it. Neither should you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2005 02:29 AM
06-10-2005 02:29 AM
Re: Changing roots default GID to none default GID
No other user accounts have GID=0 (same as no other user accounts have UID=0).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2005 02:23 PM
06-10-2005 02:23 PM
Re: Changing roots default GID to none default GID
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2005 08:01 PM
06-12-2005 08:01 PM
Re: Changing roots default GID to none default GID
If you need an account with uid 0 and an other gid, you are free to create such an account and call it 'carrot' or such. Then use that. There will be some strange effects where there is 'reverse lookup' of the uid, it all shows as "root" but the running processes use the defined 'gid'. Best to only use the account for the purpose, there might be strange side-effects.
If you just need to run some application with an other gid, set the S-bit on the group. I'm sorry I don't recall any command to change the group on the fly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2005 08:56 PM
06-12-2005 08:56 PM
Re: Changing roots default GID to none default GID
changing a root's group id is not recommended as it can create undesirable results...
But on a test server i have changed the root's gid and edited the /etc/group file and added an additional entry as the same root account with a different gid... the files newly created have the same gid label but the files had the group gid number of the very first entry in /etc/group file, and the existing files remained in old gid group.
# cat /etc/group
root::1000:root
root::0:root
other::1:root,hpdb
bin::2:root,bin
I have tried it only on a test server... dont know what effect it will take on applications and database...
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2005 02:44 AM
06-13-2005 02:44 AM
Re: Changing roots default GID to none default GID
Bill Hassell, sysadmin