LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 04-03-2015, 03:30 PM   #1
pusrob
Member
 
Registered: Jan 2006
Distribution: Gentoo
Posts: 505

Rep: Reputation: 36
Question How to unlock LUKS encrypted partition as normal user?


Hi.

I'd like to know if there is a specific way to mount and unlock a LUKS encrypted partition as a normal user?

Right now I have two disks in my PC, one which contains / and /home (let it be sda), and the other which serves as backup (it should be sdb). On sdb I have one specific partition (sdb2) which is LUKS encrypted, and is not automounted at boot. I added sdb2 to fstab as /dev/mapper/luks-a123456-7890-etc with a predefined mount point (which is not the default mount location). This is an ext4 formatted luks partition, and has the noauto,user options in the fstab.

Despite the above mentioned setup, a root password is also asked after I provided the password necessary to unlock the encryption. I'm simply trying to access this partition through dolphin.

Could someone describe how to make it work without a root password? Thanks in advance.

P.S.: I'm using gentoo stable by the way.
 
Old 04-04-2015, 10:34 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
The fstab entry mounts the partition without root privileges.
LUKS decrypting need root access.

You can read through the ubuntu wiki for further details.
 
Old 04-04-2015, 10:51 AM   #3
pusrob
Member
 
Registered: Jan 2006
Distribution: Gentoo
Posts: 505

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by Keruskerfuerst View Post
LUKS decrypting need root access.
All right then, I guess I need to look for a way to decrypt the partition without root privileges. Any suggestions?

EDIT: Do I need to be a part of any special type of user group to do that?

Last edited by pusrob; 04-04-2015 at 10:59 AM.
 
Old 04-04-2015, 11:55 AM   #4
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Cryptsetup needs root priviledges to access device mapper.
 
  


Reply

Tags
encryption, luks, partition, user


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
encrypted second partition needing more than 1 key to unlock AnalBeard Linux - Server 2 04-13-2014 03:34 AM
[SOLVED] Unlock LUKS encrypted partition with USB drive yenn Slackware 4 02-26-2013 04:39 PM
New reiser partition. How can normal user write on it? pepeq Linux - Hardware 5 12-09-2004 06:20 PM
can't read window partition as normal user ngan_yine Slackware 1 09-27-2004 02:06 PM
how to unlock mounted win-partition for normal users? fernandoo Linux - Newbie 1 10-29-2003 01:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 03:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration