LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 04-04-2011, 12:54 PM   #1
mad_penguin
Member
 
Registered: Mar 2008
Posts: 69

Rep: Reputation: 15
clean disabled users


Hi

I need to find a way to clean ezmlm-lists by comparing existing users accounts in /etc/passwd. I have a mail server running qmail and a couple of hundreds of users. When some guy leaves the company we disable his account by adding a '#' in /etc/passwd in front of his username, and the using ezmlm-unsub to unsubscribe him from a email list. There were some cases when we just disabled his unix account but forgot to unsub him so his email address will still appear in ezmlm-list. So I need something to copmare ezmlm-list output with /etc/passwd and give me only the accounts that are disables so I could then use ezmlm-unsub to unsubscribe them from lists.

A bash script I think will do the job. I waiting for some suggestions.

Thanks.
 
Old 04-04-2011, 03:58 PM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,211

Rep: Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612
Could you provide some sample output from this mail server?
 
Old 04-04-2011, 04:00 PM   #3
mad_penguin
Member
 
Registered: Mar 2008
Posts: 69

Original Poster
Rep: Reputation: 15
ezmlm-list output is like:

user1@domain.com
user2@domain.com
....

and so on.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ClamAV users - if you are running < 0.95 it will be disabled next week spampig Linux - Security 4 04-16-2010 06:46 AM
Wireless card disabled after clean reinstall to 8.10 davidguygc Ubuntu 5 01-19-2010 01:17 AM
LXer: Open Letter: How the FOSS Community May Help Disabled Users LXer Syndicated Linux News 0 04-22-2006 07:21 PM
LXer: Bcs backs open source project to boost software for disabled users LXer Syndicated Linux News 0 04-21-2006 04:54 AM
How can I do a clean-up? J_Szucs Linux - Newbie 3 04-30-2002 05:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration