SlackwareThis Forum is for the discussion of Slackware Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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?
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.
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.
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.