# Link Canister NNS

**URL:** <https://forum.dfinity.org/t/link-canister-nns/29353>\
**Category:** Getting Started\
**Created:** [April 4, 2024, 8:00pm UTC](https://forum.dfinity.org/t/link-canister-nns/29353 "2024-04-04T20:00:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jakepeg](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jakepeg/32/2471_2.png) [@jakepeg](https://forum.dfinity.org/u/jakepeg)\
**Post date:** [April 4, 2024, 8:00pm UTC](https://forum.dfinity.org/t/link-canister-nns/29353/1 "2024-04-04T20:00:30Z")

</div>

I’m trying to link my canisters in the NNS app. It says I’m not the controller.

Using DFX I added my principal…

dfx wallet --network ic add-controller

This appears to work in the terminal

But it still says I’m not the controller in the NNS app.

---

<div class="post-metadata">

**Author:** ![jennifertran](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jennifertran/32/11558_2.png) [@jennifertran](https://forum.dfinity.org/u/jennifertran)\
**Post date:** [April 5, 2024, 5:26am UTC](https://forum.dfinity.org/t/link-canister-nns/29353/2 "2024-04-05T05:26:15Z")

</div>

Is the same identity that you are using on the NNS app the same identity that is controlling the canisters?

You might be looking to run this command in the root folder of your canister instead:

> `dfx canister update-settings <canister_name> --add-controller <your_principal_from_the_nns_dapp> --network ic`

For example, let’s say that you have a `hello_world_frontend` canister within the `hello_world` repo and want to add principal `bxoag-wjs53-wlo2r-dhayf-paweb-lonfo-dkgo6-mefma-hbqtc-cfabb-pae`, this is the command that you are looking for:

> `dfx canister update-settings hello_world_frontend --add-controller bxoag-wjs53-wlo2r-dhayf-paweb-lonfo-dkgo6-mefma-hbqtc-cfabb-pae --network ic`

Note that you need to add `--network ic` at the end to add the controller on mainnet. The NNS app uses mainnet.

You can reference the [Adding an identity as a controller of a canister](https://internetcomputer.org/docs/current/tutorials/developer-journey/level-1/1.6-managing-canisters#adding-an-identity-as-a-controller-of-a-canister) docs for the commands needed to add a controller to a canister.

---

<div class="post-metadata">

**Author:** ![jakepeg](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jakepeg/32/2471_2.png) [@jakepeg](https://forum.dfinity.org/u/jakepeg)\
**Post date:** [April 7, 2024, 7:29pm UTC](https://forum.dfinity.org/t/link-canister-nns/29353/3 "2024-04-07T19:29:40Z")

</div>

That worked. Thank you ever so much 🙏
