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:



Post.Office : Questions about Features : Deleting all user accounts back to FAQ
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
Powered by FAQEngine V4.07.4 ©2001-2005 Bösch EDV-Consulting