View previous topic :: View next topic |
Author |
Message |
Holysword l33t


Joined: 19 Nov 2006 Posts: 946 Location: Greece
|
Posted: Sun Apr 26, 2015 3:07 am Post subject: [SOLVED] dm-crypt+luks - mounting as regular user |
|
|
Today I stumbled upon a problem.
I have recently encrypted my external hard driver with a keyfile (which is in another partition of the same hard driver). But only when I brought it to my friend's place (he is running Ubuntu) I realized that there was a problem. I can mount it via command line with cryptsetup luksOpen /dev/sdX /mnt/path -d /keyfile but that usually requires root permission. Now, Ubuntu does allow regular users to mount devices without need to sudo, even for encrypted devices using passphrases, but is there any way to do the same with an encrypted device? _________________ "Nolite arbitrari quia venerim mittere pacem in terram non veni pacem mittere sed gladium" (Yeshua Ha Mashiach)
Last edited by Holysword on Sat Jan 16, 2016 3:33 pm; edited 1 time in total |
|
Back to top |
|
 |
DawgG l33t


Joined: 17 Sep 2003 Posts: 845
|
Posted: Mon Apr 27, 2015 8:22 am Post subject: pam_mount |
|
|
i use a luks-encrypted home-partition on my laptop; when the user logs in, it is mounted with pam_mount. i use a passphrase but i am certain pam_mount works with keyfiles also. the initial setup (a long time ago) was a little tricky at first, but since then it's been working reliably - so i think pam_mount is definitely worth a try.
GOOD LUCK! _________________ DUMM KLICKT GUT. |
|
Back to top |
|
 |
Holysword l33t


Joined: 19 Nov 2006 Posts: 946 Location: Greece
|
Posted: Sat Jan 16, 2016 3:33 pm Post subject: Re: pam_mount |
|
|
DawgG wrote: | i use a luks-encrypted home-partition on my laptop; when the user logs in, it is mounted with pam_mount. i use a passphrase but i am certain pam_mount works with keyfiles also. the initial setup (a long time ago) was a little tricky at first, but since then it's been working reliably - so i think pam_mount is definitely worth a try.
GOOD LUCK! |
Ancient question, which I forgot to answer. I don't know exactly which functionality is doing that, but I started using plasma-desktop and it took care of it. I'd plug in the device, the notification would pop up, I enter the password, it mounts. Quite handy. _________________ "Nolite arbitrari quia venerim mittere pacem in terram non veni pacem mittere sed gladium" (Yeshua Ha Mashiach) |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|