Databases
cancel
Showing results for 
Search instead for 
Did you mean: 

no login with associated with UID

cliff zhou
Occasional Contributor

no login with associated with UID

Hi,

I use csh, what's the reason to cause these:
% whoami
% whoami: no login associated with uid 1214.

Thanks in advance

cliff
2 REPLIES
Steven Sim Kok Leong
Honored Contributor

Re: no login with associated with UID

Hi,

Try performing the following:

# awk -F: '{print $3}' /etc/passwd|grep 1214

Was 1214 returned as the output?

If your system is trusted, also check the following:

# cd /
# for i in `find /tcb/files/auth -type f`;do echo $i; grep 'u_id#1214:' $i;done

Are there any files containing 1214 as the uid?

If not, you might have a run-away uid that has no associated login name either in /etc/passwd or /tcb/files/auth/ (if trusted).

If your /etc/passwd and /tcb/files/auth/ is not in sync, this error might just happen.

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
Email: steven@beepz.com. Homepage: https://www.beepz.com
Steven Sim Kok Leong
Honored Contributor

Re: no login with associated with UID

Hi,

If your /etc/utmp is corrupted, it is also possible to get such an error since the whoami command reads from /etc/utmp to report the initial login name.

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
Email: steven@beepz.com. Homepage: https://www.beepz.com