You are not logged in.

#1 2009-12-14 22:18:26

aouaou
Member
Registered: 2009-12-14
Posts: 3

<SOLVED> 0 users logged in

Hello!
While I am logged in my system and I execute 'uptime', I get the following message:

 00:12:28 up  5:16,  0 users,  load average: 0.04, 0.17, 0.14

The same happens running 'w' and 'who' is not showing any users.
I am using xmonad and urxvt.
If I switch to a tty and login from there, things run normal and my login is counted.
Can you help me troubleshoot this?
smile

Last edited by aouaou (2009-12-15 22:31:13)

Offline

#2 2009-12-14 23:18:29

quarkup
Member
From: Portugal
Registered: 2008-09-07
Posts: 497
Website

Re: <SOLVED> 0 users logged in

hmm im not a urxvt user, but you may want to check what are those programs checking.

are you running as the root user or what is your user ID ?


If people do not believe that mathematics is simple, it is only because they do not realize how complicated life is.
Simplicity is the ultimate sophistication.

Offline

#3 2009-12-15 04:12:06

dmartins
Member
Registered: 2006-09-23
Posts: 360

Re: <SOLVED> 0 users logged in

How do you start X? Are you using a login manager or starting X from the terminal after logging in?

Offline

#4 2009-12-15 06:59:29

loosec
Member
Registered: 2007-03-08
Posts: 134

Re: <SOLVED> 0 users logged in

I have this symptom when I log in using a graphical login manager. If I switch to a tty and login I get 1 user logged in.

I think the question really is how does uptime, w and who check for users? Probably by the amount of tty logins.

Offline

#5 2009-12-15 08:09:53

lswest
Member
From: Munich, Germany
Registered: 2008-06-14
Posts: 456
Website

Re: <SOLVED> 0 users logged in

┌─[lswest@lswest-netbook:~]-[9:08:37]
└─> uptime
 09:08:39 up 1 day,  8:56,  1 user,  load average: 0.28, 0.70, 0.54

I log in via GDM to an openbox session and use urxvt as well.  I think I have xmonad installed, I can always check if the problem lies therein and post back later.

Also, I'm not logged into any tty screens.

Last edited by lswest (2009-12-15 08:10:29)


Lswest <- the first letter of my username is a lowercase "L".
"...the Linux philosophy is "laugh in the face of danger". Oops. Wrong one. "Do it yourself". That's it." - Linus Torvalds

Offline

#6 2009-12-15 09:14:34

kgas
Member
From: Qatar
Registered: 2008-11-08
Posts: 718

Re: <SOLVED> 0 users logged in

noticed the same with sakura terminal, using slim to log in to openbox session.

12:12:03 up 4 days, 39 min,  0 users,  load average: 0.03, 0.14, 0.23

Offline

#7 2009-12-15 10:58:35

dobedo
Member
From: Belgium
Registered: 2008-10-04
Posts: 113

Re: <SOLVED> 0 users logged in

kgas wrote:

noticed the same with sakura terminal, using slim to log in to openbox session.

12:12:03 up 4 days, 39 min,  0 users,  load average: 0.03, 0.14, 0.23

In slim wiki:

Login information with SLiM
By default, SLiM fails to log logins to utmp and wtmp which causes who, last, etc. to misreport login information. To fix this edit your slim.conf as follows:

sessionstart_cmd    /usr/bin/sessreg -a -l $DISPLAY %user
sessionstop_cmd     /usr/bin/sessreg -d -l $DISPLAY %user

Offline

#8 2009-12-15 13:47:53

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: <SOLVED> 0 users logged in

$ uptime
 13:45:19 up  2:08,  1 user,  load average: 0.16, 0.12, 0.08

Logging in from the console here (X is started with startx automatically if I login from tty1).
I'm using xfce and thats what I get when using terminal or xterm.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#9 2009-12-15 14:59:37

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: <SOLVED> 0 users logged in

Seems like you use

x:5:once:/bin/su PREFERED_USER -l -c "/bin/bash --login -c /usr/bin/startx >/dev/null 2>&1"

in your /etc/inittab to start X ;-)

Last edited by Army (2009-12-15 15:00:01)

Offline

#10 2009-12-15 20:43:47

kgas
Member
From: Qatar
Registered: 2008-11-08
Posts: 718

Re: <SOLVED> 0 users logged in

sessionstart_cmd    /usr/bin/sessreg -a -l $DISPLAY %user
sessionstop_cmd     /usr/bin/sessreg -d -l $DISPLAY %user

Thanks dobedo. Currently not much time to read stuff and this saved my time.

Offline

#11 2009-12-15 21:47:09

aouaou
Member
Registered: 2009-12-14
Posts: 3

Re: <SOLVED> 0 users logged in

I would like to thank you all people for your response! The problem was, as dobedo mentioned, that SLiM does not properly register the session by default. I have been able to solve this by following the instructions!
Please mark this one SOLVED!

Offline

#12 2009-12-15 22:16:24

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Re: <SOLVED> 0 users logged in

lol, edit OP lazy tongue.


Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

#13 2009-12-15 22:33:14

aouaou
Member
Registered: 2009-12-14
Posts: 3

Re: <SOLVED> 0 users logged in

No idea I could change the title... big_smile

Offline

Board footer

Powered by FluxBB