From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C75981382C5 for ; Wed, 10 Jun 2020 09:53:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D82C7E08D9; Wed, 10 Jun 2020 09:52:57 +0000 (UTC) Received: from mail-gw.thundermail.uk (mail-gw.thundermail.uk [149.255.60.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 818AAE08C8 for ; Wed, 10 Jun 2020 09:52:57 +0000 (UTC) Received: from mailgw01.thundermail.uk (mail-gw.thundermail.uk [149.255.60.66]) by mail-gw.thundermail.uk (Postfix) with ESMTPS id F19F0601094D for ; Wed, 10 Jun 2020 10:52:54 +0100 (BST) X-ASG-Debug-ID: 1591782774-05541315a7241cee0001-LfjuLa Received: from cloud307.thundercloud.uk (cloud307.thundercloud.uk [149.255.58.40]) by mailgw01.thundermail.uk with ESMTP id vkRDNBUVjxFgvJlH (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Wed, 10 Jun 2020 10:52:54 +0100 (BST) X-Barracuda-Envelope-From: confabulate@kintzios.com X-Barracuda-Effective-Source-IP: cloud307.thundercloud.uk[149.255.58.40] X-Barracuda-Apparent-Source-IP: 149.255.58.40 Received: from lenovo.localdomain (230.3.169.217.in-addr.arpa [217.169.3.230]) by cloud307.thundercloud.uk (Postfix) with ESMTPSA id B28C6C1DC73 for ; Wed, 10 Jun 2020 10:52:53 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kintzios.com; s=default; t=1591782774; bh=r44nzuranskxiL4E6b2g5j5fw54tY6yNFDxDHKFTvo4=; h=From:To:Subject; b=Gl8U/QBnuVdZeCN1e13cEYlYYx39Cev+3h7g9Sa55wC754EjCEpQ9CHX29y1B31bh psa9p+BG3cEciNX7I23k6NQ7ualLbHZtb2xuhk/RCG5yJnAqOshx7uyHhoZaMUuW6V jb9wb9S+CND7qBQ7tBs8qDBuD0DBsPvqmKFt3qUA= Authentication-Results: cloud307.thundercloud.uk; spf=pass (sender IP is 217.169.3.230) smtp.mailfrom=confabulate@kintzios.com smtp.helo=lenovo.localdomain Received-SPF: pass (cloud307.thundercloud.uk: connection is authenticated) From: Michael To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Encrypting a hard drive's data. Best method. Date: Wed, 10 Jun 2020 10:52:33 +0100 X-ASG-Orig-Subj: Re: [gentoo-user] Encrypting a hard drive's data. Best method. Message-ID: <3056283.aeNJFYEL58@lenovo.localdomain> In-Reply-To: <3082a322-c6f8-31e7-fbc4-823963307b87@gmail.com> References: <3082a322-c6f8-31e7-fbc4-823963307b87@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3062136.44csPzL39Z"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-PPP-Message-ID: <20200610095254.2709971.39872@cloud307.thundercloud.uk> X-PPP-Vhost: kintzios.com X-Barracuda-Connect: cloud307.thundercloud.uk[149.255.58.40] X-Barracuda-Start-Time: 1591782774 X-Barracuda-Encrypted: ECDHE-RSA-AES128-GCM-SHA256 X-Barracuda-URL: https://149.255.60.66:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at thundermail.uk X-Barracuda-Scan-Msg-Size: 2144 X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=1.9 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.82452 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Archives-Salt: 4887a353-a92e-42fe-bd88-aeba0ec7daf6 X-Archives-Hash: 9a9ff7090fc77161d560edeadcd9c8b3 --nextPart3062136.44csPzL39Z Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" On Wednesday, 10 June 2020 07:59:19 BST Dale wrote: > Howdy, > > Same topic just new question. I use KDE and am wanting to have it so > the Device Notifier will allow me to mount the drive when I turn it on. I probably missed in earlier threads, but is this is an externally powered USB device? > So far, I got it set up and when I turn the drive on and click for it to > mount it, it asks me for a password. Where do you "click for it"? > I type in the password but it mounts it to the wrong place. Please define "wrong place". > If I do it on the command line, it works as expected. What is expected? > I have it set up in dmcrypt and fstab. So, command line > works, KDE's Device Notifier doesn't. For the avoidance of doubt: "command line" = /bin/mount "KDE's Device Notifier" = /usr/bin/udisksctl There is a difference between the two: $ ls -la /bin/mount -rws--x--x 1 root root 56360 May 11 00:25 /bin/mount $ ls -la /usr/bin/udisksctl -rwxr-xr-x 1 root root 60496 Nov 23 2019 /usr/bin/udisksctl You run mount as root with temporarily elevated privileges and operate on devices directly via the kernel, but can only mount such block devices if they have a corresponding /etc/fstab entry - unless you are root. You run udisksctl as plain user - it is a userspace command which operates on the udisks daemon to manipulate mountable devices via D-Bus. The default mountpoint by udisksctl is under /run/media//LABEL > It tells me I don't have > permission to access but it also mounts it in the wrong place. I > suspect it mounting it in the wrong place leads to the permissions > error. It mounts under /run. I want it mounted under /home. You may be able to achieve this via udev rules for the specific UUID of the disk, or perhaps via a symlink from /home to the /run mountpoint. I haven't tested this, but you could give it a spin and see what you get. PS. You can ignore my earlier questions, no need to answer them. The structure of your message was perhaps back to front to assist my understanding. :-) --nextPart3062136.44csPzL39Z Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAl7grWEACgkQseqq9sKV Zxlnlg//QeeNKzoVW5oC/PjmfQ1fRPzAik49IGUlYhUkuDDhPbZ3KHFGcIjRqdX7 c05yBG6OMVbKxYV2BvtJMWoT91ObK7Bvo9rAXYgYH1H//6NSm3Hs4idTWBE5MWvh v6CI4UVMYmGe0eeNAI55ANZYjo5TIq7d4Mc1S4Z7Ybt06gOS3FdfG7Vqp/cFrFZZ cOg2188FaFPibEtx126LLYi4Uu6nAhW9NCzAx5NHiKQyQGSWikcIhPMmf8hOdCxx H0uuVntRH/VZH6aiI1aQS9XXaGbNBbTJRHtRFMozK5nKWGGSDbgw2bhVOzwVK2qv /zmUArwrqKAaKRcmSlzjsZkx+cGWc2voU2miXo3ZpIoii8M1rVvQMq3b17RA4fVq Wj6jI3qde+Z9fbPulE1dJ2LFLk7lrJAIA8YMazJFKanDDyFHegdHtE2HxRuwBnB3 U66Lhvi+72cy+bMGbYFrCGIqLTlX+2Op40Ge9QJl+NT6WTvGtd3wQB5fsWX5QYzw 8uloXpYz22hFSoyCcLhmaSUeeKzhEhXMVr/jzzptC7NSAjjD0LhEUfDEzaydsMcb dAoaU/ll1N+4dxCcOFe2z1LyfwUWzl5w57voKGPhzVVEQEhpSkGhahJy8ARHSI3Z Z7FErf4MHYmBBF/njNmO5ho7oMYTodgxYsDuRcngPxqRUGQMnWQ= =lqHv -----END PGP SIGNATURE----- --nextPart3062136.44csPzL39Z--