You are not logged in.
Hi Guys,
I'm looking into configuring a free dns service (freedns.afraid.org to be specific) and in it's .conf file to check what the IP is, it needs my account and password information owned by root. The examples is as follows
sudo nano /etc/inadyn.conf
--username techhome
--password mypassword
--update_period 3600
--forced_update_period 14400
--alias techhome.homenet.org,alphanumeric key
--background
--dyndns_system default@freedns.afraid.org
--syslog
I've been looking into salting and hashing passwords but I can't find a good guide on how to store "mypassword" in plain text as opposed to a hash+salt. I'm wondering if this really is even an issue as the file is owned by root and so anyone who tries to access it shouldn't be able to do anything with it anyways correct? Thanks for reading!
Last edited by 15goudreau (2015-01-20 21:51:17)
Offline
Most likely no one will ever get your password. If someone does get your password, what is the worst damage they can do? Point your domain name to a different web server?
I personally don't think that's big enough damage to worry about it.
Offline
Thanks for the reply drcouzelis!
That's kind of what I was figuring from my point of view.
Onto a follow up question. If it was important to salt+hash the password, how would I pass that through the .conf. I'm more curious than anything. And I couldn't really figure out what question to type into google to find the answer on my own. Thanks!
Offline
My search for "linux safe to store passwords as plain text" came up with this very relevant thread:
http://stackoverflow.com/questions/2664 … plain-text
Summary: No, encrypting the password is not effective. The application needs to be able to access the password by itself, which means whatever method it uses to automatically decrypt a password will also be available to anyone else.
Offline
That particular site does not use passwords. It uses authorization tokens that you obtain from the site's webpage. The token becomes part of the URL that is passed into the DNS update request.
Take a look at https://freedns.afraid.org/scripts/freedns.clients.php and look at the instructions for openWRT to get a feeling for how this works.
If the token is compromised, use your account and password at the site to get a new token.
Edit, BTW -- I use that service on my DD-WRT based router. Works like a charm.
Last edited by ewaller (2015-01-20 18:11:12)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
My search for "linux safe to store passwords as plain text" came up with this very relevant thread:
http://stackoverflow.com/questions/2664 … plain-text
Summary: No, encrypting the password is not effective. The application needs to be able to access the password by itself, which means whatever method it uses to automatically decrypt a password will also be available to anyone else.
In general, this is an old problem discussed primarily in the context of mail-related software. See http://www.fetchmail.info/esrs-design-notes.html (sadly, thunderbird and claws-mail (and others) will symmetrically encrypt the passwd and not even set restricted permissions on .mozilla or .claws-mail dirs resp.).
Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd
Offline
sadly, thunderbird and claws-mail (and others) will symmetrically encrypt the passwd and not even set restricted permissions on .mozilla or .claws-mail dirs resp.
math@thinkpad ~ % ls -dl .thunderbird .mozilla
drwx------ 4 math math 37 Jan 3 21:24 .mozilla/
drwx------ 3 math math 48 Jan 4 22:03 .thunderbird/
?
Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby
Offline
That particular site does not use passwords. It uses authorization tokens that you obtain from the site's webpage. The token becomes part of the URL that is passed into the DNS update request.
Take a look at https://freedns.afraid.org/scripts/freedns.clients.php and look at the instructions for openWRT to get a feeling for how this works.If the token is compromised, use your account and password at the site to get a new token.
Edit, BTW -- I use that service on my DD-WRT based router. Works like a charm.
Your link doesn't go anywhere for me. I get a webpage not available?
Thanks for the clarification about the passwords. It's odd that they include it but it's not needed don't you think?
My search for "linux safe to store passwords as plain text" came up with this very relevant thread:
http://stackoverflow.com/questions/2664 … plain-text
Summary: No, encrypting the password is not effective. The application needs to be able to access the password by itself, which means whatever method it uses to automatically decrypt a password will also be available to anyone else.
Thanks for that link. I didn't see that before and your google foo skills are a tad better than mine .
Well that definitely answers my question on how to store the passwords. Thanks guys!
Offline
Your link doesn't go anywhere for me. I get a webpage not available?
Thanks for the clarification about the passwords. It's odd that they include it but it's not needed don't you think?
Perhaps it was because I was logged on to the site when I copied the link
I do not use the same tool that you are trying to use. In my case, my router is aware of the service and has the code to handle it based on the URL method they talk about on their site. The only credentials used by the router is the token.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
sadly, thunderbird and claws-mail (and others) will symmetrically encrypt the passwd and not even set restricted permissions on .mozilla or .claws-mail dirs resp.
math@thinkpad ~ % ls -dl .thunderbird .mozilla drwx------ 4 math math 37 Jan 3 21:24 .mozilla/ drwx------ 3 math math 48 Jan 4 22:03 .thunderbird/
?
Hmm, I clearly remember that at least Claws was not chmod'ing its config dir (I use mutt now). I'll check again. Are you sure you don't have a 0077 umask? Otherwise, I'll take what I said earlier back
Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd
Offline
Yep, umask 022.
math@thinkpad ~ % umask
022
Haven't seen the need to umask 0077 as I don't have public www folders and stuff.
Last edited by Alad (2015-01-21 20:46:41)
Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby
Offline