- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: restrict inactive user accounts
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2009 05:30 AM
01-06-2009 05:30 AM
restrict inactive user accounts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2009 05:46 AM
01-06-2009 05:46 AM
Re: restrict inactive user accounts
You can deactivate the inactive accounts if the system is trusted.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2009 05:48 AM
01-06-2009 05:48 AM
Re: restrict inactive user accounts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2009 09:02 AM
01-06-2009 09:02 AM
Re: restrict inactive user accounts
for a `cat /inactive-login_ids.lis`
do
/usr/bin/passwd -l $a
done
You can dress it up....but it gives you an idea.
Rgrds,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2009 12:31 AM
01-07-2009 12:31 AM
Re: restrict inactive user accounts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2009 02:59 AM
01-07-2009 02:59 AM
Re: restrict inactive user accounts
" for a `cat /inactive-login_ids.lis`
do
/usr/bin/passwd -l $a
done "
the point of Rita is only that if you already know the user accounts that are inactive for many days, make a list and then use
for a cat
do
/usr/bin/passwd -l $a
done
Best Regards,
prasad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2009 03:35 AM
01-07-2009 03:35 AM
Re: restrict inactive user accounts
A better form without evil cat would be:
for a in $(< list-you-created); do
/usr/bin/passwd -l $a
done
- Tags:
- evil cat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2009 04:11 AM
01-19-2009 04:11 AM
Re: restrict inactive user accounts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2009 06:50 AM
01-19-2009 06:50 AM
Re: restrict inactive user accounts
some thoughts to your question and answers:
Do you have a list of these user accounts?
If not: get it.
Which format does this list have?
Create a file named 'inactive.lis' out of this list, having one user account in one line, if the list has not already this format.
Now copy or type the three lines of Dennis' answer in the command line:
for a in $(
done
mfG Peter
PS: Do you know how to create a file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2009 07:54 AM
01-19-2009 07:54 AM
Re: restrict inactive user accounts
Then what are you doing in a System Administrator role? It sounds like you are extremely underqualified for the job.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2009 08:06 AM
01-19-2009 08:06 AM
Re: restrict inactive user accounts
I would consider to take some trainings and qualification first.
BTW, you should read also this:
http://forums11.itrc.hp.com/service/forums/helptips.do?#33
(a good way to say "thank you" to all who trying to help you)
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2009 10:00 AM
01-19-2009 10:00 AM
Re: restrict inactive user accounts
that's not correct....the forums are designed to help people...but they assume that there is at least a "working knowledge" of hpux.
In your case, you're in over your head and are asking people to do your job for you. this is all volunteer stuff, most people here have there own jobs to attend to as well. Why should we do your work, when your the one collecting the pay for it.
You need to get some training, and very quickly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2009 10:42 AM
01-19-2009 10:42 AM
Re: restrict inactive user accounts
No, no the answers are **NOT** "incomplete".
You don't know what we're talking about, but that doesn't mean the answers are "incomplete". Many of us, like me, take a break from our own work days to try to help folks, but we're also presuming that the folks we're helping understand what we're talking about.
You do not.
"I just know how to login...and fes commands..thats it"
Then perhaps you should **NOT** be a "unixadmin". In fact, you should **NOT** even be a "unixuser".
You're expecting the rest of us to do your job for you, for free. You're the one getting paid for it, you're the one not assigning points to replies to your questions:
I have assigned points to 0 of 78 responses to my questions.
First off, to continue using the knowledge contained within these Forums, you should follow the instructions here:
http://forums11.itrc.hp.com/service/forums/helptips.do?#33
However, the best solution would be for you to find and obtain some training on Unix basics. Then, and **ONLY** then, should you try to start learning all the tasks required to be a system administrator.
HP-Server-Literate since 1979
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2009 05:14 AM
01-20-2009 05:14 AM
Re: restrict inactive user accounts
I am not working to any of the company you imagined...I Just joined as a trainee for one traning organisation.. and i am trying hard to get the solution after there is no way i am just refering you...Iam very sorry that i never assigned points ..as I said earlier I am new buddy My age is just 18...I am studying 1st year engineering and getting trained with one organization..so If any thing wrong please let me know...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2009 05:25 AM
01-20-2009 05:25 AM
Re: restrict inactive user accounts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2009 05:31 AM
01-20-2009 05:31 AM
Re: restrict inactive user accounts
That's not learning.
The people here have been incredibly helpful to me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2009 05:43 AM
01-20-2009 05:43 AM
Re: restrict inactive user accounts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2009 06:10 AM
01-20-2009 06:10 AM
Re: restrict inactive user accounts
my LAST try:
Did your try to work down the list I gave?
What where/are the problems?
BTW, you got already a copy+paste solution.
Did you read and understand
http://forums11.itrc.hp.com/service/forums/helptips.do?#33
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2009 05:02 AM
02-12-2009 05:02 AM