Bug 43761 - Local accounts don't get priority over NIS accounts.
Summary: Local accounts don't get priority over NIS accounts.
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: ypbind   
(Show other bugs)
Version: 7.1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Florian La Roche
QA Contact: Aaron Brown
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-06-07 02:33 UTC by Ian Mortimer
Modified: 2007-04-18 16:33 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2001-06-07 02:33:54 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

Description Ian Mortimer 2001-06-07 02:33:51 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.2-2 i686)

Description of problem:
If you have a local account defined in /etc/passwd it is ignored in favour
of the NIS account.  This is a change from previous behaviour and
contradicts /etc/nsswitch.conf which has:

   passwd:    files nis

You can get it to work as before by changing /etc/nsswitch.conf to:

   passwd:    files compat

and adding +::0:0::: to the end of /etc/passwd.

How reproducible:
Always

Steps to Reproduce:
1. stop ypbind
2. create a local account for a user in the NIS passwd database
3. start ypbind
4. login as that user or try to change the password. 
	

Actual Results:  You will be logged in with the password and account
details of the NIS user rather than the locally defined user .  If you try
to change the password it will want to change it on the NIS server rather
than locally.

Expected Results:  The local account should take priority over NIS as
specified in /etc/nsswitch.conf (or at least that was the previous
behaviour).  
This change is not documented anywhere as far as I can tell.

Additional info:

Comment 1 Ian Mortimer 2001-06-07 22:01:38 UTC
I did some quick testing yesterday after a report from a remote site but the
information I had was wrong and I came to wrong conclusion.  This is not a
problem with ypbind but with passwd.  Please ignore this bug report.  I'll
register as a bug with passwd.


Note You need to log in before you can comment on or make changes to this bug.