On Thu, Sep 15, 2005 at 10:49:25PM +0200, Andreas Pakulat wrote: > Ok, so when I use xterm I have problem, but...
but it's a known thing for which there's a solution. > > For the same reason, (or perhaps they're using old-style pty's) several > > other programs (I see Eterm, aterm, rxvt) are setuid. gnome-terminal > > and konsole aren't (but they're end-user applications designed to be run > > in sessions - though google hints that they might want to write to utmp > > - I see many bug reports ;-) > > I actually am using konsole and I don't have this variable in my > export-list. Is there any way for me to find out who unsets the variable > (i.e. which program is setuid)? Because I think some kde program does > that - either kdm or something during kde startup. If I use > xfce4-terminal (which isn't setuid) with startx I have my > LD_LIBRARY_PATH. I'm not sure - konsole involves a lot of programs when it starts up. ldd shows me 39 libraries that it loads. Since the environ array can be manipulated directly without system calls, ltrace probably wouldn't show this (and ltrace would produce a long listing for something like konsole). KDE developers should be able to answer the question with only a few moments' thought. There are other variables that are also removed from setuid programs, but LD_LIBRARY_PATH is the most noticeable (I don't have a list at hand). > If there's no easy way to do this, I guess I have to move the bug over > to kdm and take it from there... That sounds right. > Andreas > > PS: Can it be, that this only happens with the "new" libc? Because I > know for sure that some time back (maybe even half a year..) it worked. no - this has been (with xterm anyway) an issue for 4-5 years. If xterm's not setuid, it'll still work except for the utmp feature. I usually test xterm during development without setuid. Occasionally I see some comment regarding systems where the setuid's been removed, etc. Perhaps you were using one of those. -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net
pgpbNjyBAH7nk.pgp
Description: PGP signature