PrepAway - Latest Free Exam Questions & Answers

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 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

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

  1. olivier says:

    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

Leave a Reply