• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 584
  • Last Modified:

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
0
jayatallen
Asked:
jayatallen
  • 3
  • 3
  • 2
  • +1
2 Solutions
 
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
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

 
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
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 3
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now