LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 10: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, 05:03 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
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 05:06 PM.
 
1 members found this post helpful.
Old 12-12-2014, 10:30 AM   #3
bikesh
LQ Newbie
 
Registered: Nov 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
thanks TBOne

thanks
 
  


Reply



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 05:45 PM
Shrink partition (LVM encrypted PVs + encrypted LVs) gedaj Linux - Newbie 2 05-22-2013 03: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 09:36 PM
usb stick unlocking scheme for root encrypted partition in current escaflown Slackware 6 05-09-2010 04:16 PM
Unlocking Windows partition Waldhorn34 Linux - Hardware 7 10-05-2004 01:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:49 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
Open Source Consulting | Domain Registration