NIS+ NIS compatibility mode and the 'passwd' map

NIS+ NIS compatibility mode and the 'passwd' map

Post by Roger E. Mass » Thu, 01 Jun 2000 04:00:00



Greetings -- I'm running nis+ with NIS compatibility mode (-Y)
I'm having trouble getting the encrypted passwd string to appear
in the entry using ypcat as illustrated by the following example...

This is OK:
% niscat passwd.org_dir | grep rmasse
rmasse:6IggjjjjkUgk2:1075:1000:Roger E.
Masse:/home/rmasse:/depot/sundry/plat/bin/tcsh:10526:-1:-1:-1:-1::0

Where's my passwd?
% ypcat passwd | grep rmasse
rmasse:*NP*:1075:1000:Roger E.
Masse:/home/rmasse:/depot/sundry/plat/bin/tcsh

Here are the column permissions:
% niscat -o passwd.org_dir
Object Name   : passwd
Directory     : org_dir.cnri.reston.va.us.
Owner         : foo.cnri.reston.va.us.
Group         : admin.cnri.reston.va.us.
Access Rights : ----rmcdrmcdr---
Time to Live  : 12:0:0
Creation Time : Mon Apr 20 11:34:08 1998
Mod. Time     : Wed May 31 15:20:07 2000
Object Type   : TABLE
Table Type          : passwd_tbl
Number of Columns   : 8
Character Separator : :
Search Path         :
Columns             :
        [0]     Name          : name
                Attributes    : (SEARCHABLE, TEXTUAL DATA, CASE
SENSITIVE)
                Access Rights : r---r---r---r---
        [1]     Name          : passwd
                Attributes    : (TEXTUAL DATA)
                Access Rights : ----rm--r---r---
        [2]     Name          : uid
                Attributes    : (SEARCHABLE, TEXTUAL DATA, CASE
SENSITIVE)
                Access Rights : r---r---r---r---
        [3]     Name          : gid
                Attributes    : (TEXTUAL DATA)
                Access Rights : r---r---r---r---
        [4]     Name          : gcos
                Attributes    : (TEXTUAL DATA)
                Access Rights : r---rmcdrmcdr---
        [5]     Name          : home
                Attributes    : (TEXTUAL DATA)
                Access Rights : r---rmcdrmcdr---
        [6]     Name          : shell
                Attributes    : (TEXTUAL DATA)
                Access Rights : r---rmcdrmcdr---
        [7]     Name          : shadow
                Attributes    : (TEXTUAL DATA)
                Access Rights : ----r-------r---

Any hints appreciated :)

Roger E. Masse

 
 
 

NIS+ NIS compatibility mode and the 'passwd' map

Post by Roger E. Mass » Fri, 02 Jun 2000 04:00:00


Thanks to "ground zero" for the solution.  I needed to add read
permission
on the 'passwd' column for user 'nobody' to allow for unauthenticated
access
(which is apparently the case using the old YP commands)

> Greetings -- I'm running nis+ with NIS compatibility mode (-Y)
> I'm having trouble getting the encrypted passwd string to appear
> in the entry using ypcat as illustrated by the following example...

> This is OK:
> % niscat passwd.org_dir | grep rmasse
> rmasse:6IggjjjjkUgk2:1075:1000:Roger E.
> Masse:/home/rmasse:/depot/sundry/plat/bin/tcsh:10526:-1:-1:-1:-1::0

> Where's my passwd?
> % ypcat passwd | grep rmasse
> rmasse:*NP*:1075:1000:Roger E.
> Masse:/home/rmasse:/depot/sundry/plat/bin/tcsh

> Here are the column permissions:
> % niscat -o passwd.org_dir
> Object Name   : passwd
> Directory     : org_dir.cnri.reston.va.us.
> Owner         : foo.cnri.reston.va.us.
> Group         : admin.cnri.reston.va.us.
> Access Rights : ----rmcdrmcdr---
> Time to Live  : 12:0:0
> Creation Time : Mon Apr 20 11:34:08 1998
> Mod. Time     : Wed May 31 15:20:07 2000
> Object Type   : TABLE
> Table Type          : passwd_tbl
> Number of Columns   : 8
> Character Separator : :
> Search Path         :
> Columns             :
>         [0]     Name          : name
>                 Attributes    : (SEARCHABLE, TEXTUAL DATA, CASE
> SENSITIVE)
>                 Access Rights : r---r---r---r---
>         [1]     Name          : passwd
>                 Attributes    : (TEXTUAL DATA)
>                 Access Rights : ----rm--r---r---
>         [2]     Name          : uid
>                 Attributes    : (SEARCHABLE, TEXTUAL DATA, CASE
> SENSITIVE)
>                 Access Rights : r---r---r---r---
>         [3]     Name          : gid
>                 Attributes    : (TEXTUAL DATA)
>                 Access Rights : r---r---r---r---
>         [4]     Name          : gcos
>                 Attributes    : (TEXTUAL DATA)
>                 Access Rights : r---rmcdrmcdr---
>         [5]     Name          : home
>                 Attributes    : (TEXTUAL DATA)
>                 Access Rights : r---rmcdrmcdr---
>         [6]     Name          : shell
>                 Attributes    : (TEXTUAL DATA)
>                 Access Rights : r---rmcdrmcdr---
>         [7]     Name          : shadow
>                 Attributes    : (TEXTUAL DATA)
>                 Access Rights : ----r-------r---

> Any hints appreciated :)

> Roger E. Masse


 
 
 

1. Why doesn't passwd/yppasswd update NIS passwd maps?

We've got a NIS password updating problem that seems a bit strange to
me:

We're running an AIX 4.2 host as our NIS master and have a couple of
other AIX, Solaris 2 boxes as NIS clients.

If I change my password on one of the NIS client machines, the NIS-
password map on the NIS server is automatically updated. Just fine!

BUT, if I change my password on the NIS master, only the local password
entry is changed. The NIS password is still the old one!

Anyone got any ideas on why this is? Or where to start looking?

TIA!
//Fredrik

--

  Fredrik Olsson                PHONE :+46 (0) 8 621 97 44
  Celera AB                     FAX   :+46 (0) 8 621 97 70    

  S-175 22 Jarfalla, Sweden     WWW   :http://www.celera.se/~fxo

2. Infomagic LDR

3. NIS+ Compatibility Mode (NIS Client - calendar problem)?

4. filemgr under Solaris 2.3

5. nis+ ( in nis compatibility mode) in heterogenous environs

6. I hear someone is working on ``B'' security...

7. Would NIS+ master work with NIS+ compatibility mode running as replicate

8. Hardware error ?

9. 4.1.3_U1 NIS client of NIS+ in compatibility mode

10. NIS+ in NIS compatibility mode

11. NIS+ NIS V2 compatibility mode...

12. HELP: NIS 'No such map - Can't bind to server'

13. NIS compat mode (Solaris 2.3) for passwd doesn't work?