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 03-29-2020, 05:25 PM   #1
MozillaUser3172
LQ Newbie
 
Registered: Mar 2020
Posts: 23

Rep: Reputation: Disabled
Why does xfce FileManager non handle LUKS correctly?


I insert a LUKS encrypted thumb drive.
I click the icon.
It asks for my password. OK so far so good.
Then it asks me for the root password. Why?
Later, when I'm done, I click the eject icon.
It fails to eject i.e. it fails to umount and then the luksClose. Why?
It gets so screwed up, I have to power down the computer to properly eject it.
 
Old 03-30-2020, 07:37 PM   #2
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 974

Rep: Reputation: 238Reputation: 238Reputation: 238
I ran into the same hitch, and concluded that, well, maybe because it misses something, possibly the proper info to open the encrypted partition; luks (especially when combined with lvm like in my case) is more than just a password...

Below the script I use for one particular encrypted external drive for connection; note the names 'lukssdc1'; '4Tvg' were all generated when that luks-partition/volume group was created and registered with the machine it runs on, so don't copy. Best to read the Slackware/README_CRYPT.txt and Slackware/README_LVM.txt and follow the steps that suit and assemble these in a script that works.

After my drive is inserted and the icon shows I click the xfce-dialog for the password away and instead run this script from a terminal with 'start' as option (and the same with 'stop' before pulling the drive out..), then giving the password works....

Code:
# !/bin/bash
# steps to mount external DATA_ANALYSIS_4 drive
#
# /usr/local/sbin/DATA_ANALYSIS_4.sh
#
# start/stop

case "$1" in
  'start')
        #cryptsetup luksOpen /dev/sdc1 lukssdc1
        cryptsetup luksOpen UUID="3b76d01f-7aae-4385-8260-0b1445aefddf" lukssdc1
        lvchange -a y 4Tvg
        mount /dev/4Tvg/working_4Tb
;;
  'stop')
        umount /home/working/DATA_ANALYSIS_4
        lvchange -a n 4Tvg
        cryptsetup close lukssdc1
;;
  *)
    echo "Usage: $0 {start|stop}"
  ;;
esac
the script is combined with this line in /etc/fstab, so that the drive always loads at the same mount point (handy for making backups etc):
Code:
/dev/4Tvg/working_4Tb  /home/working/DATA_ANALYSIS_4  ext4    defaults     1   2
hth

Last edited by brobr; 03-30-2020 at 07:38 PM.
 
1 members found this post helpful.
Old 03-30-2020, 07:44 PM   #3
MozillaUser3172
LQ Newbie
 
Registered: Mar 2020
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by brobr View Post

the script is combined with this line in /etc/fstab, so that the drive always loads at the same mount point (handy for making backups etc):
It's fun to solve these problems but at a certain point I just have to ask: Why don't they fix it?
One programmer fixing a problem is simpler than 100 users toiling to find a workaround.
 
Old 03-30-2020, 08:39 PM   #4
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Is this a problem with xfce itself or Slackware's implementation of xfce? Many distros are now using systemd and pam and if opening encrypted thumbdrives works as expected on those distros, it might be a limitation of the software Slackware uses or a bug with xfce that no one has notified them of.
 
Old 03-30-2020, 10:12 PM   #5
MozillaUser3172
LQ Newbie
 
Registered: Mar 2020
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bassmadrigal View Post
Is this a problem with xfce itself or Slackware's implementation of xfce? Many distros are now using systemd and pam and if opening encrypted thumbdrives works as expected on those distros, it might be a limitation of the software Slackware uses or a bug with xfce that no one has notified them of.
When I tried using debian it was far worse. There were two competing pieces of software trying to control the encrypted drive. At one point I ejected a drive using software #1 and the other piece of software #2 started producing infinite notifications springing up from the lower right complaining about its belief that something went wrong.
 
Old 03-30-2020, 11:47 PM   #6
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
If that's the case, it seems this may be something you'd need to bring up to the xfce devs. Pat and team package upstream as vanilla as possible and if the problem doesn't seem to be with Slackware itself, it might be best to notify xfce devs and see if it's something on their end to fix.
 
Old 03-31-2020, 04:55 AM   #7
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 974

Rep: Reputation: 238Reputation: 238Reputation: 238
Maybe the combination on this drive of luks with LVM, complicates it. The LVM layer is completely unnecessary in this case (a backup drive that only needed encryption) but I only realized this after all the stuff was already backed-up to it ...). But if the OP gets this behaviour with a luks only drive, then still the communication with cryptsetup is not handled or not in a way that suits a Slackware set-up.
 
  


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] Xfce custom action to open filemanager with root priveleges LinChapulin Linux - Desktop 8 09-07-2016 02:08 PM
Slackware 14.2 SCIM input issue: cannot imput alpha letters(half-width) using scim, no fast searching for XFCE FileManager kcynice Slackware 0 07-21-2016 03:45 AM
[SOLVED] Ubuntu filemanager does not access mounted nfs directories Jykke Linux - Desktop 2 09-20-2015 03:19 AM
oggenc does not handle special characters correctly hansalfredche Linux - Software 2 08-24-2007 03:42 AM
How does linux handle ansi code correctly? twirl Programming 1 09-30-2005 08:03 AM

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

All times are GMT -5. The time now is 11:48 PM.

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