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.
# su - iuser
su: user iuser does not exist
tried to unlock the user still get same error
# 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
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
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
Is there an iuser entry in the /etc/shadow file?
yes iuser entry present in /etc/shadow
Hello scriptor,
What is your OS ? Which command do you use to add this user ?
What does
grep ^passwd: /etc/nsswitch.conf
produce?
os is Linux
below is the O/P of command
grep ^passwd: /etc/nsswitch.conf
passwd: files
Scott
October 27, 2017, 10:57am
7
Out of curiosity, what permissions do you have on /etc/passwd (including any ACLs)? Try it also with getent passwd
.
rbatte1
October 27, 2017, 11:18am
8
Can you paste the line from /etc/shadow for this user. Feel free to adjust a few characters of the encrypted password if you worry about someone brute force cracking the password. Note that a leading !
locks the account. The trailing few columns are about password age/expiry etc.
Have you tried just resetting the password?
Robin