How do i delete a chef server user?



  • The way you deleting a chef server user depends partly on the organisation.

    If you are an admin type user in an organisation you can delete a user using the knife command.

    This command asks for confirmation before deleting.

    $ knife user delete trainer
    

    The chef-server-ctl command knows about all users in all organisations.

    $ sudo chef-server-ctl user-list
    admin
    pivotal
    trainer
    trainer2
    

    If you need to delete a use from an organisation that you are not in, you need to be admin on the chef server.

    $ sudo chef-server-ctl user-delete trainer2
    

Log in to reply
 

© Lightnetics 2024