- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Duplicate user account references and gid of -24 f...
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
Discussions
Discussions
Forums
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
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
тАО05-26-2005 08:38 PM
тАО05-26-2005 08:38 PM
I have an account that is defined in /etc/passwd on about half a dozen machines. What I want to do is to put the account under NIS. My question is... could I run into problems if I create the NIS account before I remove the /etc/passwd entries? I.e. at a given point in time, it will be defined in both /etc/passwd and in NIS.
As a follow on from that (still part of the first question). What would happen if /etc/passwd and NIS conflict (bearing in mind passwd is not configured in any of the nsswitch.conf's).
My second question is... on all of my systems except one, account 'nobody' has gid -2. On one single machine, it has a gid of -24. Any ideas why this should be different? Would there be any issues if I just changed it in /etc/passwd to -2?
Thanks,
Gary
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-26-2005 08:54 PM
тАО05-26-2005 08:54 PM
Re: Duplicate user account references and gid of -24 for user nobody
In terms of conflicts, if your nsswitch entry for passwd is files then nis, the nis credentials will be ignored until the local account is deleted.
As for nobody, usually there isn't an entry in /etc/passwd for nobody on hpux. -2 is an implicit UID (referenced in /usr/include/pwd.h). Whilst you can have an entry in passwd to refer to it by name it isn't a requirement of ftpd.
I would be tempted to investigate why you have these entries on all your servers though, and whether any other processes (perhaps Apache?) actually run as nobody that you may affect by changing this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-26-2005 09:14 PM
тАО05-26-2005 09:14 PM
Re: Duplicate user account references and gid of -24 for user nobody
When I say "passwd is not configured in any of the nsswitch.conf's" I mean that there is NO entry for passwd to specify the search order, hence my question.
On the subject of the 'nobody' account, these /etc/passwd entries are created as part of the regular installation process for HP-UX 11.11. I haven't created them, none of the third party software that I have installed has created them and they appear as soon as the Instant Ignition process has completed.
Thanks,
Gary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-26-2005 09:55 PM
тАО05-26-2005 09:55 PM
Re: Duplicate user account references and gid of -24 for user nobody
I'm not sure what the passwd libraries will use as "default", presumably something compiled in, which may or may not be "files nis", however if you don't explicity specify it how do you know? I can see no reason to not have an entry for passwd.
In terms of nobody being in your passwd file, it's not on any of our servers. However I guess it's possible that one of your apllications you install with ignite adds this (perhaps samba? apache?)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-26-2005 10:05 PM
тАО05-26-2005 10:05 PM
Re: Duplicate user account references and gid of -24 for user nobody
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-26-2005 11:11 PM
тАО05-26-2005 11:11 PM
SolutionAs far as the coexistence of accounts in NIS and FILES, your nsswitch.conf should handle the precedence - if it finds the account in whichever is specified (or defaulted to) first, then it won't look in the other.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2005 12:52 AM
тАО05-27-2005 12:52 AM
Re: Duplicate user account references and gid of -24 for user nobody
Thsnks for the responses. Pete partially answered my question when he said "if it finds the account in whichever is specified (or defaulted to) first, then it won't look in the other", however the key point was that none of my nsswitch.conf's have a passwd entry, so what happens?
I actually found the answer in the 'man' page -
The compiled-in default entries for all databases use NIS (YP) as the enterprise level name-service and are identical to those in the default configuration of this file:
passwd: files nis
group: files nis
hosts: nis [NOTFOUND=return] files
networks: nis [NOTFOUND=return] files
protocols: nis [NOTFOUND=return] files
rpc: nis [NOTFOUND=return] files
publickey: nis [NOTFOUND=return] files
netgroup: nis
automount: files nis
aliases: files nis
services: files nis
sendmailvars: files
Thanks again,
Gary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2005 12:53 AM
тАО05-27-2005 12:53 AM