[GH-ISSUE #184] firejail prevents "w" from showing the user logged in #129

Closed
opened 2026-05-05 05:07:39 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @Kalle72 on GitHub (Dec 6, 2015).
Original GitHub issue: https://github.com/netblue30/firejail/issues/184

First: Sorry for the next "bug-thing"

Second: The problem ;-)

If I do not use any firejail instance I can view if a user is logged in by "w" ($ denotes the prompt)

$ w
12:12:42 up 8 min, 1 user, load average: 0,15, 0,20, 0,14
USER TTY LOGIN@ IDLE JCPU PCPU WHAT
karl :0.0 12:10 ?xdm? 16.45s 0.02s /bin/sh /etc/X11/Sessions/Xfce4

or

$w | grep :0.0 | head -n 1 | awl '{print $1}'
karl

If now a firejail instance is or was running since I logged in into X (xfce) I get
$w
12:23:13 up 19 min, 0 users, load average: 0,00, 0,04, 0,10
USER TTY LOGIN@ IDLE JCPU PCPU WHAT

or
$w | grep :0.0 | head -n 1 | awl '{print $1}'
--> no output at all

The big problem for me is that I use a docking-station for which I have a script which determines if a user is logged in or not by checking "w | grep :0.0 | head -n 1 | awl '{print $1}'". Therefore I get now serious problems, because "w" does not show what it should if firejail is or was active in the actual X-session.

So first question: Is it a bug or a feature
Second question: If it is a feature, on which way (by which command) I can ask my machine if a user is logged in and who it is? (In this case would rewrite my skript)

Best regards
Kalle

Originally created by @Kalle72 on GitHub (Dec 6, 2015). Original GitHub issue: https://github.com/netblue30/firejail/issues/184 First: Sorry for the next "bug-thing" Second: The problem ;-) If I do not use any firejail instance I can view if a user is logged in by "w" ($ denotes the prompt) $ w 12:12:42 up 8 min, 1 user, load average: 0,15, 0,20, 0,14 USER TTY LOGIN@ IDLE JCPU PCPU WHAT karl :0.0 12:10 ?xdm? 16.45s 0.02s /bin/sh /etc/X11/Sessions/Xfce4 or $w | grep :0.0 | head -n 1 | awl '{print $1}' karl If now a firejail instance is or was running since I logged in into X (xfce) I get $w 12:23:13 up 19 min, 0 users, load average: 0,00, 0,04, 0,10 USER TTY LOGIN@ IDLE JCPU PCPU WHAT or $w | grep :0.0 | head -n 1 | awl '{print $1}' --> no output at all The big problem for me is that I use a docking-station for which I have a script which determines if a user is logged in or not by checking "w | grep :0.0 | head -n 1 | awl '{print $1}'". Therefore I get now serious problems, because "w" does not show what it should if firejail is or was active in the actual X-session. So first question: Is it a bug or a feature Second question: If it is a feature, on which way (by which command) I can ask my machine if a user is logged in and who it is? (In this case would rewrite my skript) Best regards Kalle
gitea-mirror 2026-05-05 05:07:39 -06:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@netblue30 commented on GitHub (Dec 6, 2015):

Fixed! Thanks for the bug.

<!-- gh-comment-id:162313686 --> @netblue30 commented on GitHub (Dec 6, 2015): Fixed! Thanks for the bug.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#129
No description provided.