Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
My team has been running OSX webservers for a while, but we recently had a webserver and its corresponding database inherited to us. Both are running redhat 9.
Anyway, I have an issue, that seems simple, but our support guys don't seen to be helping out much so I thought I would post this here.
We have a mysql database server running on redhat 9 and the account seems to be disabled. When I try to log in remotely via ssh, it says access denied. When I try to login directly on the machine it says the account has been disabled by the adminstrator.
How do you enable the account? I have looked at the (GUI) user manager and the password hasn't expired or been locked. So, nothing to do there.
Is there some way for root to be able to enable the account? Becuase I haven't seen where it can be enabled.
Originally posted by uopjohnson I don't' think there is a way to disable accounts. If you log in as root you might want to look at /etc/passwd to see if the account exists. if it exists you can change the password with
and try to log in again.
You can disable a user account by editing the /etc/shadow file (Assuming you're using shadow password; or you can edit /etc/passwd file instead) and replace the password with an asterisk (*)
Another way to do this is with the usermod command.
usermod -L username
Will lock the user.
usermod -U username
Will unlock the user.
I'm pretty sure that's the correct syntax, it's been a while since I've done it
Nice. I will add that to my list...
I had forgotten about all of the system accounts and such, which are disabled, so I guess I knew that this was possible. I always end up disabling shell access by using /bin/false instead of disabling the user entirely. I also seem to have forgotten about that when I posted... long day I guess.