You are not logged in.

#1 2016-11-01 18:09:20

restore
Member
Registered: 2015-03-26
Posts: 19

'w'/'who' returns no user – security issue?

When I evaluate

$ w -h

or

$ who

, there is no output (the 'w' header still gets written). I wondered about this issue and found that my /root/ partition was full. I cleared enough pacman cache, updated the system and rebooted, but still – no output. I learned from here that there are four ways to get the logged in users, but all fail.

$ cat /var/run/utmp

did not help (I assume its encrypted).

$ last myusername

only showed logins a few days ago.

Since linux is all about users, groups and permissions and that is one of the most basic action regarding users I wonder – isn't that a great indicator that my system is not secure anymore? How do I get to the old behaviour and close eventual security risks? Thank you very much in advance.

Offline

#2 2016-11-01 23:47:44

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: 'w'/'who' returns no user – security issue?

utmp is not a good indicator of anything. Many logins won't get logged there.

Offline

#3 2016-11-01 23:49:50

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: 'w'/'who' returns no user – security issue?

Does this work?

loginctl

No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#4 2016-11-04 15:42:39

restore
Member
Registered: 2015-03-26
Posts: 19

Re: 'w'/'who' returns no user – security issue?

yes!

$ loginctl
   SESSION        UID USER             SEAT            
        c1       1000 myusername      seat0           

1 sessions listed.

Offline

Board footer

Powered by FluxBB