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 Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:08 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To George Rawlinson (rawlinsong)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

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

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:08 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/rxvt-unicode/issues/1
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.

```
Index: PKGBUILD
===================================================================
--- PKGBUILD (revision 823822)
+++ PKGBUILD (working copy)
@@ -70,6 +70,8 @@
done

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}"
```
Comment by Buggy McBugFace (bugbot) - Tuesday, 08 August 2023, 19:11 GMT
This is an automated comment as this bug is open for more then 2 years. Please reply if you still experience this bug otherwise this issue will be closed after 1 month.

Loading...