Path: utzoo!attcan!uunet!island!daniel From: daniel@island.uu.net (Dan Smith - Hail Quayle? No Sale!) Newsgroups: news.software.b Subject: Re: Looking for .sig, or not Message-ID: <392@island.uu.net> Date: 8 Oct 88 23:17:19 GMT References: <8043@umn-cs.CS.UMN.EDU> Reply-To: daniel@island.uu.net (Dan Smith - Hail Quayle? No Sale!) Organization: Island Graphics, Marin County, California Lines: 38 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