Showing results for 
Show  only  | 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
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.

Re: Admin account won't delete


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

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.

You Deserve an Award
Don't forget, when your helpful posts earn a kudos or get accepted as a solution you can unlock perks and badges. Those aren't the only badges, either. How many can you collect? Click here to learn more.

Community Help Hub

    New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

  • Find Forum FAQs
  • Learn How to Earn Badges
  • Ask for Help
Go to Community Help

Join the Community

    Thousands of customers use the McAfee Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

  • Get helpful solutions from McAfee experts.
  • Stay connected to product conversations that matter to you.
  • Participate in product groups led by McAfee employees.
Join the Community
Join the Community