Mail from ILUG-BOM list (Non-Digest Mode)
_______________________________________________
On Fri, 4 Aug 2000, Kiran Jonnalagadda wrote:
> Issue: "su" does not change the value of $USER. It correctly modifies
> $UID though. Does anyone want to modify this code to retrieve the
> correct username given UID?
USER=`grep ":x:$UID:" /etc/passwd | cut -d: -f1`
only works with shadow passwords.
(which is what you should be using)
- cnb.
_______________________________________________
Website: http://www.ilug-bom.org.in/ilug
Linuxers mailing list
[EMAIL PROTECTED]
http://ilug-bom.org.in/mailman/listinfo/linuxers