How can a user’s default shell be checked, by querying an NIS server?
A.
ypquery user@example.com
B.
ypgrep user example.com
C.
ypmatch -d example.com user passwd
D.
ypcat -d example.com user
E.
ypq @example.com user +shell
How can a user’s default shell be checked, by querying an NIS server?
A.
ypquery user@example.com
B.
ypgrep user example.com
C.
ypmatch -d example.com user passwd
D.
ypcat -d example.com user
E.
ypq @example.com user +shell
You must be logged in to post a comment.
Shouldn’t this be C. ?
ypmatch [ -kt ] [ -d domain ] key … mapname
ypcat [ -kt ] [ -d domain ] [ -h hostname ] mapname
where mapname is on of the following:
Use “ethers” for map “ethers.byname”
Use “aliases” for map “mail.aliases”
Use “services” for map “services.byname”
Use “protocols” for map “protocols.bynumber”
Use “hosts” for map “hosts.byname”
Use “networks” for map “networks.byaddr”
Use “group” for map “group.byname”
Use “passwd” for map “passwd.byname”
So answer C would match for the user “user” in the passwd map. Using ypcat, in my opinion, it would be “ypcat -d example.com passwd | grep user”
0
0
Answer is correct
questione doesnt apply any kind of option related to password
0
0