Article View: news.software.readers
Article #33316Re: slrn and USER variable
From: Greg Wooledge
Date: Sat, 03 May 1997 00:00
Date: Sat, 03 May 1997 00:00
29 lines
1825 bytes
1825 bytes
On 3 May 1997 14:11:06 GMT, root <root@truck.com.au> wrote: >When attempting to launch slrn it tells me that it is unable to find my username and that I should set the USER environment variable. How do I do this? In my profile? What's the exact syntax? Please keep your lines below 80 characters. >I'm running Red Hat Linux 4.1. I noticed a funny thing a while ago. If you login with getty+login on a virtual console, you get $LOGNAME defined (SysV behavior). However, if you login with xdm (under X), you get $USER defined (BSD behavior). That really shocked me. A good fix for this, if you and all other users on your system use bash, is to add something like this to /etc/profile: [ -z "$LOGNAME" ] && export LOGNAME=$USER # for xdm [ -z "$USER" ] && export USER=$LOGNAME # for login I'll leave [t]csh bastar^H^H^H^H^H^Hconversion as an exercise for the reader. I've included comp.os.linux.setup in posting this message. -- ------------ Greg Wooledge ------------- ------- wooledge@kellnet.com ------- --- http://kellnet.com/wooledge/main.html ---
Technical Details
Message-ID:
<slrn5mmspu.a9e.wooledge@phoenix.local>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<5kfh1q$dgh@kosh.fl.net.au>Show Full Headers
Complete Article Headers
Message-ID: <slrn5mmspu.a9e.wooledge@phoenix.local> Subject: Re: slrn and USER variable Date: Sat, 03 May 1997 00:00:00 +0000 From: wooledge@kellnet.com (Greg Wooledge) References: <5kfh1q$dgh@kosh.fl.net.au> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 239273867 Organization: homo sapiens Reply-To: wooledge@kellnet.com Newsgroups: news.software.readers,comp.os.linux.setup