- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: groupadd not unique
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
09-09-2011 03:03 AM
09-09-2011 03:03 AM
groupadd not unique
I want to add several users and several groups to a HPUX 11.31 box. When I type groupadd -g GID <name>, I'm told GID is not unique....even thoug it doesn't exist in the /etc/group file. I read in the man pages about NIS but I don't think we are using NIS....well we are using LDAP, but can I still add these groups locally that may not be unique?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2011 04:51 AM
09-09-2011 04:51 AM
Re: groupadd not unique
>we are using LDAP, but can I still add these groups locally that may not be unique?
Are the names different for the same IDs? You don't want to do that.
If they are the same, you should leave out the local copy.
Of course you can just use vi on /etc/group.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2011 09:50 AM
09-09-2011 09:50 AM
Re: groupadd not unique
check your /etc/nsswitch.conf file. that will tell you how the OS is searching for UIDs and GIDs. it should be something like this (we use vintela servers as the LDAP "product"). in this case, the OS looks to the files for UID, GID affiliation first before looking to LDAP (vas)
passwd: files vas3
group: files vas3
hosts: files [NOTFOUND=continue] dns
you may find that ldap is searched first. files should be first so that local accounts are found locally without getting confused by similar UID/GID in LDAP.
also, check for the existence of the UID/GID in LDAP.... list the users/groups in ldap (not sure how, but vintela has a tool, vastool). maybe you can find what you are confilcting with.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2011 06:16 AM
09-16-2011 06:16 AM
Re: groupadd not unique
Thanks guys....I think I can disable LDAP in order to add them locally. Now how does one do that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2011 06:22 AM
09-16-2011 06:22 AM
Re: groupadd not unique
@jackie baron_1 wrote:Thanks guys....I think I can disable LDAP in order to add them locally. Now how does one do that?
Hi:
You sould see the key 'ldap' in your '/etc/nsswitch.conf' file. Delete it to disable its use. Look at the manpages for 'nsswitch.conf(4)' for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2011 12:39 AM
09-18-2011 12:39 AM
Re: groupadd not unique
Hello,
Firstly, you can pass the command-line option to groupadd(1M):
-o Allow the gid to be non-unique (that is, a duplicate)
And because groupadd(1M) only adds the group definition into /etc/group file,
there is never a danger to mess with NIS or LDAP... That is the proper weay for you
to use this command.
Secondly, if you really want to remove LDAP entry from the setup,
just edit /etc/nsswitch.conf. Look for line:
group: files ldap ...
Cheers,
VK2COT