Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 19/20 > Security and Privacy
FedoraForum Search

Forgot Password? Join Us!

Security and Privacy Sadly, malware, spyware, hackers and privacy threats abound in today's world. Let's be paranoid and secure our penguins, and slam the doors on privacy exploits.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 8th January 2009, 03:46 PM
AnimeFreak Offline
Registered User
 
Join Date: Jan 2009
Posts: 267
How do I change Luks (fedora's system encryption) pasword

I need to change the Luks (fedora's system encryption) password.

How do I do this without reinstalling?




Thanks,

AnimeFreak
Reply With Quote
  #2  
Old 8th January 2009, 04:14 PM
kilgoretrout Offline
Registered User
 
Join Date: Aug 2007
Location: Chicago, IL
Posts: 20
Basically, you just add an additional password(LUKS allows up to 8 different passwords for the same volume) and delete the original password. Here's a link that describes the process in detail:

http://www.saout.de/tikiwiki/tiki-in...eviceUsingLUKS

Quote:
To add an additional password, so you can unlock your partition with a choice of different passwords (you can do this with the encrypted partition mounted, if you wish):
#cryptsetup luksAddKey /dev/sdc1
Enter any LUKS passphrase: (enter an existing password for this partition)
key slot 0 unlocked.
Enter new passphrase for key slot: (enter the extra password)
#


To delete an existing password (but don't delete the last one, your data will be lost forever, you will be warned if you try this), you need to know which slot the password is in. The first password goes in slot 0, any additional passwords go in slot 1, 2 etc. You can do this with the encrypted partition mounted, if you wish. So to delete the very first password you used, use:
#cryptsetup luksDelKey /dev/sdc1 0
#



To change the password, first add an additional password then delete the original password.
Reply With Quote
  #3  
Old 9th January 2009, 12:21 AM
AnimeFreak Offline
Registered User
 
Join Date: Jan 2009
Posts: 267
Thanks for the info, I will definitely use this.



I actually have one encrypted system and another encrypted drive.


Do I do this twice. Once for the encrypted system and another for the encrypted drive.



Also, can you back these entire drives up with the clonezilla live cd.


Thanks Again,

AnimeFreak
Reply With Quote
  #4  
Old 9th January 2009, 02:48 AM
AnimeFreak Offline
Registered User
 
Join Date: Jan 2009
Posts: 267
I actually used LVMs.


Does this change anything.
Reply With Quote
  #5  
Old 13th September 2011, 04:25 AM
AnimeFreak Offline
Registered User
 
Join Date: Jan 2009
Posts: 267
linuxrekonq
Re: How do I change Luks (fedora's system encryption) pasword

Well, that last post was two years ago. I guess i've come along way since then, based on how stupid a question I posted.
Reply With Quote
  #6  
Old 30th November 2011, 08:18 PM
dfowensby Offline
Registered User
 
Join Date: Dec 2006
Posts: 3
linuxfirefox
Re: How do I change Luks (fedora's system encryption) pasword

not stupid. this all just helped me out of a pickle. thankyou for stupid questions. %)
Reply With Quote
  #7  
Old 15th March 2012, 06:08 AM
stevetnz Offline
Registered User
 
Join Date: Nov 2010
Location: Auckland
Age: 47
Posts: 3
linuxfirefox
Re: How do I change Luks (fedora's system encryption) pasword

The tikiwiki link is now broken. And I don't have a device called /dev/sdc1. But I do have F15 installed with the file-system encryption option and I now wish to change the password that allows the system to boot up (so that other people can use the computer without knowing my favourite password).

How do I identify the encrypted device that holds my system? I have tried "cryptsetup status ..." with all the /dev/sd* devices I can see in the /dev directory, but nothing seems to identify it.
Reply With Quote
  #8  
Old 4th May 2012, 07:38 AM
austrojedi
Guest
 
Posts: n/a
linuxfirefox
Re: How do I change Luks (fedora's system encryption) pasword

If anyone still needs this:

Quote:
Originally Posted by man cryptsetup
isLuks <device>
returns true, if <device> is a LUKS partition. Otherwise, false.

luksChangeKey <device> [<new key file>]
change existing key file or passphrase. An existing passphrase or key file (via --key-file) must be supplied. The key file with the new material is supplied as a positional argument.
so, as root, enter:
# if cryptsetup isLuks /dev/sdX; then echo "yes"; else echo "no"; fi
and substitute X for whichever device you want to probe (ie: /dev/sda1, /dev/sdc3, …) to find out which is a luks enabled device. then you can use
# cryptsetup luksChangeKey /dev/sdX
where sdX is the device that is your luks device to change your passphrase.
Reply With Quote
Reply

Tags
change, encryption, fedora, luks, pasword

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cryptsetup and LUKS Encryption with Linux Vector Guides & Solutions (No Questions) 4 15th July 2009 12:30 PM
LUKS encryption and power outages LinuxTom Security and Privacy 10 15th November 2008 05:49 PM
LUKS Encryption system slowdown/broken Places menu Unlimited Using Fedora 4 10th November 2008 09:56 AM
How To Remove Disk Encryption From a partition ( LUKS passphrase issue ) Tuxic Security and Privacy 3 9th November 2008 07:29 PM
dm-crypt luks & lvm Full system encryption?? any joy anybody techie-munkey Security and Privacy 1 5th March 2007 02:39 PM


Current GMT-time: 11:17 (Monday, 01-09-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat