LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-06-2014, 11:36 AM   #1
bikesh
LQ Newbie
 
Registered: Nov 2014
Posts: 10

Rep: Reputation: Disabled
promblem with unlocking encrypted partition during system startup


i am trying to unlock the encrypted partition during system starup by using luks in rhel 6
for this i did
1. /etc/crypttab file and added this line
secret /dev/sda8 /root/luks.key
2. vi /root/luks.key and added this
mypassphase
3. vi /etc/fstab and added this line
/dev/mapper/secret /tt ext4 defaults 12
Now when i reboot my system it asks for passphrase but i think it should not ask for the passphrase since i have already included it in crypttab file.
i have disble firewaall and iptables
 
Old 12-07-2014, 06:03 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,926

Rep: Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690
Quote:
Originally Posted by bikesh View Post
i am trying to unlock the encrypted partition during system starup by using luks in rhel 6
for this i did
1. /etc/crypttab file and added this line
secret /dev/sda8 /root/luks.key
2. vi /root/luks.key and added this
mypassphase
3. vi /etc/fstab and added this line
/dev/mapper/secret /tt ext4 defaults 12
Now when i reboot my system it asks for passphrase but i think it should not ask for the passphrase since i have already included it in crypttab file.
First, WHY are you bothering with an encrypted partition, if you're going to BYPASS ALL OF THE SECURITY and have it auto-mount??? Are you missing the point of an encrypted partition?

Second, if you tried to look up how to do this, there are complete instructions:
http://www.howtoforge.com/automatica...with-a-keyfile

Third, you using RHEL 6. Have you PAID FOR RHEL??? If not, again, STOP where you are and load CentOS instead. RHEL is NOT free, and (as you were told in your other thread), you WILL NOT get access to online repositories, updates, patches, and security fixes. Also, RHEL 6 is old..the latest is 7, and (with your OTHER thread about 'certification'), the differences are systemd. Load CentOS 7.
Quote:
i have disble firewaall and iptables
...which have absolutely NOTHING to do with mounting a hard drive.

Last edited by TB0ne; 12-07-2014 at 06:06 PM.
 
1 members found this post helpful.
Old 12-12-2014, 11:30 AM   #3
bikesh
LQ Newbie
 
Registered: Nov 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
thanks TBOne

thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unlocking encrypted root with keyfile on sdcard/mmc possible? saivinoba Slackware 1 12-20-2013 06:45 PM
Shrink partition (LVM encrypted PVs + encrypted LVs) gedaj Linux - Newbie 2 05-22-2013 04:44 AM
Problem to mount an encrypted partition : Operating system RHEL 6.0 , dynamic library pam_mount.so redrat Linux - Security 1 11-09-2011 10:36 PM
usb stick unlocking scheme for root encrypted partition in current escaflown Slackware 6 05-09-2010 05:16 PM
Unlocking Windows partition Waldhorn34 Linux - Hardware 7 10-05-2004 02:41 PM


All times are GMT -5. The time now is 08:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration