How can a user’s default shell be checked, by querying an NIS server?

How can a user’s default shell be checked, by querying an NIS server?

How can a user’s default shell be checked, by querying an NIS server?

A.
ypquery [email protected]

B.
ypgrep user example.com

C.
ypmatch -d example.com user passwd

D.
ypcat -d example.com user

E.
ypq @example.com user +shell



Leave a Reply 3

Your email address will not be published. Required fields are marked *


olivier

olivier

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”

Ektoras

Ektoras

Answer is correct
questione doesnt apply any kind of option related to password

seenagape

seenagape

I agree with the answer.