mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #184] firejail prevents "w" from showing the user logged in #129
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#129
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@netblue30 commented on GitHub (Dec 6, 2015):
Fixed! Thanks for the bug.