1753543 Members
5445 Online
108795 Solutions
New Discussion юеВ

System administration

 
SOLVED
Go to solution
ShivKumar_1
Frequent Advisor

System administration

Hi experts
I have a question for you regarding the user account administration. My client has a NIS environment running UNTRUSTED systems. How do I make a userid who has not logged on for say for Eg: 45 consecutive days invalid.
I know that we can do it through SAM and DEACTIVATING it , can we do the same through command line or can we automate this process using a shell script?
4 REPLIES 4
Steffi Jones_1
Esteemed Contributor
Solution

Re: System administration

Hello,

a possibility is always to write a script and run it through cron.

Other than that you can go and trust your system and take advantage of the features. The only thing to adjust then is to upgrade to NIS+

Steffi Jones
Paula J Frazer-Campbell
Honored Contributor

Re: System administration

Hi

If you build a last -1 (see man last) from your passwd file then search on your results for over 45 days then change the password for the over 45 day results - piping all results to a ref file.


HTH

Paula
If you can spell SysAdmin then you is one - anon
Pedro Sousa
Honored Contributor

Re: System administration

Hi!
I think Paula's idea is very good, but to make things clearly secure you should change your NIS to NIS+.
good luck.
ShivKumar_1
Frequent Advisor

Re: System administration

Hi experts
Thanks for your help, I cannot convert my network to a TRUSTED system as per the directions of the client.