Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!swrinde!ucsd!ucbvax!van-bc!twg!bill From: bill@twg.wimsey.bc.ca (Bill Irwin) Newsgroups: comp.unix.questions Subject: Re: loginid vs. uid. Message-ID: <232@twg.wimsey.bc.ca> Date: 14 Jul 90 09:32:20 GMT References: <316@dynasys.UUCP> Organization: TWG The Westrheim Group, Vancouver, B.C., Canada Lines: 25 In <316@dynasys.UUCP> jessea@dynasys.UUCP (Jesse W. Asher) writes: [...] >My question is does anyone else view them this way, and if not what is >the relationship? The reason I make this distinction is because your >uid can be changed while your loginid doesn't have to be changed - the >os looks at your uid (the number) to determine who your are in most >cases. An example is su changing your uid to 0 (or to whatever your su >uid is) while leaving your login intact. Of course you can have both ^^^^^^^^^^^^^^^^^ >changed, but the above leaves me to believe that they are not ^^^^^^^ >interchangeable concepts. The uid is not the same as the loginid. >Does anyone have any comments on this? How do you change your logname to "wimp" when you "su - wimp"? I have an email application that uses the logname to determine which directory structure to deal with in mail sessions, which makes it impossible to su to another user and read their mail. -- Bill Irwin - TWG The Westrheim Group - Vancouver, BC, Canada ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ uunet!van-bc!twg!bill (604) 431-9600 (voice) | UNIX Systems bill@twg.wimsey.bc.ca (604) 431-4629 (fax) | Integration