LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Disabled Accounts (https://www.linuxquestions.org/questions/linux-general-1/disabled-accounts-359341/)

oasisbhrnw99 09-01-2005 09:29 PM

Disabled Accounts
 
Hello,

I am running RH9 on a standalone machine. Two of my users are getting a screen saying that their account has expired/the administrator has disabled their account.

I am the administrator and i did no such thing. I know where to check if their account has been disabled in the Users and Groups utility, and it does not show that they are.

What could be causing this?

I did a fsck, but it showed no problems. Is there some other utility I can use to fix permissions or something?

Any help is appreciated, thanks.

freakyg 09-01-2005 11:23 PM

look at the /etc/login.defs file............

logicalfuzz 09-02-2005 10:55 AM

the shortest way would be to edit the /etc/shadows file. it contains all the password info. Do
Code:

man 5 shadow
to see the meaning of the fields in that file. you'll know for yourself what to change.
other ways is to use
Code:

chage
see man page to change the age of password. as freakyg said the default login definations are refered to from /etc/login.defs file. so change the values in that file if you dont want such problems in future.

sundialsvcs 09-02-2005 12:25 PM

:eek: Don't edit the shadow-file directly! :eek:

The standard Red Hat user-administration tools have, on one of their tabs, a quick and easy way to disable an account, impose password-change restrictions, and so on.

Never go mucking-about with the files that you depend upon to log-on the system, unless you know exactly what you are doing and there is no other way.

Umm, "been there done that." :rolleyes:


All times are GMT -5. The time now is 03:27 PM.