官术网_书友最值得收藏!

Removing members from a domain using rhc

Let's suppose you are a system admin and suddenly your application starts behaving weird. You looked at the logs but you were not able to understand them. To fix this issue, you had to give a developer access to look at the logs. The developer was able to understand the problem, and now you want to remove the developer membership.

Getting ready

To complete this recipe, you will need to have rhc installed on your machine. Please refer to the Installing the OpenShift rhc command-line client recipe in Chapter 1, Getting Started with OpenShift, for instructions.

You will need two OpenShift accounts to work through this recipe. Please refer to the Creating an OpenShift Online account recipe in Chapter 1, Getting Started with OpenShift, for OpenShift account registration instructions.

How to do it…

To remove the openshift.cookbook.test@gmail.com user from the osbook domain of , run the following command:

$ rhc remove-member openshift.cookbook.test@gmail.com --namespace osbook

How it works…

The rhc member-remove command does two things:

  • It removes the openshift.cookbook.test@gmail.com public SSH key from the authorized keys registry so that openshift.cookbook.test@gmail.com can't perform SSH operations such as git clone and SSH into application gears.
  • It removes the openshift.cookbooktest@gmail.com member from the osbook domain.

You can verify that openshift.cookbook.test@gmail.com is removed from the members' list by inserting the following command:

$ rhc members --namespace osbook
Login Role
---------------------------- -------------
openshift.cookbook@gmail.com admin (owner)

There's more…

You can remove all the members from a domain by using the --all flag:

$ rhc remove-member --all --namespace osbook

See also

  • The Adding viewer members to a domain using rhc recipe
  • The Adding an admin member to a domain using rhc recipe
  • The Viewing all the members in a domain using rhc recipe
主站蜘蛛池模板: 朝阳县| 西畴县| 宁津县| 大悟县| 农安县| 东方市| 吉木乃县| 石渠县| 吕梁市| 衡阳市| 西和县| 马鞍山市| 盐边县| 绥化市| 方城县| 和林格尔县| 中西区| 武邑县| 庆安县| 根河市| 九台市| 含山县| 绥棱县| 方正县| 迁西县| 龙里县| 和硕县| 无棣县| 临海市| 西平县| 淮南市| 项城市| 泸州市| 江孜县| 磴口县| 营口市| 海阳市| 闽侯县| 安福县| 如皋市| 大丰市|