Map of uid to username for users does not work

From: shady (shady@soficom.com.eg)
Date: Wed Feb 01 2006 - 05:38:05 EST


Dear All

I am facing a strange problem ...i am using solaris 5.8 on enterprise
250 and also on sun blade 100....The problem is that sometimes when i
log by user account (not root) The system gives me the message "Warning
: USER environment variable coul not be set " and i discover that the
user shell is unable to get usernames it gets instead uids (The system
is not using NIS)but using local /etc/passwd and shadow so if i am
loging with account "shady" for example i found the following if i run
the command ls -al :

soficom.com% ls -al
total 12
drwxr-xr-x 3 101 other 512 Aug 29 2004 .
drwxr-xr-x 231 0 other 4608 Jan 25 16:48 ..
-rw-r--r-- 1 101 other 167 Jun 21 2004 .cshrc
-rw------- 1 101 other 7713 Aug 29 2004 .pine-debug1
-rw-r--r-- 1 101 other 11568 Aug 29 2004 .pinerc
-rw-r--r-- 1 101 other 144 May 10 2004 .profile
-rw-r--r-- 1 101 other 73 Jun 17 2004 crono
-rw-r--r-- 1 101 other 124 May 10 2004 local.cshrc
-rw-r--r-- 1 101 other 607 May 10 2004 local.login
-rw-r--r-- 1 101 other 582 May 10 2004 local.profile
drwxr-xr-x 2 101 other 512 Sep 20 2004 mail

using the following command :
soficom.com% ls -al /etc/passwd
total 12
-r-------- 1 0 root 197971 Jan 30 11:00 /etc/passwd

it appears that it is able to get group names(does not use GID)

But the account Root does not suffer from this problem at all where it
can get usernames and uids ...and when this problem happens The user
becomes unable to create files....This server is mail server and when
this happens vacation doesn't work correctly...the problem is totally
solved when i make reboot ...but this is not a solution as this problem
occurs many times...also i discovered something which is that if i made
the permission of /etc/passwd 777(full access permission)...the problem
is solved but ofcourse this is not a solution

Can anyone help me to solve this problem?

Thanks in advance
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:38:48 EDT