randy@umn-cs.CS.UMN.EDU (Randy Orrison) (10/04/88)
I let a couple friends use my account to read/post news. Setting their HOME environment variable works great for everything, except .signature, which is always taken from my home directory. This is real frustrating, since the only way I've found so for for them not to include my .sig is for them to delete it when they're logged in. Why doesn't whatever copies in .signature look in $HOME? What is it, anyway, that copies in .signature? None of the man pages mention it (Pnews or inews or rn!). I've tried setting $DOTDIR but that doesn't work either. How do I tell it where to find .signature? Thanks! -randy -- Randy Orrison, Chemical Computer Thinking Battery -- randy@cctb.mn.org randy@ux.acss.umn.edu {bungia, uunet!hi-csc, rutgers, sun}!umn-cs!randy Surprise your boss. Get to work on time.
pokey@well.UUCP (Jef Poskanzer) (10/05/88)
In the referenced message, randy@umn-cs.cs.umn.edu (Randy Orrison) wrote: }Why doesn't whatever copies in .signature look in $HOME? What is it, }anyway, that copies in .signature? None of the man pages mention it }(Pnews or inews or rn!). I've tried setting $DOTDIR but that doesn't }work either. It varies from site to site. At some sites, Pnews appends .signature; at other sites, inews does it. And then there are the sites where *both* append it... It sounds like your site is of the inews variety, since I know the code in Pnews looks at DOTDIR, HOME, and LOGDIR. Since you probably have no control over what inews does, I suggest you make yourself a modified version of Pnews that includes your sig, but from a different filename. I use .newsignature. --- Jef Jef Poskanzer jef@rtsg.ee.lbl.gov ...well!pokey "If the barking of a dog disturbs your meditation, it is simplest to shoot the dog, and think no more about it." -- Aleister Crowley
) (10/09/88)
In article <8043@umn-cs.CS.UMN.EDU> randy@umn-cs.cs.umn.edu (Randy Orrison) writes: > >I let a couple friends use my account to read/post news. Setting >their HOME environment variable works great for everything, except >.signature, which is always taken from my home directory. You're probably setting $HOME in .login, right? You could check the value of $HOME and use that to copy the correct .signature.user to .signature. Say I have two friends, gumby and pokey, that use my account. I would do this in my .login after $HOME is set: (note: $MYHOME is set to where an account starts, which for me is the value I'd get from: "grep daniel /etc/passwd | awk -F: ' { print $6 } '") (assuming standard csh .login sequence) switch ($HOME) case "gumby": cp $MYHOME/.signature.gumby $MYHOME/.signature breaksw case "pokey": cp $MYHOME/.signature.pokey $MYHOME/.signature breaksw default: cp $MYHOME/.signature.default $MYHOME/.signature breaksw endsw So now you don't have to worry about *where* the .signature file is, and your friends can set up their own :-) dan -- DanSmith IslandGraphics 4000CivicCenterDr SanRafael MarinCo CA 94903 4154911000 daniel@island.uu.net {ucbvax!ucbcad,sun,well,unicom,mcvax!uunet}!island!daniel 415 332 FAST(h) 491 0402(Fax)|d: Nobodys' fault but mine| UnixFeastsMusicFilm President Quayle?...are you kidding? Bush is bad enough. Vote for Dukakis
jos@idca.tds.PHILIPS.nl (Jos Vos) (10/10/88)
In article <8043@umn-cs.CS.UMN.EDU> randy@umn-cs.cs.umn.edu (Randy Orrison) writes: >Why doesn't whatever copies in .signature look in $HOME? What is it, >anyway, that copies in .signature? None of the man pages mention it >(Pnews or inews or rn!). I've tried setting $DOTDIR but that doesn't >work either. I agree that inews should look at $HOME, but it doesn't. It looks at the field in the /etc/passwd file to find the user's home directory. Watch out: this holds for inews. As said in another reply, some other programs look at other things! -- -- ###### Jos Vos ###### Internet jos@idca.tds.philips.nl ###### -- ###### ###### UUCP ...!mcvax!philapd!jos ######