Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
For example, if I work as "root" and as "usertest" at the same time and want to logout the "usertest" through the "root" account. I tried logout but it only works for the current user and there is no manual... Any suggestions?
Also: is there any way to disable a user accout temporarily without deleting it, so as the user may not login untill I re-activate their account (without losing the user's data)?
When a process starts, a PID (process id)is spawned. If you give a ps ax it will list all processes running on the system. As root you can kill a process id eg kill ##### (replace the ##### signs with the number corresponsing to the appropriate process id.)
Just to amplify a bit. Linux or Unix treats everything as a file. A disk is a file with certain characteristics. A tape is also just a file. It is the beauty of Unix. It is abstract, but in its own way wonderful.
In order to run Samba creates a process, as does a user logging in, as does kde, gnome etc. When you give a ps ax it will list ALL processes running in the system. Root can kill any of them. If you would like to learn more about the commands you could open a terminal window and issue man kill or man ps. If you are not sure of what command you need, you could try apropos and ???. Replace the ??? with the reference you are looking for. Good luck and welcome to the world of Linux.
Normally? What's a normal login?
Even when a user logs in thru the Graphical Interface, its still using a shell or some sort..
I guess I was not as precise as I should be... I meant that all users in my computer use the KDE graphic login manager and I was wondering if in such a case there are any differences.
Originally posted by RandomLinuxNewb
To lock an account use usermod.
usermod -L username
To unlock the account
usermod -U username
Thanks, this works great.
Originally posted by kees-jan
To log out a user:
skill -u username
Only try this for normal users. For system users, you'll take down half the system in the process.
I tried to use it on a normal user but it fails. There are no error messages and everything seems to work fine, however when I press ctrl+alt+F2 to check if it worked, the user is still there and nothing seems to have changed... The manual was not of great help, what now?
The password lock works fine.
Originally posted by apolinsky
Good luck and welcome to the world of Linux. [/B]
Thank you but I have been using Linux for nearly two years now , although it is the first time I want to be able to use my computer without using the GUI not for a single action. Thanks again.
Last edited by LinuxSeeker; 06-03-2005 at 07:50 AM.