LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-24-2022, 05:39 AM   #16
pchristy
Senior Member
 
Registered: Oct 2012
Location: South Devon, UK
Distribution: Slackware
Posts: 1,119

Original Poster
Rep: Reputation: Disabled

YES! Finally cracked it!

I created a file "15-mount-encrypted-system.rules" in /etc/polkit-1/rules.d :
Code:
polkit.addRule(function(action, subject) {
     if (action.id == "org.freedesktop.udisks2.encrypted-unlock-system" &&
          subject.active &&
          subject.isInGroup("GroupName")) {
          return polkit.Result.YES;
     }
});
To open the partition without needing the root password, you must be the active user and in the group "GroupName" (whatever group you think is appropriate).

Now I can open a local encrypted partition just like external drives, without needing the admin password.

Many thanks to all for your help, and particularly to zeebra who pointed me to the documentation that (eventually!) provided a solution.

--
Pete
 
5 members found this post helpful.
  


Reply



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
[SOLVED] Uefi and full disk encryption with lvm on luks with luks keyfile lancsuk Slackware 2 04-02-2021 02:43 PM
How to have luks encryption with keyfile OR passphrase (efi full disk encryption including boot)? byroncollege Linux - Security 2 03-30-2017 07:45 AM
LUKS on RAID or RAID on LUKS? retch Linux - Server 3 05-05-2010 01:57 PM
luks encryption, swap and hibernate BCarey Slackware 6 04-15-2008 05:48 PM
System encryption with dm-crypt and luks? Zmyrgel Slackware 9 09-02-2006 10:40 AM

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

All times are GMT -5. The time now is 01:24 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