LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   promblem with unlocking encrypted partition during system startup (https://www.linuxquestions.org/questions/linux-newbie-8/promblem-with-unlocking-encrypted-partition-during-system-startup-4175527517/)

bikesh 12-06-2014 10:36 AM

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

TB0ne 12-07-2014 05:03 PM

Quote:

Originally Posted by bikesh (Post 5280473)
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.

bikesh 12-12-2014 10:30 AM

thanks TBOne
 
thanks


All times are GMT -5. The time now is 11:50 PM.