问题:
我有一个服务,seafile.service启动后会自动启动 Seafile 服务器。但是,此服务无法在具有加密/home分区的Ubuntu 服务器上启动。该服务需要访问本指南中/home/sfadmin/seafile/seafile-server-latest/seafile.sh所示的。
即使手动解密/home分区后,该服务也无法自动启动 Seafile 服务器。当我通过执行手动启动服务时sudo systemctl start seafile.service,它可以工作,但是,/home即使分区已经解密并安装,我也被要求提供分区的解密密码。即使我输入了错误的密码,服务也能正常启动。
背景:
/home分区的Ubuntu 16.04.4 LTS 服务器。的/home分区使用DMCrypt(cryptsetup)加密。我使用本指南来加密我的/home分区。/etc/fstab配置有nofail指导对我的/home分区如下:/dev/mapper/data-home /home ext4 defaults,nofail 0 2/etc/crypttab的配置如下:data UUID=myuuidhere none luks,discard,noearly,nofail/home分区解密是手动完成的。每次启动后,我/home使用 SSH 命令远程解密分区sudo cryptsetup luksOpen /dev/sda3 data。/home分区。 尝试的解决方案
由于Seafile服务(/etc/systemd/system/seafile.service)需要访问/home的分区,我用后续指令对我的服务配置: …
我尝试使用双重性而不使用--no-encryption标志进行加密,尽管数据已存储且未加密,但我无法使用duplicity restore --file-to-restore选项恢复它(我收到错误消息test_file.txt not found in archive - no files restored.)。如果我尝试从我的档案中列出文件,我也会得到gpg: decryption failed: secret key not available.
显然,正如错误所说,我没有在我的 Ubuntu 上设置 GPG 密钥。有duplicity没有一种没有任何加密和 GPG 的方法?我知道 Duplicity 会对备份进行加密和签名,但是如何禁用对备份的签名?
我无法解密我openssl在 Ubuntu 16.04 上加密的许多文本文件。我总是收到此错误消息:
$ openssl des3 -d < ~/ISRIC/credentials.txt.des3.old > ~/temp/credentials.txt.old.2
enter des-ede3-cbc decryption password:
bad decrypt
139771261990464:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:../crypto/evp/evp_enc.c:536:
Run Code Online (Sandbox Code Playgroud)
我很确定密码是正确的。问题是什么?
由于我在笔记本上用LUKS加密了“/”和“/home”的分区,所以我的ssd整体写入速度很低。
硬件软件
分区
没有lvm
SSD
Nr Type Size FS
1 EFI 256MB vfat
2 Boot 512MB ext4
3 / 40GB ext4 (luks)
4 /home 80GB btrfs (luks)
HDD
Nr Type Size FS
1 /data 500GB btfs (luks)
Run Code Online (Sandbox Code Playgroud)
加密
我在所有分区上使用了相同的算法
cipher: aes-xts-plain64
keysize: 512 bits
hash: sha512
Run Code Online (Sandbox Code Playgroud)
密码设置基准 …
我刚刚在我的 NAS 上升级到 18.04。我有一个脚本,提示我的用户输入 luks 密码,然后在解密后安装驱动器。这曾经有效:
cryptsetup luksOpen /dev/md0 md0_crypt
udevadm settle --exit-if-exists=/dev/mapper/files--vg-main
mount /dev/mapper/files--vg-main /main
Run Code Online (Sandbox Code Playgroud)
但是,更新到 18.04 后,它停止工作,我得到: mount: /main: special device /dev/mapper/files--vg-main does not exist.
我还没有找到只是谷歌搜索的解决方案。我的 LUKS 容器是我的 pv。我把它放在一个叫做 files-vg 的 Vol 组中。然后我有一个路径为 /dev/files-vg/main 的逻辑卷。因此,为什么我要寻找 /dev/mapper/files--vg-main
编辑:澄清一下,该udevadm settle行没有等待足够长的 LV 可用,因此挂载失败。我可以手动调用,mount然后它会工作。
我刚刚按照屏幕上显示的说明从 Ubuntu 16.04 LTS 升级到 Ubuntu 18.04。
我正面临备份失败并出现以下错误。
Error processing remote manifest (duplicity-inc.20180923T095052Z.to.20180927T050242Z.manifest.gpg): GPG Failed, see log below:
===== Begin GnuPG log =====
gpg: WARNING: "--no-use-agent" is an obsolete option - it has no effect
gpg: starting migration from earlier GnuPG versions
gpg: porting secret keys from '/home/abhilash/.gnupg/secring.gpg' to gpg-agent
gpg: can't open '/home/abhilash/.gnupg/secring.gpg': Permission denied
gpg: AES encrypted data
gpg: encrypted with 1 passphrase
===== End GnuPG log =====
Run Code Online (Sandbox Code Playgroud) 我最近问了一个单独的Ask Ubuntu问题,正文中包含以下内容:
W: An error occurred during the signature verification.
The repository is not updated and the previous index files will be used.
GPG error: https://dl.winehq.org/wine-builds/ubuntu bionic InRelease:
The following signatures couldn't be verified
because the public key is not available: NO_PUBKEY 76F1A20FF987672F
Run Code Online (Sandbox Code Playgroud)
正如您所看到的,我的部分错误消息暴露了PUBKEY 76F1A20FF987672F. 这是 WINE 的公钥,还是我自己的公钥?
最重要的是,PUBKEY 76F1A20FF987672F我不应该在公共论坛(这个)上发布这些信息吗?
我认为私钥是我唯一不想泄露的东西。我现在正在阅读维基百科的公钥密码学页面,但这有点让人不知所措。
我使用此处指定的说明加密了我的主目录(特别是 fscrypt 指南,但我特意为我的密码设置了不同的解锁短语)。但是,我在启动 docker 服务时遇到了问题:
service_a | /bin/sh: 1: /code/app/bin/celery_worker.py: Required key not available
service_b | standard_init_linux.go:207: exec user process caused "required key not available"
service_c | standard_init_linux.go:207: exec user process caused "required key not available"
service_d | standard_init_linux.go:207: exec user process caused "required key not available"
Run Code Online (Sandbox Code Playgroud)
为了让他们访问我的主目录,我是否需要执行额外的步骤?想知道这是否与此无关。
编辑:维护者在那里为感兴趣的人留下了对我的评论的回复,不幸的是,这似乎离修复还有很长的路要走。
如何在 BitLocker 加密的 Windows 10 旁边安装 Ubuntu?
如果不可能依赖 TPM,我不介意切换到密码。
我的第一个问题是我可以在已经安装了带有 BitLocker 的 Windows 10 的计算机上安装 Ubuntu,还是需要先安装 Ubuntu,然后安装 Windows?
我们正在使用 Outlook Web Access 并希望使用 S/MIME 加密。
有一个用于将 S/MIME 控件安装到浏览器的 Microsoft 指南。
有没有办法让它在 Ubuntu 上工作?也许使用 Mono?