LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 06-24-2002, 01:15 PM   #1
Sky
Member
 
Registered: Jun 2002
Distribution: Slackware
Posts: 36

Rep: Reputation: 15
uptime - 0 users?


Hi.

I'm running slackware 8.1 on my workstation. On every Linux distro i've used before 'uptime' has shown the users who are logged in to me. If i login via ssh this works... But if i login via gdm uptime tells me that 0 users are logged in, although i'm writing this text as a user now... So it should be 1 user. Is this normal or can sombody confirm this?

thx, s.
 
Old 06-24-2002, 03:02 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 198Reputation: 198
I just logged in via ssh into my box from work, uptime showed me 1 user logged in at the time I logged in.
If its telling you no users are logged in, what does who -q tell you ?? Just another way of seeing who is logged in.
 
Old 06-24-2002, 03:11 PM   #3
Sky
Member
 
Registered: Jun 2002
Distribution: Slackware
Posts: 36

Original Poster
Rep: Reputation: 15
Code:
who -q

# users=0
If i start the sshd, and login via "ssh localhost", then uptime shows me that 1 user is logged in. But not if i login the normal way via kdm or gdm...

If i boot my box so that it shows me only a text login for the console, then uptime shows 1 user as well.

If its important:
I've put /usr/bin/gmd to /etc/rc.d/rc.local so that its started on bootup.

s.
 
Old 06-24-2002, 03:21 PM   #4
Sky
Member
 
Registered: Jun 2002
Distribution: Slackware
Posts: 36

Original Poster
Rep: Reputation: 15
"last" shows that my login should have been registered:

Code:
sky       :0                            Mon Jun 24 20:58    gone - no logout
But i'm neither listed in uptime nor in "who -q" *argh*

s.
 
Old 06-24-2002, 07:04 PM   #5
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 45
I am still running 8.0 on a workstation that the typical operation for me is using init level 4, specified in the /etc/inittab file. The authentication is through kdm, but it is not really the same thing as a real login from what I have been able to tell. Even "last" doesn't report my logins unless it is through the login prompt or ssh on my system. Back when I defaulted to init level 3 and logged into the system, and then ran startx when I wanted to run X windows, it reported everything correctly. The rc.local file, in your case that would include kdm or gdm, would execute upon boot and before any logins are attempted very similar to init level 4. The biggest difference I would think are the sysvinit scripts for level 4 would not be executed though and you probably still have all six getty's running from init level 3 instead of just one getty on console 6.

But I have always considered the kdm more like a getty for X and then the authentication is more simliar to a "su" command. That allows the user to operate without actually "logging" into the system through a normal login prompt.

The usual way to implement X is through the init system by setting the init level. Use 4 for Slack, most other distros use 5 I think, in the inittab file.

Hope it has been of some help.
James
 
Old 06-25-2002, 10:22 AM   #6
Sky
Member
 
Registered: Jun 2002
Distribution: Slackware
Posts: 36

Original Poster
Rep: Reputation: 15
So its not important for securiry (Although its annoying )?

s.
 
Old 06-26-2002, 12:03 AM   #7
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 66
As best I can figure it the users information only keeps track of users loged into terminals on the computer. So if you hit CTRL-ALT-FX (X = 1-6) and log in, or log in via ssh or telnet or something like that, it will report you. However, if you log in through gdm or kdm you aren't really loging into a terminal per say and thus it doesn't keep track of you. I have always noticed they when I use the graphical login managers it doesn't report my user as being logged in, but you can always kill x if you are remoting into your machine and think somebody is messing with something in X.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
uptime shows 3 users on system when there is only me. Is this normal? MichaelD Linux - Security 3 05-21-2005 11:05 PM
24/7 uptime? jollyjoice General 20 01-25-2005 11:12 AM
Uptime - why 4 users thegreatgatsby Linux - Software 13 10-16-2003 08:45 AM
uptime/users Cichlid Linux - General 3 09-17-2003 11:07 PM
why does 'uptime' report '2' users?? purpleburple Linux - General 6 08-07-2002 09:17 PM


All times are GMT -5. The time now is 07:28 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration