Newbie question - determining the logged in user

From: Billy Talton (billy.talton@cornerstone.net)
Date: Tue Sep 09 2003 - 11:16:43 EDT


All,

I'd like setup a few global variables and 'echos' for my users on my Solaris
8 system. I'd like to echo messages/instructions conditionally. I know I
can put such logic in the /etc/profile script. How can I determine which
users executing this universal script? I'm really only interested in
non-root users. Is there any way to determine if the user's root? Thanks
in advance.
Sincerely,

Billy Talton
Cornerstone Consulting, Inc.
www.cornerstone.net
414-212-3500/414-467-6827
billy.talton@cornerstone.net
_______________________________________________
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:27:05 EDT