Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] dm-crypt+luks - mounting as regular user
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Holysword
l33t
l33t


Joined: 19 Nov 2006
Posts: 946
Location: Greece

PostPosted: Sun Apr 26, 2015 3:07 am    Post subject: [SOLVED] dm-crypt+luks - mounting as regular user Reply with quote

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
View user's profile Send private message
DawgG
l33t
l33t


Joined: 17 Sep 2003
Posts: 808

PostPosted: Mon Apr 27, 2015 8:22 am    Post subject: pam_mount Reply with quote

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
View user's profile Send private message
Holysword
l33t
l33t


Joined: 19 Nov 2006
Posts: 946
Location: Greece

PostPosted: Sat Jan 16, 2016 3:33 pm    Post subject: Re: pam_mount Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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