Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ 1 [2] >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Security on thumb drive< Next Oldest | Next Newest >
spotslayer Offline





Group: Members
Posts: 96
Joined: April 2005
Posted: July 03 2006,12:27 QUOTE

I understand that part WDef. Thank's for the response. I just can't remember any other instance of this. Most things ask for a password twice when you setup or change it to verify you know what you typed, then only once after that. Asking twice for every login seemed wrong to me. If this is the way it is intended to be and that is the way it is working for me then all is well. It just seems awkward.

David
Back to top
Profile PM 
WDef Offline





Group: Members
Posts: 798
Joined: Sep. 2005
Posted: July 05 2006,10:15 QUOTE

This has confused a few others as well in the past so you're not alone.

You enter the password twice during bootup not only to decrypt an existing encrypted backup but also to set the password to encrypt your next backup - the password is written to a file /etc/sysconfig/des and this is read when the backup is made.

It's clearly a good idea to check the password typing for consistency before saving it to this file otherwise a simple typo might render your backup un-decryptable. Hence typing it in twice.

I suppose it might be slightly clearer if the script returned an error message "You typed 2 different passwords" or something if you type the password differently each time.

The scripts could also be changed (I suppose) to only prompt for the password twice if an encrypted backup were found, but it's unnecessary complexity and there's no harm in a typing consistency check for decryption.

One point to note is that saving the password in plaintext to a file is a potential vulnerability of this type of scheme - should you be on a network and get hacked, the attacker might just read your password. At one point I suggested that this file be made only readable by root (600 perms) but that won't help that much since user dsl can sudo su to root. As with all encryption, if high security is needed it's better not to use it while connected to any network (inc the internet of course).

It's also worth noting that the password needs to be longer than 8 chars or something, else you are not encrypting with triple des but only with single des, which is broken.  Don't use single des.
Back to top
Profile PM 
spotslayer Offline





Group: Members
Posts: 96
Joined: April 2005
Posted: July 06 2006,00:58 QUOTE

Thank's WDef that helps explain things for me. It is a good tip on the 8 character password. Is this feature documented anywhere? I have searched about and not found any.

David
Back to top
Profile PM 
WDef Offline





Group: Members
Posts: 798
Joined: Sep. 2005
Posted: July 06 2006,08:14 QUOTE

I don't know if it's documented.

The 8 char threshold for triple des  (if my memory serves me correctly) is stated in the des command's help output.
Back to top
Profile PM 
8 replies since July 01 2006,20:11 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ 1 [2] >/
reply to topic new topic new poll
Quick Reply: Security on thumb drive

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code