# \[SOLVED\]Looking up OpenHAB UUID and Secret

**URL:** <https://community.openhab.org/t/solved-looking-up-openhab-uuid-and-secret/94781>\
**Category:** Beginners\
**Tags:** openhab2, uuid-secret-key\
**Created:** [March 18, 2020, 1:47pm UTC](https://community.openhab.org/t/solved-looking-up-openhab-uuid-and-secret/94781 "2020-03-18T13:47:56Z")\
**Posts on this page:** 16\
**Page:** 2

<div class="post-metadata">

**Author:** ![Jim\_Verspuij](https://community.openhab.org/letter_avatar_proxy/v4/letter/j/f0a364/32.png) [@Jim\_Verspuij](https://community.openhab.org/u/Jim_Verspuij)\
**Post date:** [March 18, 2020, 3:45pm UTC](https://community.openhab.org/t/solved-looking-up-openhab-uuid-and-secret/94781/22 "2020-03-18T15:45:26Z")

</div>

okay thanks! Does it matter that im running on windows(10)?

---

<div class="post-metadata">

**Author:** ![rossgb](https://community.openhab.org/user_avatar/community.openhab.org/rossgb/32/74856_2.png) [@rossgb](https://community.openhab.org/u/rossgb)\
**Post date:** [March 18, 2020, 3:50pm UTC](https://community.openhab.org/t/solved-looking-up-openhab-uuid-and-secret/94781/23 "2020-03-18T15:50:14Z")

</div>

No. The Synology NAS is running a version of linux.

When you use SSH you are “remote controlling” the computer you are connected to (in this case your NAS). Every command you type in there is sent to the NAS which runs it and then sends you back the result. None of the commands are run on your windows 10 computer.

---

<div class="post-metadata">

**Author:** ![Jim\_Verspuij](https://community.openhab.org/letter_avatar_proxy/v4/letter/j/f0a364/32.png) [@Jim\_Verspuij](https://community.openhab.org/u/Jim_Verspuij)\
**Post date:** [March 18, 2020, 4:04pm UTC](https://community.openhab.org/t/solved-looking-up-openhab-uuid-and-secret/94781/24 "2020-03-18T16:04:45Z")

</div>

OK thanks! Did try a few things now via my SSH. When I open up volume1(that’s where everything is placed) using the command CD and then showing everything what’s in the map using the command ls, then I see the map “@appstore”. However, if I want to open this map I get the following.

 ![image](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/2/5/25cb1cfaa7bd8bef993b55f0c0daa430193ec2f1.png)

Is this error getting more clear in the link you just send?

---

<div class="post-metadata">

**Author:** ![rossgb](https://community.openhab.org/user_avatar/community.openhab.org/rossgb/32/74856_2.png) [@rossgb](https://community.openhab.org/u/rossgb)\
**Post date:** [March 18, 2020, 4:18pm UTC](https://community.openhab.org/t/solved-looking-up-openhab-uuid-and-secret/94781/25 "2020-03-18T16:18:38Z")

</div>

It’s not immediately obvious to a beginner but `/` is the “root” directory (think of it like `C:\` in windows).

You are inside the directory `/volume1` and want to go into the directory `@appstore` inside `/volume1`.

`cd /@appstore` means “go the the directory `/@appstore`” (which does not exist which explains the message `No such file or directory`)

To get into the `@appstore` directory you want to use either an absolute path: `cd /volume1/@appstore`  
or a relative path `cd @appstore` or `cd ./@appstore` (where `.` is a special path meaning “the folder I am in right now”)

---

<div class="post-metadata">

**Author:** ![Jim\_Verspuij](https://community.openhab.org/letter_avatar_proxy/v4/letter/j/f0a364/32.png) [@Jim\_Verspuij](https://community.openhab.org/u/Jim_Verspuij)\
**Post date:** [March 18, 2020, 4:30pm UTC](https://community.openhab.org/t/solved-looking-up-openhab-uuid-and-secret/94781/26 "2020-03-18T16:30:24Z")

</div>

@rossgb wow thanks! Didn’t had any experience with Linux and bios programming untill now haha! But it isn’t that difficult as it looks like. In the meantime, I’ve found the secret-file using these paths:

```auto
/var/lib/openhab2/openhabcloud/secret

```

however I can’t open it with de cd command(probably because it’s a file, not a directory?), but when I do this:

```auto
./ secret

```

it tells me the acces is denied, while I’m logged in as the administrator…  
Do you know how to solve this?

Second thing: I found a UUID in openHAB REST API. Is this the correct one?  
Because:

```auto
/var/lib/openhab2/uuid

```

was non existent…

---

<div class="post-metadata">

**Author:** ![rossgb](https://community.openhab.org/user_avatar/community.openhab.org/rossgb/32/74856_2.png) [@rossgb](https://community.openhab.org/u/rossgb)\
**Post date:** [March 18, 2020, 4:47pm UTC](https://community.openhab.org/t/solved-looking-up-openhab-uuid-and-secret/94781/27 "2020-03-18T16:47:20Z")

</div>

I’m afraid I cannot help you with specific openhab cloud stuff as I have not used it myself.

You are right that `cd <file>` does not work because the `cd` command is only for **C** hanging **D** irectories.

If you just put in a path like `/var/lib/openhab2/openhabcloud/secret` your shell (the thing running your commands) thinks you want to run the program at `/var/lib/openhab2/openhabcloud/secret`.

If a file is not marked as executable you will get an error even if you are the administrator.

To look at what is inside a file there a many commands you can use. The ones most useful for you now will probably be `cat` and `more`.

`cat <file>` will just print the entire contents of the file to your console which is fine if the file is short but could be annoying if it is long.

`more <file>` will stop once your console is full and then wait for you to press ENTER to scroll and show more.

You may find stuff about a command called `less` online. It is like `more` but a bit nicer. Unfortunately it is not installed by default in the Synology version of linux.

Bonus hint:

Most commands you will find on linux will tell you how to use them if you give them the parameter `-h` or `--help`

Try `cat --help`

---

<div class="post-metadata">

**Author:** ![rossgb](https://community.openhab.org/user_avatar/community.openhab.org/rossgb/32/74856_2.png) [@rossgb](https://community.openhab.org/u/rossgb)\
**Post date:** [March 18, 2020, 4:53pm UTC](https://community.openhab.org/t/solved-looking-up-openhab-uuid-and-secret/94781/28 "2020-03-18T16:53:58Z")

</div>

Extra bonus hint:

On most linux systems the command `man <command>` will show you the **man** ual for `<command>`.  
Unfortunately this is another thing not installed by default on Synology’s version of linux.  
If you google `man <command>` you will usually find the same information though.

---

<div class="post-metadata">

**Author:** ![thilek](https://community.openhab.org/user_avatar/community.openhab.org/thilek/32/53262_2.png) [@thilek](https://community.openhab.org/u/thilek)\
**Post date:** [May 18, 2020, 8:37am UTC](https://community.openhab.org/t/solved-looking-up-openhab-uuid-and-secret/94781/29 "2020-05-18T08:37:30Z")

</div>

For those using docker/ docker-compose, the paths are  
`/opt/openhab/userdata/openhabcloud/secret`  
`/opt/openhab/userdata/uuid`

---

<div class="post-metadata">

**Author:** ![RoyOven](https://community.openhab.org/letter_avatar_proxy/v4/letter/r/b4bc9f/32.png) [@RoyOven](https://community.openhab.org/u/RoyOven)\
**Post date:** [June 13, 2020, 3:23am UTC](https://community.openhab.org/t/solved-looking-up-openhab-uuid-and-secret/94781/30 "2020-06-13T03:23:38Z")

</div>

Was anyone able to find out where the uuid and/or secret file is for a openHAB installation on Synology?

---

<div class="post-metadata">

**Author:** ![Wolfgang\_S](https://community.openhab.org/user_avatar/community.openhab.org/wolfgang_s/32/52719_2.png) [@Wolfgang\_S](https://community.openhab.org/u/Wolfgang_S)\
**Post date:** [June 13, 2020, 7:54am UTC](https://community.openhab.org/t/solved-looking-up-openhab-uuid-and-secret/94781/31 "2020-06-13T07:54:54Z")

</div>

I am not sure how the implementation is done on Synology in case it runs similar to other linux installations I would expect that if you login to your Synology via ssh and you execute the command

```php
env | grep OPENHAB

```

you should see a list of environment variables.  
Check the environment variable that is called OPENHAB\_USERDATA take the content and extend it with openhabcloud/secret to get the location of the secret file.  
Extend it with uuid to get the location of the uuid file.

---

<div class="post-metadata">

**Author:** ![Jim\_Verspuij](https://community.openhab.org/letter_avatar_proxy/v4/letter/j/f0a364/32.png) [@Jim\_Verspuij](https://community.openhab.org/u/Jim_Verspuij)\
**Post date:** [June 17, 2020, 8:31am UTC](https://community.openhab.org/t/solved-looking-up-openhab-uuid-and-secret/94781/32 "2020-06-17T08:31:08Z")

</div>

Hi Roy,  
yes i did!  
You have to open Putty and put the next line in for the UUID:  
`/volumeXYZ/SmartHome/openHAB/userdata`  
in this same directory you can find “openhabcloud”. Open this and you’ll find the secret.  
To read both these files you gotta enter `cat uuid` or `cat secret`

---

<div class="post-metadata">

**Author:** ![AbdurRouf](https://community.openhab.org/user_avatar/community.openhab.org/abdurrouf/32/104561_2.png) [@AbdurRouf](https://community.openhab.org/u/AbdurRouf)\
**Post date:** [November 13, 2023, 8:14am UTC](https://community.openhab.org/t/solved-looking-up-openhab-uuid-and-secret/94781/33 "2023-11-13T08:14:29Z")

</div>

I have openhab 4 installed in termux and it’s running well , now i want to use the cloud service but i don’t know how to find the uuid and secret please help

---

<div class="post-metadata">

**Author:** ![Wolfgang\_S](https://community.openhab.org/user_avatar/community.openhab.org/wolfgang_s/32/52719_2.png) [@Wolfgang\_S](https://community.openhab.org/u/Wolfgang_S)\
**Post date:** [November 13, 2023, 3:36pm UTC](https://community.openhab.org/t/solved-looking-up-openhab-uuid-and-secret/94781/34 "2023-11-13T15:36:11Z")

</div>

Cloud “extension” is installed via UI ?

---

<div class="post-metadata">

**Author:** ![AbdurRouf](https://community.openhab.org/user_avatar/community.openhab.org/abdurrouf/32/104561_2.png) [@AbdurRouf](https://community.openhab.org/u/AbdurRouf)\
**Post date:** [November 15, 2023, 1:16pm UTC](https://community.openhab.org/t/solved-looking-up-openhab-uuid-and-secret/94781/35 "2023-11-15T13:16:39Z")

</div>

Yes

And also found the uuid and secret

nano userdata/uuid For uuid

nano userdata/openhabcloud/secret For secret

---

<div class="post-metadata">

**Author:** ![Raul\_Vasquez](https://community.openhab.org/user_avatar/community.openhab.org/raul_vasquez/32/43012_2.png) [@Raul\_Vasquez](https://community.openhab.org/u/Raul_Vasquez)\
**Post date:** [December 4, 2023, 4:39pm UTC](https://community.openhab.org/t/solved-looking-up-openhab-uuid-and-secret/94781/36 "2023-12-04T16:39:50Z")

</div>

For Docker running in “container station” of Qnap execute Console Command “cat /openhab/userdata/openhabcloud/secret”. And “cat /openhab/userdata/uuid”.

 ![image](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/1/4/14f2241ce20a226bdbb7a8ceec42f6fd63f96999.jpeg)

---

<div class="post-metadata">

**Author:** ![Evgen\_Dnepr](https://community.openhab.org/user_avatar/community.openhab.org/evgen_dnepr/32/99956_2.png) [@Evgen\_Dnepr](https://community.openhab.org/u/Evgen_Dnepr)\
**Post date:** [January 25, 2024, 10:23am UTC](https://community.openhab.org/t/solved-looking-up-openhab-uuid-and-secret/94781/37 "2024-01-25T10:23:27Z")

</div>

First you need to install the openHAB Cloud Connector!

[Previous page](https://community.openhab.org/t/solved-looking-up-openhab-uuid-and-secret/94781.md?page=1)
