Quantcast
Channel: Question and Answer » dm-crypt
Viewing all articles
Browse latest Browse all 16

access to mounted luks partition by non-root user

$
0
0

Recently I searched substitute for truecrypt and played a bit with cryptsetup. The steps I did:

  1. mkfs -t ext4 /dev/sdb1
  2. sudo cryptsetup open --type luks /dev/sdb1 enc_vol
  3. sudo mount /dev/mapper/enc_vol /mnt

After that I(non root user) can chdir to /mnt and can see files but can’t write anything there. Only root can write, but that is very inconvenient for me. As ls -l /dev/mapper/enc_vol shows it is symlink owned by root and which points to /dev/dm-1. Commands like chown “username”:”username” and chmod 777 cannot change “root”ness of beforementioned symlink to /dev/dm-1.

My question: how can I mount encrypted by cryptsetup luks partitions to be able to write files in it being non-root user?
Thanks.


Viewing all articles
Browse latest Browse all 16

Trending Articles