Tenon Intersystems Please see text links at bottom of page for navigation Please see text links at bottom of page for navigation
Please see text links at bottom of page for navigation Please see text links at bottom of page for navigation
Please see text links at bottom of page for navigation
Google
Search this site:



FAQ all FAQ for this program Search
Post.Office : Questions about Features : Deleting all user accounts Print send FAQs by e-mailask a question
Question:Is there a way to use the delacct command line to delete all accounts? I'm installing the first time and would like to import a modified EIMS export rather than my original EIMS export that I used for testing.
Answer:Yes, using the command line utilities you can delete accounts in batch mode. Briefly, you need to run the 'listacct' program and send the output to a file. Then you need to hand edit the file to put './delacct' in front of each entry you want to delete, being careful not to delete the the default Post.Office accounts. Then make the file you created executable and execute the file.

Here are the steps in detail:

Log in to a terminal window as "root" and type in:

cd /usr/local/post.office/cmdutils
./listacct >> myfile

You can list out the contents of your file with the command:
cat myfile

You will see something like this:
Account-Manager
Address
My_Account
Configuration-Manager
Support
Default
Default-List
Error-Handler
Full_Name
IMappy
List-Manager
Michael_Charles
New_Guy
Postmaster
Root


This will create a file called "myfile" (you can name it anything you want) that will contain the user ID's of all of your users. Edit that file with an editor so it looks like this:

./delacct Full_Name
./delacct IMappy
./delacct Michael_Charles
./delacct New_Guy

Don't delete Postmaster, Root, Error-Handler, List-Manager or any of the built in Post.Office accounts!

Once you have added the "delacct" at the beginning of each line, change the file permissions of myfile so that it is an executable file. Type in:

chmod +x myfile
and now run the file:
./myfile


That will delete each account that is named in the file.

last updated 18.10.2003
[previous FAQ]   [next FAQ]
List FAQ in this category | List categories | List all FAQ | List programs goto top

| Tenon Home | Products | Order | Contact Us | About Tenon | Register | Tech Support | Resources | Press Room | Mailing Lists |

Powered By iTools

Copyright©2013 Tenon Intersystems, 232 Anacapa Street, Suite 2A, Santa Barbara, CA 93101. All rights reserved.
Questions about our website - Contact: webmaster@tenon.com.


Tenon Home  Tenon Home  Tenon Home  Tenon Home Product Info  Tenon Ordering Contact About Register Support Resources Press Mailing Lists