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 ...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
|
|||
|
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 |
| Sponsored Links | ||
|
|
|
|||
|
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 |
|
|||
|
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 uucp:*:1:1::/tmp/NOLOGIN man:*:65533:65533::/tmp/NOLOGIN nobody admin pcap squid vrtsp sshd ntp cat /etc/group ----------------------------- root uucp tty users man nobody admin pcap squid vrtsp sshd ntp 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 |
|
|||
|
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" .........
|
|
|||
|
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 |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| 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 |