How to identify user?

 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers How to identify user?
# 1  
Old 09-20-2017
How to identify user?

Hi Team

I have created some time back a user called "iuser"
but I am not able to login with it. I am getting below error.
Code:
# su - iuser
su: user iuser does not exist

tried to unlock the user still get same error
Code:
 
# pam_tally2 -u iuser -r
pam_tally2: pam_get_uid; no such user iuser
pam_tally2: Unknown user

however I can see iuser entry in /etc/passwd

Code:
 
app:x:1013:1013::/home/app:/bin/bash
iuser:x:1014:1014::/home/iuser:/bin/bash

also it is present under home directory but the permission is different in comparison to other user

Code:
drwxr-xr-x. 3 root   root   4096 Sep  2  2016 iuser
drwx------. 2 app    app    4096 Mar  1  2017 app

can you tell me what could be the problem here as I user is present in system

Last edited by scriptor; 09-20-2017 at 04:36 AM.. Reason: typo error
# 2  
Old 09-20-2017
Is there an iuser entry in the /etc/shadow file?
# 3  
Old 09-20-2017
yes iuser entry present in /etc/shadow
# 4  
Old 09-20-2017
Hello scriptor,

What is your OS ? Which command do you use to add this user ?
# 5  
Old 09-21-2017
What does
Code:
grep ^passwd: /etc/nsswitch.conf

produce?
# 6  
Old 10-27-2017
os is Linux

below is the O/P of command
Code:
 
 grep ^passwd: /etc/nsswitch.conf
passwd:     files

# 7  
Old 10-27-2017
Out of curiosity, what permissions do you have on /etc/passwd (including any ACLs)? Try it also with getent passwd.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Cybersecurity

Please help identify these user account

Please help me identify these user accounts.. bin, lp, nuucp, smbnull, mysql, tftp Can we remove these user or disable these users?We have to apply the security policy about the user identification.Since it was settup by our vendor long time ago. We do not have these informations about these... (3 Replies)
Discussion started by: rdstkg
3 Replies

2. AIX

Identify User Attributes

SOS Guys... Is there any way to determine the user attributes, mainly if that userid is set as never expire? I do not have admin rights, and I'm working on AIX 5.3 I've tried : lsuser -f <username> but no luck on that (2 Replies)
Discussion started by: freakygs
2 Replies

3. Shell Programming and Scripting

Identify script please!

Have a script that I'm trying to adapt for something else, but I do not understand the following lines. Can anyone help? I know what expr does, `expr 8 + 2`, but: FILENAME=`expr //$FILE : '.*/\(.*\)'` UNPACKDIR=`echo $FILE | sed -e s/$FILENAME//g` Thanks (6 Replies)
Discussion started by: bound4h
6 Replies

4. UNIX for Advanced & Expert Users

Determining if user is local-user in /etc/passwd or LDAP user

Besides doing some shell-script which loops through /etc/passwd, I was wondering if there was some command that would tell me, like an enhanced version of getent. The Operating system is Solaris 10 (recent-ish revision) using Sun DS for LDAP. (5 Replies)
Discussion started by: ckmehta
5 Replies

5. Shell Programming and Scripting

Identify root like user.

Hi All, I wanted to know if there is any way , in which a user could be identified. I need to diffrenciate between a root user and a root like user. Thanks! nua7 (4 Replies)
Discussion started by: nua7
4 Replies

6. UNIX for Dummies Questions & Answers

To identify process

i want a command to display all the process running for partical user and in all process i want to see only particular process details.. pls suggest comand like ps -ef (1 Reply)
Discussion started by: Babu154
1 Replies

7. AIX

to identify failed pv

Hi friends,.... am sindhiya, i have joined as AIX level 1 support. help me to identify the failed pv in vg which has some 4 physical volumes? (2 Replies)
Discussion started by: sindhiya
2 Replies

8. Shell Programming and Scripting

How to identify User Machine name?

Hi Experts, We 4 to 5 people are using same UNIX(Solaris) login for our testing purpose. Also we are doing some modifications to existing scripts. Is it possible to know the each user machine (IP address or machine name) who are using the same login to modify the scripts. So that we can... (12 Replies)
Discussion started by: ganapati
12 Replies

9. Shell Programming and Scripting

identify function

Does anyone know a shell command that identifies the functions from a C file? Thank you (7 Replies)
Discussion started by: xinfinity
7 Replies

10. Filesystems, Disks and Memory

identify hardware

Does anyone know a good script/tool for remote identification of hardware on a linux-based system (RH9/NLD) ? I'd like to know all the specifics like amount of memory, motherboard vendor, chipset and so on.... (0 Replies)
Discussion started by: patrickb
0 Replies
Login or Register to Ask a Question