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!
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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
Code:
passwd USER
and try to log in again.
uopjohnson,
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.
Code:
usermod -L username
Will lock the user.
Code:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.