username doesnt have entry in /etc/passwd file on solaris

hi Folks,

My question is related with users account defined in /etc/passwd in solaris 10.
I have userid n361203 on a solaris box but its not mentioned in passwd file.
I did

$ grep -i n361203 passwd
$ id -a n361203
uid=74255(n361203) gid=1374(operate) groups=4241(a_dmadms),3791(a_resad),2948(a_rx),1425(a_transact),1246(a_was0),3590(batch),3594(bondhub),3425(cws),3480(firop),3901(ibcwas5),2581(jdsop),3424(mm),3588(mmrc),3589(tmc),4380(u_embgrp),4578(u_ibkrro)
$ pwd
/etc
$

I dont see any entry for n361203 but i know the account exists as i logged in using it.
I thought every username should a line in /etc/passwd file?

Please suggest.

Thank you,
Joe
jayatallenAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Joseph GanSystem AdminCommented:
Looks like you don't have the permision to read the passwd file.
0
TintinCommented:
/etc/passwd contains all locally defined users.

Users can also be defined in NIS, NIS+ and LDAP.

0
jayatallenAuthor Commented:
Hi ganjos,Tintin--
I could view the /etc/passwd file .But it has long listing so i did grep for my userid.
So can i say its not mandatory to have a "user name" defined in /etc/passwd file?

thank you

0
Amazon Web Services

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

TintinCommented:
Correct.   A user can be defined in the services I listed.

What does

grep pass /etc/nsswitch.conf

Open in new window


display?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
omarfaridCommented:
ask your system admin (root) if NIS or LDAP are used for users
0
jayatallenAuthor Commented:
Hi,

this is what is i see
bash-3.00$ grep pass /etc/nsswitch.conf
# the following two lines obviate the "+" entry in /etc/passwd and /etc/group.
passwd:     files ldap

A snippet from the nsswitch.conf

# /etc/nsswitch.ldap:
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# uses LDAP in conjunction with files.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.

# the following two lines obviate the "+" entry in /etc/passwd and /etc/group.
passwd:     files ldap
group:      files ldap

# consult /etc "files" only if ldap is down.
# Problem when ldap not quite up therfore
# check files first
# at COMPANY NAME, ldap not utilized for hosts
hosts: files dns
ipnodes:    files
0
omarfaridCommented:
as it can be seen from nsswitch.conf file ldap is also used for users
0
TintinCommented:
OK, the user n361203 will be defined in LDAP.
0
jayatallenAuthor Commented:
thank you guys.. i think a normal user cant access LDAP.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.