Is this possible?
I've followed a guide and created a partition that is mountable by root, but am having a few problems getting it to mount as a user.
I thought it might have been a disk group issue so i added my main account to the disk group, but that didnt work.
I checked the permissions on /dev/mapper and they are owned by root.root. Would altering this to root.disk be a way of securing write access to /dev/mapper by a non-root account?
Also would doing any of this create any major security implications on the system?
The error message i get when running cryptsetup as a user is as follows:
Code:
[m1@Shadow1 /]$ cryptsetup -y -c twofish-cbc-essiv:sha256 create secure /dev/sda5
mlockall failed: Cannot allocate memory
WARNING!!! Possibly insecure memory. Are you root?
Command failed: Invalid argument
Is there a way to get around this error and allow the creation?
Sorry if this is longwinded. I've so far searched Google and LQ looking for anything to do with mounting encrypted partitions as a non root to no avail.