cancel
Showing results for 
Search instead for 
Did you mean: 

Admin account won't delete

I went to delete account of an ex administrator from the GUI. I got the error message:

A problem occurred while trying to delete Administrator "acountname" TWSGenericError: Unable to delete user "accountname" this user still has active cronjobs

Use 'cf crontab swap' to change users

I then ssh in to the fire wall and run the command "cf crontab swap" I the the error message Operation not permitted.

What is the hang up here?

3 Replies
sliedl
Level 14
Report Inappropriate Content
Message 2 of 4

Re: Admin account won't delete

You need to type "srole" and hit Enter to get to the "superuser" after you login on the CLI.


After that you run 'cf crontab swap user=[old_username].'  This will swap all the old_username cronjobs to use your username that you just logged-in with.

$> man cf_crontab

cf crontab swap [user=<user>]

swap   Swap the user of all the cron jobs owned by user to the current

  administrator.  Note: If you are running on a cluster, this will

  swap every job of the user on every cluster member.  The required

  key is user.

Highlighted

Re: Admin account won't delete

sliedl

A ticket ID must be specified is the output I got.  How do I specified a ticket number in the command?


sliedl
Level 14
Report Inappropriate Content
Message 4 of 4

Re: Admin account won't delete

$> man cf | grep ticket

     -i   Specifies a change ticket ID to mark this set of changes with.  See

          cf_audit(1) for details on how change tickets work.

So the command would be:

$> cf -i something crontab swap user=old_username

-- Replace something with any string you want.

More McAfee Tools to Help You
  • How-to: Endpoint Removal Tool
  • Support: Endpoint Security
  • Visit: Business Service Portal
  • More: Search Knowledge Articles
  • ePolicy Orchestrator Support
  • The McAfee ePO Support Center Plug-in is now available in the Software Manager. Follow the instructions in the Product Guide for more.