Community Packages

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#69285 - [rxvt-unicode] urxvtd doesn't setuid and setgid bits set

Attached to Project: Community Packages
Opened by Rolf van Kleef (rhbvkleef) - Monday, 11 January 2021, 01:01 GMT
Last edited by Andreas Radke (AndyRTR) - Wednesday, 21 April 2021, 14:23 GMT
Task Type Feature Request
Category Packages
Status Assigned
Assigned To Levente Polyak (anthraxx)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No



According to the urxvt(1) manpage and my own testing, marking urxvtd (and perhaps urxvt, although I've not tested this) with setuid and setgid allows terminals to be shown in who and be reached using utmp. This seems like a desired behaviour, but it is not available in the community package.

Additional info:
* package version: community/rxvt-unicode version 9.22-10

Steps to reproduce:
* run urxvtd and then urxvtc, send a wall message, and observe that it doesn't arrive in the terminal.

Proposed solution:
* Change the mode of urxvt and urxvtd to 6755.
This task depends upon

Comment by Rolf van Kleef (rhbvkleef) - Tuesday, 19 January 2021, 18:41 GMT
This is the change that I would propose. I haven't looked at how urxvt-tabbed is supposed to work (as I don't use it), but I suspect changing it's mode would also work. The mode of urxvtc doesn't need to be changed, as the daemon deals with the setgid and setuid stuff.

--- PKGBUILD (revision 823822)
+++ PKGBUILD (working copy)
@@ -70,6 +70,8 @@

cd ${pkgname}-${pkgver}
+ # allow modifying utmp
+ chmod 6755 "${pkgdir}/usr/bin/urxvt" "${pkgdir}/usr/bin/urxvtd"
# workaround terminfo installation
export TERMINFO="${srcdir}/terminfo"
install -d "${TERMINFO}"