*BSD News Article 6154


Return to BSD News archive

Path: sserve!manuel.anu.edu.au!munnari.oz.au!spool.mu.edu!uwm.edu!caen!uunet!mcsun!sun4nl!tuegate.tue.nl!svin09!wzv!gvr.win.tue.nl!guido
From: guido@gvr.win.tue.nl (Guido van Rooij)
Newsgroups: comp.unix.bsd
Subject: Re: uid's under Xfree
Message-ID: <3958@wzv.win.tue.nl>
Date: 7 Oct 92 20:09:43 GMT
References: <3957@wzv.win.tue.nl>
Sender: news@wzv.win.tue.nl
Organization: Guido's home 486 box
Lines: 24

In article <3957@wzv.win.tue.nl> guido@gvr.win.tue.nl (Guido van Rooij) writes:
>I noticed a strange behaviour when i did a talk to another user on my machine.
>I was logged on using X, under xdm, say as user 'foo'. However when i did
>that talk request, talk said: respond with talk root@<machine>
>I dont know where exactly talk gets its uid from, but something serious
>is wrong here. Maybe I gave the wrong programs an suid bit...
>The programs involved are xdm, X386 and xterm. Only X386 and xterm have sbits
>set. Isn't this correct? 
>The output of id  also seems correct (it doesn't say i have uid 0).
>
>Can anyone explain this?
>
>-Guido
After a bit of looking into the code of talk, I found out that getlogin()
returns "root". Of course this is wrong. But isnt the chooser (of xdm)
responsible for issueing a setlogin(), everytime a new user logs in?
I can't think of another solution here....or maybe the chooser should also
have an sbit set....I dont know this. I installed all of the x stuff as
i ftp-ed it...And there were no sbits set in any of the programs. So
I had to find out a bit which programs to give one, and which not.
Can anyone please post a list of s-bit needing programs? (even if that
doesnt solve the problem, it would sure help).

-Guido