Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How-to change login password at https://owntracks.example/owntracks/ ? #32

Closed
GitHubQueenn opened this issue Mar 20, 2024 · 11 comments
Closed
Labels
question Further information is requested

Comments

@GitHubQueenn
Copy link

GitHubQueenn commented Mar 20, 2024

Been following this: https://owntracks.org/booklet/guide/quicksetup/
I am using an Ubuntu VPS. It is all set up now and I was able to login to the page at https://owntracks.example/owntracks/

However, I wanted to change the password that was given to me automatically to something simple. So, in my VPS, I navigated to /usr/local/owntracks/userdata/ and then did nano username.pass. I changed the password here, pressed CTRL+X to exit, then chose "Y" to save the file.

Well, when I go to login to https://owntracks.example/owntracks/, it is still taking the old password and not the new one I set, even after a reboot of the VPS, and even though the username.pass file is showing my new password that I wanted. Help?

@GitHubQueenn GitHubQueenn changed the title How-to change login password at https://owntracks.example/owntracks/ ? [Help] How-to change login password at https://owntracks.example/owntracks/ ? Mar 20, 2024
@ckrey
Copy link
Member

ckrey commented Mar 21, 2024

@GitHubQueenn the files in /usr/local/owntracks/userdata are only for your information, not the source of the passwords etc.

To set a password of your choice, edit configuration.yaml as shown below and re-run ./bootstrap.sh.

(the optional password is not described in the setup guide, but only in the configuration.yaml file itself)

# configuration for OwnTracks backend quicksetup

# Specify your DNS domain, the name by which this OwnTracks

...

# Configure yourself and a list of friends who will be using
# this backend. Each friend will use their "username" to login
# to the site and to the apps. Their device is a "devicename"
# (this can be any suitable name, but we recommend you keep it
# generic so as to not have to change this if you move to a
# distinct device; i.e. "myphone" instead of "siemens-e2"),
# and their "tid" is a tracker- id which is used to label users
# on the map. A tid is a string of length two characters.
# Optionally a "password" may be set below; if omitted, passwords
# are generated and stored at /usr/local/owntracks/userdata/*.pass
# on this system.
#

friends:
  - { tid: UD, username: user, devicename: device, password:  yourpassword }
 
 ...

@jpmens
Copy link
Member

jpmens commented Mar 21, 2024

Friend-specific passwords are actually documented in the Booklet, and linked to from the bottom of the Quicksetup page.

@GitHubQueenn
Copy link
Author

@ckrey @jpmens Thank you. Real quick: how come one user here shows as "owntracks/b/phone" but the other as just "fs"? I would like to have "owntracks/b/phone" show as just the TID if possible, like the "fs" user does. Is that possible? Because when the one user sees the other, they show up on the map as "owntracks/b/phone" instead of their TID like "fs" does.

Looks like: https://i.imgur.com/WXZg6tm.png

Nowhere in my config or anywhere I see is the tid/names set to "owntracks/b/phone"

@jpmens
Copy link
Member

jpmens commented Mar 21, 2024

TIDs are two characters and are configured on the device respectively via the autoconfiguration you might have done. I'm assuming one of the devices is publishing via HTTP which we reccomend you don't do: in /usr/local/owntracks/userdata you'll find *.otrc files which you send to the device (e.g. via email) and open it in OwnTracks there. The TID you configured in configuration.yaml.

@GitHubQueenn
Copy link
Author

GitHubQueenn commented Mar 21, 2024

TIDs are two characters and are configured on the device respectively via the autoconfiguration you might have done. I'm assuming one of the devices is publishing via HTTP which we reccomend you don't do: in /usr/local/owntracks/userdata you'll find *.otrc files which you send to the device (e.g. via email) and open it in OwnTracks there. The TID you configured in configuration.yaml.

Both devices are using MQTT. So far, for my friend and myself, we have just used my domain to log into the OwnTracks server and then tapped on the links to import the configs to our phones (Android & iPhone). The only place I see "owntracks/b/phone" is at the OTRC file at this line:
"subTopic": "owntracks/+/+ owntracks/+/+/event owntracks/+/+/info owntracks/b/phone/cmd",
The TID shows how I originally set it as "bb". I also see it in the app under "pubTopicBase"

@jpmens jpmens changed the title [Help] How-to change login password at https://owntracks.example/owntracks/ ? How-to change login password at https://owntracks.example/owntracks/ ? Mar 22, 2024
@jpmens jpmens added the question Further information is requested label Mar 22, 2024
@jpmens
Copy link
Member

jpmens commented Mar 22, 2024

You are saying there's a discrepancy between the TID in pubtopic and subtopic; that can only be due to editing of the configuration; I don't think there's a bug in the generation of our OTRC files.

Please don't confuse TID with the username contained in the topic.

You have also not said which device (iPhone or Android) is fs and which is bb

@ckrey
Copy link
Member

ckrey commented Mar 22, 2024

It is much easier to understand the issue here if you embed your images rather than using an external link:
Bildschirmfoto 2024-03-22 um 09 02 59

@ckrey
Copy link
Member

ckrey commented Mar 22, 2024

Let me explain how it works and what you can do to change it:

Bildschirmfoto 2024-03-22 um 09 08 31

The Name column uses the topic or if available the name field of the card published to the MQTT broker https://owntracks.org/booklet/features/card/#card.

The TID column shows the tid element of the location message. If the location message does not contain a tid, it uses the last two letters of the topic.

** In your case, fs has published a card (either via MQTT to the backend or directly from the iOS OwnTracks app) and owntracks/b/phone **

  • In the Frontend, the Name is displayed.
  • On the Live map the TID is displayed if available instead of the topic if no name is given

@GitHubQueenn
Copy link
Author

The card made from fs was directly from the iPhone app. So how would we get rid of the "owntracks/b/phone" to just show "bb" like the other just shows "fs"?

@jpmens
Copy link
Member

jpmens commented Mar 22, 2024 via email

@jpmens
Copy link
Member

jpmens commented Apr 3, 2024

Closing as answered.

@jpmens jpmens closed this as completed Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants