KIAaze
November 17th, 2011, 01:02 PM
Hi,
What does the "+:*NP*:0:0:::/bin/bash" in the /etc/passwd file of an NIS client mean?
I found this info: http://www.linux-nis.org/nis-howto/HOWTO/settingup_client.html which mentions the following lines:
+::::::
and
+:*::::::/etc/NoShell
The second one apparently makes the account data of all users available, but what does "*NP*" do then?
And isn't that field supposed to be the password field? Even though the password hashes are in /etc/shadow (where I'm also wondering what the "*" and "!" mean).
Another worrying thing I read is the following from the passwd manual:
A line beginning with a '+' means to incorporate entries
from the naming service source. There are three styles of
the '+' entries in this file. A single + means to insert all
the entries from the alternate naming service source at that
point, while a +name means to insert the specific entry, if
one exists, from the naming service source. A +@netgroup
means to insert the entries for all members of the network
group netgroup from the alternate naming service. If a +name
entry has a non-null password, gcos, home-dir, or login-
shell field, the value of that field overrides what is con-
tained in the alternate naming service. The uid and gid
fields cannot be overridden.
cf http://www.cims.nyu.edu/cgi-systems/man.cgi?section=4&topic=passwd
So does that mean that an NIS client user can simply edit /etc/passwd on his machine (physical access=>root access possibility) to gain access to all other accounts on the NIS server?
So lots of questions on the password systems in the end. :)
What does the "+:*NP*:0:0:::/bin/bash" in the /etc/passwd file of an NIS client mean?
I found this info: http://www.linux-nis.org/nis-howto/HOWTO/settingup_client.html which mentions the following lines:
+::::::
and
+:*::::::/etc/NoShell
The second one apparently makes the account data of all users available, but what does "*NP*" do then?
And isn't that field supposed to be the password field? Even though the password hashes are in /etc/shadow (where I'm also wondering what the "*" and "!" mean).
Another worrying thing I read is the following from the passwd manual:
A line beginning with a '+' means to incorporate entries
from the naming service source. There are three styles of
the '+' entries in this file. A single + means to insert all
the entries from the alternate naming service source at that
point, while a +name means to insert the specific entry, if
one exists, from the naming service source. A +@netgroup
means to insert the entries for all members of the network
group netgroup from the alternate naming service. If a +name
entry has a non-null password, gcos, home-dir, or login-
shell field, the value of that field overrides what is con-
tained in the alternate naming service. The uid and gid
fields cannot be overridden.
cf http://www.cims.nyu.edu/cgi-systems/man.cgi?section=4&topic=passwd
So does that mean that an NIS client user can simply edit /etc/passwd on his machine (physical access=>root access possibility) to gain access to all other accounts on the NIS server?
So lots of questions on the password systems in the end. :)