nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

can not find the username in /etc/passwd file

This is a discussion on can not find the username in /etc/passwd file within the Getting started tutorials forums, part of the Linux Getting Started category; I am not able to find a particular user name which is used to login over ssh, in /etc/passwd and ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Getting started tutorials

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 03-23-2007, 07:33 PM
Junior Member
User
 
Join Date: Mar 2007
Posts: 6
Rep Power: 0
subrata1in
Default can not find the username in /etc/passwd file

I am not able to find a particular user name which is used to login over ssh, in /etc/passwd and /etc/shadow file. Login attempt is successful because I can found that username when I issue "w" command (“w” command is same as “who”).

Strange thing is that I can even create user with same name with which I am already logged in (no error reported). I think user creation is also successful because, now I can find the user name in /etc/passwd file. But when I try to delete that user an error occur (telling that user already logged in).

Any idea about this issue??????? Mind that I am using SSH to connect Linux. I think my Linux is bit different.
Here is the description about the OS... OS name - Linux, OS release - 2.6.14VENTURI64, OS version - #5 SMP.
Any idea how to configure a user like that??????????????

Thanks
Subrata
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-24-2007, 03:56 AM
Senior Member
User
 
Join Date: Dec 2006
Location: /B!n@ry
My distro: openSuSE 10.2
Posts: 127
Rep Power: 0
B!n@ry
Send a message via MSN to B!n@ry
Default

Maybe you have 2 users using the same ID ? Check and see if there is 2 users with the same ID.
And please give us the following:
cat /etc/passwd
cat /etc/group
ls -la /home

+ please give me the answer for the cmd:
id
__________________
LivE Free 0r DiE
L!nux rul3z aLL
Reply With Quote
  #3 (permalink)  
Old 03-26-2007, 12:02 PM
Junior Member
User
 
Join Date: Mar 2007
Posts: 6
Rep Power: 0
subrata1in
Default What do u mean by "2 users using the same ID"

Sorry I cant get u. Actually what do u mean by two users with same ID ?? From where I should check that two users have same ID or not?????????????? How can we configure that ?????????????????

cat /etc/passwd
--------------------------
root:0:0:root:/root:/bin/bash
uucp:*:1:1::/tmp/NOLOGIN
man:*:65533:65533::/tmp/NOLOGIN
nobody:65534:65534::/tmp:NOLOGIN
admin:1000:1000::/home/admin:/usr/sbin/runcli
pcap:1001:1001::/mnt/cache:/bin/false
squid:1002:1002::/mnt/cache:/bin/false
vrtsp:1003:1003::/var/log/vrtsp:/bin/false
sshd:1004:1004::/var/empty:/bin/false
ntp:1005:1005::/dev/null:/bin/false


cat /etc/group
-----------------------------
root:0:root
uucp:1:uucp
tty:2:
users:100:
man:65533:man
nobody:65534:nobody
admin:1000:
pcap:1001:
squid:1002:
vrtsp:1003:
sshd:1004:
ntp:1005:


ls -la /home
-------------------------------
drwxr-xr-x 3 644 admin 1024 Mar 25 00:11 .
drwxr-xr-x 5 root root 1024 Mar 25 00:11 ..
drwxr-xr-x 2 644 admin 1024 Mar 25 00:11 admin



And wt do you mean by "please give me the answer for the cmd: id" ??????????????????????


Subrata
Reply With Quote
  #4 (permalink)  
Old 03-26-2007, 12:12 PM
Junior Member
User
 
Join Date: Mar 2007
Posts: 6
Rep Power: 0
subrata1in
Default Plz Keep in mind

Please keep in mind that "admin" is not the user we are tring to login. We are able to sucessfully login over SSH with another user(xmladmin) which is not present in /etc/passwd file. And we do not have any directory in /home folder with the name "xmladmin" .........
Reply With Quote
  #5 (permalink)  
Old 03-27-2007, 10:07 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,036
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

You may be using OpenLDAP or SAMBA or NIS centralized authentication. Let me know if you need any further help!
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #6 (permalink)  
Old 03-27-2007, 12:45 PM
Junior Member
User
 
Join Date: Mar 2007
Posts: 6
Rep Power: 0
subrata1in
Default How I can be sure about that ??

I am not sure about whether OpenLDAP or SAMBA or "NIS centralized authentication" is used or not ????????But I think they are not used....... Please tell me how I can check whether OpenLDAP or SAMBA or NIS is used in my system or not ????????????? And if possible plz describe a little bit how they take part in linux login process ........

Subrata
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
To find and replace in text file nashtech Shell scripting 3 07-31-2008 07:46 PM
Passwd bubloob_13 Getting started tutorials 2 03-24-2008 11:04 PM
find a word in a file, and change a word beneath it ?? vikas027 Shell scripting 2 02-14-2008 01:53 AM
can not find user name in /etc/passwd file subrata1in Linux software 2 03-26-2007 11:44 AM
Find out information about my file - explaining ls command sweta Getting started tutorials 1 01-11-2007 05:21 PM


All times are GMT +5.5. The time now is 09:02 PM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36