ypcat passwd not able to list if the user has 3 digit user id
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I am trying to migrate nis server from solaris to redhat(7.5), as per the doc I have exported /etc/passwd
and /etc/group
from solaris to redhat and made NIS up and running.
If my /etc/passwd
is e.g.:
james:x:554:101::/users/james:/bin/bash
kevin:x:723:103::/users/kevin:/usr/bin/bash
jerry:x:1130032140:101::/users/jerry:/usr/bin/bash
jose:x:1130032178:103::/users/jose:/usr/bin/bash
These are my NIS users but if I do ypcat passwd
I am able to see only jerry
and jose
. james
and kevin
are not listed.
If I change the user id to 4 digit (e.g., 5544
) after make
I am able to see the user.
The thing is if the user id is 3 digit ypcat passwd
does not list that user.
linux rhel users solaris nis
 |Â
show 1 more comment
up vote
1
down vote
favorite
I am trying to migrate nis server from solaris to redhat(7.5), as per the doc I have exported /etc/passwd
and /etc/group
from solaris to redhat and made NIS up and running.
If my /etc/passwd
is e.g.:
james:x:554:101::/users/james:/bin/bash
kevin:x:723:103::/users/kevin:/usr/bin/bash
jerry:x:1130032140:101::/users/jerry:/usr/bin/bash
jose:x:1130032178:103::/users/jose:/usr/bin/bash
These are my NIS users but if I do ypcat passwd
I am able to see only jerry
and jose
. james
and kevin
are not listed.
If I change the user id to 4 digit (e.g., 5544
) after make
I am able to see the user.
The thing is if the user id is 3 digit ypcat passwd
does not list that user.
linux rhel users solaris nis
2
There is often a configuration setting somewhere that sets the smallest (and possibly largest) UID that NIS/YP should serve. This is so that system user accounts (such as root and others) are not included in the list. The minimal number may well be 1000 (this is the default minimum on OpenBSD at least).
â Kusalananda
Sep 27 at 17:18
thanks, please let me know where i need to change the minimal number as 100
â user45898
Sep 27 at 17:55
1
That's exactly why I didn't write this as an answer. I've only ever used NIS on OpenBSD and NetBSD, never on Solaris or Linux. I don't know where you would configure it on those systems, and I don't know if changing the minimum UID to 100 would be the right (or secure) thing to do.
â Kusalananda
Sep 27 at 17:59
it may be configured via something under /etc/pam.d, though I've never run NIS so don't know if there's something specific for it under that dir or if that hides somewhere else
â thrig
Sep 27 at 18:45
1
I don't have RHEL, but look forMINUID
andMINGID
lines in/var/yp/Makefile
.
â Mark Plotnick
Sep 27 at 22:12
 |Â
show 1 more comment
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I am trying to migrate nis server from solaris to redhat(7.5), as per the doc I have exported /etc/passwd
and /etc/group
from solaris to redhat and made NIS up and running.
If my /etc/passwd
is e.g.:
james:x:554:101::/users/james:/bin/bash
kevin:x:723:103::/users/kevin:/usr/bin/bash
jerry:x:1130032140:101::/users/jerry:/usr/bin/bash
jose:x:1130032178:103::/users/jose:/usr/bin/bash
These are my NIS users but if I do ypcat passwd
I am able to see only jerry
and jose
. james
and kevin
are not listed.
If I change the user id to 4 digit (e.g., 5544
) after make
I am able to see the user.
The thing is if the user id is 3 digit ypcat passwd
does not list that user.
linux rhel users solaris nis
I am trying to migrate nis server from solaris to redhat(7.5), as per the doc I have exported /etc/passwd
and /etc/group
from solaris to redhat and made NIS up and running.
If my /etc/passwd
is e.g.:
james:x:554:101::/users/james:/bin/bash
kevin:x:723:103::/users/kevin:/usr/bin/bash
jerry:x:1130032140:101::/users/jerry:/usr/bin/bash
jose:x:1130032178:103::/users/jose:/usr/bin/bash
These are my NIS users but if I do ypcat passwd
I am able to see only jerry
and jose
. james
and kevin
are not listed.
If I change the user id to 4 digit (e.g., 5544
) after make
I am able to see the user.
The thing is if the user id is 3 digit ypcat passwd
does not list that user.
linux rhel users solaris nis
linux rhel users solaris nis
edited Sep 27 at 17:16
Eric Renouf
13k42949
13k42949
asked Sep 27 at 17:13
user45898
212
212
2
There is often a configuration setting somewhere that sets the smallest (and possibly largest) UID that NIS/YP should serve. This is so that system user accounts (such as root and others) are not included in the list. The minimal number may well be 1000 (this is the default minimum on OpenBSD at least).
â Kusalananda
Sep 27 at 17:18
thanks, please let me know where i need to change the minimal number as 100
â user45898
Sep 27 at 17:55
1
That's exactly why I didn't write this as an answer. I've only ever used NIS on OpenBSD and NetBSD, never on Solaris or Linux. I don't know where you would configure it on those systems, and I don't know if changing the minimum UID to 100 would be the right (or secure) thing to do.
â Kusalananda
Sep 27 at 17:59
it may be configured via something under /etc/pam.d, though I've never run NIS so don't know if there's something specific for it under that dir or if that hides somewhere else
â thrig
Sep 27 at 18:45
1
I don't have RHEL, but look forMINUID
andMINGID
lines in/var/yp/Makefile
.
â Mark Plotnick
Sep 27 at 22:12
 |Â
show 1 more comment
2
There is often a configuration setting somewhere that sets the smallest (and possibly largest) UID that NIS/YP should serve. This is so that system user accounts (such as root and others) are not included in the list. The minimal number may well be 1000 (this is the default minimum on OpenBSD at least).
â Kusalananda
Sep 27 at 17:18
thanks, please let me know where i need to change the minimal number as 100
â user45898
Sep 27 at 17:55
1
That's exactly why I didn't write this as an answer. I've only ever used NIS on OpenBSD and NetBSD, never on Solaris or Linux. I don't know where you would configure it on those systems, and I don't know if changing the minimum UID to 100 would be the right (or secure) thing to do.
â Kusalananda
Sep 27 at 17:59
it may be configured via something under /etc/pam.d, though I've never run NIS so don't know if there's something specific for it under that dir or if that hides somewhere else
â thrig
Sep 27 at 18:45
1
I don't have RHEL, but look forMINUID
andMINGID
lines in/var/yp/Makefile
.
â Mark Plotnick
Sep 27 at 22:12
2
2
There is often a configuration setting somewhere that sets the smallest (and possibly largest) UID that NIS/YP should serve. This is so that system user accounts (such as root and others) are not included in the list. The minimal number may well be 1000 (this is the default minimum on OpenBSD at least).
â Kusalananda
Sep 27 at 17:18
There is often a configuration setting somewhere that sets the smallest (and possibly largest) UID that NIS/YP should serve. This is so that system user accounts (such as root and others) are not included in the list. The minimal number may well be 1000 (this is the default minimum on OpenBSD at least).
â Kusalananda
Sep 27 at 17:18
thanks, please let me know where i need to change the minimal number as 100
â user45898
Sep 27 at 17:55
thanks, please let me know where i need to change the minimal number as 100
â user45898
Sep 27 at 17:55
1
1
That's exactly why I didn't write this as an answer. I've only ever used NIS on OpenBSD and NetBSD, never on Solaris or Linux. I don't know where you would configure it on those systems, and I don't know if changing the minimum UID to 100 would be the right (or secure) thing to do.
â Kusalananda
Sep 27 at 17:59
That's exactly why I didn't write this as an answer. I've only ever used NIS on OpenBSD and NetBSD, never on Solaris or Linux. I don't know where you would configure it on those systems, and I don't know if changing the minimum UID to 100 would be the right (or secure) thing to do.
â Kusalananda
Sep 27 at 17:59
it may be configured via something under /etc/pam.d, though I've never run NIS so don't know if there's something specific for it under that dir or if that hides somewhere else
â thrig
Sep 27 at 18:45
it may be configured via something under /etc/pam.d, though I've never run NIS so don't know if there's something specific for it under that dir or if that hides somewhere else
â thrig
Sep 27 at 18:45
1
1
I don't have RHEL, but look for
MINUID
and MINGID
lines in /var/yp/Makefile
.â Mark Plotnick
Sep 27 at 22:12
I don't have RHEL, but look for
MINUID
and MINGID
lines in /var/yp/Makefile
.â Mark Plotnick
Sep 27 at 22:12
 |Â
show 1 more comment
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f471891%2fypcat-passwd-not-able-to-list-if-the-user-has-3-digit-user-id%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
2
There is often a configuration setting somewhere that sets the smallest (and possibly largest) UID that NIS/YP should serve. This is so that system user accounts (such as root and others) are not included in the list. The minimal number may well be 1000 (this is the default minimum on OpenBSD at least).
â Kusalananda
Sep 27 at 17:18
thanks, please let me know where i need to change the minimal number as 100
â user45898
Sep 27 at 17:55
1
That's exactly why I didn't write this as an answer. I've only ever used NIS on OpenBSD and NetBSD, never on Solaris or Linux. I don't know where you would configure it on those systems, and I don't know if changing the minimum UID to 100 would be the right (or secure) thing to do.
â Kusalananda
Sep 27 at 17:59
it may be configured via something under /etc/pam.d, though I've never run NIS so don't know if there's something specific for it under that dir or if that hides somewhere else
â thrig
Sep 27 at 18:45
1
I don't have RHEL, but look for
MINUID
andMINGID
lines in/var/yp/Makefile
.â Mark Plotnick
Sep 27 at 22:12