3 Replies Latest reply on Apr 16, 2015 1:59 PM by sliedl

    Admin account won't delete

    paraspiral

      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?

        • 1. Re: Admin account won't delete
          sliedl

          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.

          1 of 1 people found this helpful
          • 2. Re: Admin account won't delete
            paraspiral

            sliedl

             

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


            • 3. Re: Admin account won't delete
              sliedl

              $> 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.

              1 of 1 people found this helpful