[RESOLVED] urxvt spawns extra process

Forum rules
We don't support installations in VirtualBox, VMWare, qemu or others. We ignore posts about WINE, PlayOnLinux, Steam and Skype. We don't support btrfs, lvm, UEFI, side-by-side installations with GPT or dualboot with anything newer than Windows XP.
Google your problem first. Check the Wiki. Read the existing threads. It's okay to "hijack" an existing thread, yes! If your problem is not yet covered, open a new thread. To get the quickest possible help, mention the exact release codename in your post (uname -a is a good idea, too). Due to the lack of crystal balls, attach the output of lspci -nnk if you encounter hardware problems.
User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: [RESOLVED] urxvt spawns extra process

Unread post by dkeg » Sun Dec 29, 2013 12:58 am

I'm not sure I really understand. How does it make sense to spawn an extra process. Kind of sounds like bs to me. How can that even be the slightest bit acceptable?

Work hard; Complain less

pidsley
Hermit
Posts: 2539
Joined: Wed Oct 17, 2012 12:31 pm

Re: [RESOLVED] urxvt spawns extra process

Unread post by pidsley » Sun Dec 29, 2013 1:53 am

I don't understand either, especially because Debian is the only distro that seems to need this extra process. I have been searching and reading, but I can't still can't say I understand this (or why it's necessary)
if urxvt is setgid utmp (as it is now in debian) it forks an helper
process to manage the pty/utmp stuff while the main process drops
priviledges

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: [RESOLVED] urxvt spawns extra process

Unread post by machinebacon » Sun Dec 29, 2013 3:46 am

It should rather drop the 'd' in Priviledge :D
..gnutella..

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: [RESOLVED] urxvt spawns extra process

Unread post by machinebacon » Sun Dec 29, 2013 3:59 am

Extremely stupid question: the groups without associated users (floppy, cdrom, utmp) are also listed in groups. Usually a process should only be able to setid utmp if the group utmp is existing, shouldn't it. This enables to write to /var/run/utmp. Judging from how other terminals do it, they switch to root (xterm, according to a bug report), or use a helper process (gnome-terminal).
Totally unclear.
..gnutella..

User avatar
xaos52
The Good Doctor
Posts: 190
Joined: Thu Aug 15, 2013 11:59 am
Location: Eernegem, Belgium

Re: [RESOLVED] urxvt spawns extra process

Unread post by xaos52 » Sun Dec 29, 2013 10:56 am

They consider being able to see the urxvt process in the 'w' command to be more important than that extra process.
As a consequence, from a security point of view, it makes sense to do it like that.
I was using xterm and eshell in emacs anyway, as I said before, and I will continue to do so.
Connected. Take this REPL, brother, and may it serve you well.

User avatar
DebianJoe
Frame Buffer
Posts: 1915
Joined: Mon Jul 01, 2013 5:41 am
Location: emacs.d

Re: [RESOLVED] urxvt spawns extra process

Unread post by DebianJoe » Sun Dec 29, 2013 11:11 am

I was assuming that it was security related as well, ("setuid is dangerous blah, blah, blah"). I have no problem with building from tars, so whatever makes Debian happy...then they can feel free to do it. I'll do what I want apart from them anyhow.

I don't generally see a huge need for a highly updated terminal emulator.
|>>BBQ Roaster, Alpha Branch<< | >> clinky << | >> X11 must die << |
Thanks BASIC

User avatar
xaos52
The Good Doctor
Posts: 190
Joined: Thu Aug 15, 2013 11:59 am
Location: Eernegem, Belgium

Re: [RESOLVED] urxvt spawns extra process

Unread post by xaos52 » Sun Dec 29, 2013 4:04 pm

There is a very simple solution to get rid of that extra process:
Just install the Debian package as normal,
then run the following commands as root:

Code: Select all

chgrp root /usr/bin/urxvt
chmod g-s /usr/bin/urxvt
BINGO!
Connected. Take this REPL, brother, and may it serve you well.

pidsley
Hermit
Posts: 2539
Joined: Wed Oct 17, 2012 12:31 pm

Re: [RESOLVED] urxvt spawns extra process

Unread post by pidsley » Sun Dec 29, 2013 5:06 pm

xaos52 wrote:There is a very simple solution to get rid of that extra process:
Thank you.

User avatar
xaos52
The Good Doctor
Posts: 190
Joined: Thu Aug 15, 2013 11:59 am
Location: Eernegem, Belgium

Re: [RESOLVED] urxvt spawns extra process

Unread post by xaos52 » Sun Dec 29, 2013 5:31 pm

No problem.
I have added that solution in a response to the bug report.
I am curious what the maintainer will come up with. :D
Connected. Take this REPL, brother, and may it serve you well.

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: [RESOLVED] urxvt spawns extra process

Unread post by dkeg » Sun Dec 29, 2013 5:33 pm

Thanks you.

well check that out. Interesting solution. Based on what we've learned, I guess that makes sense. So what group is / would it normally be under? users? I checked mine, both xterm and urxvt, and both are root:root. But the urxvt I have was build from source.

Edit: after some more reading, I think I better understand.

Work hard; Complain less

User avatar
xaos52
The Good Doctor
Posts: 190
Joined: Thu Aug 15, 2013 11:59 am
Location: Eernegem, Belgium

Re: [RESOLVED] urxvt spawns extra process

Unread post by xaos52 » Sun Dec 29, 2013 5:35 pm

^ root:root is normal
Connected. Take this REPL, brother, and may it serve you well.

User avatar
Nili
Haxxor
Posts: 131
Joined: Sat Aug 22, 2015 5:40 pm
Location: $HOME/♫♪
Contact:

Re: [RESOLVED] urxvt spawns extra process

Unread post by Nili » Sat Aug 22, 2015 6:02 pm

Many thanks xaos52, that's what i was looking for... :D

Thanks also dkeg that addressed me on this thread. ;)
Devuan/XFCE

Post Reply