AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-1154734

Natan's questions

Martin Hope
Natan
Asked: 2025-04-14 17:51:48 +0800 CST

使用 LUKS 时禁用解锁密钥环的密码是否安全?

  • 10

一般来说,人们警告不要禁用解锁密钥环的密码(当您登录计算机时,登录密钥环没有解锁,如何才能停止在启动时提示解锁“默认”密钥环?),这避免了在没有密码的情况下自动登录时出现解锁密钥环的提示。

不过,我觉得通过 LUKS 加密驱动器时,安全问题并不重要。我只使用自动登录,因为无论如何我都需要通过 LUKS“登录”,而且我觉得这样足够安全。但考虑到其他帖子里提到的坚定建议,我怀疑自己是否遗漏了什么。

我们在登录后永久解锁密钥环后,是否存在可以再次使用的状态?我想也许当我们退出时,这会成为一个问题,但话说回来,如果你退出,你就无法通过自动登录登录。所以这两种情况(自动登录 + LUKS,常规登录)的行为都是一样的,因为你需要输入密码才能登录,而这无论如何都会导致密钥环被解锁。

也许我无法提出真正的问题,因为使用具有自动登录和解锁密钥环的 LUKS 时没有真正的问题。

login
  • 1 个回答
  • 228 Views
Martin Hope
Natan
Asked: 2023-04-18 16:33:00 +0800 CST

virtualbox:如何修复 NS_ERROR_FAILURE (0X80004005)

  • 4

我正在尝试启动一个 Windows Oracle 虚拟机,但是当 VM 启动时,我收到此错误:

VT-x is disabled in the BIOS for all CPU modes (VERR_VMX_MSR_ALL_VMX_DISABLED).
Result Code:
NS_ERROR_FAILURE (0X80004005)
Component:
ConsoleWrap
Interface:
IConsole {6ac83d89-6ee7-4e33-8ae6-b257b2e81be8}

我试过了,但它没有改变任何东西:virtualbox NS_ERROR_FAILURE (0x80004005)没有找到任何东西,因此我完成了所有 3 个步骤。

我不确定如何进一步调试,感谢任何帮助。

附加信息

主板

# dmidecode 3.3
Getting SMBIOS data from sysfs.
SMBIOS 2.7 present.

Handle 0x0002, DMI type 2, 16 bytes
Base Board Information
    Manufacturer: Hewlett-Packard
    Product Name: 198F
    Version: KBC Version 15.59
    Serial Number: PDXVC001X6NEGW
    Asset Tag: Not Specified
    Features:
        Board is a hosting board
        Board is replaceable
    Location In Chassis:  
    Chassis Handle: 0x0003
    Type: Unknown
    Contained Object Handles: 0

BIOS

BIOS Information
        Vendor: Hewlett-Packard
        Version: L71 Ver. 01.39
        Release Date: 09/26/2016
        Address: 0xF0000
        Runtime Size: 64 kB
        ROM Size: 8 MB
        Characteristics:
                PCI is supported
                PC Card (PCMCIA) is supported
                BIOS is upgradeable
                BIOS shadowing is allowed
                Boot from CD is supported
                Selectable boot is supported
                EDD is supported
                Print screen service is supported (int 5h)
                8042 keyboard services are supported (int 9h)
                Serial services are supported (int 14h)
                Printer services are supported (int 17h)
                ACPI is supported
                USB legacy is supported
                Smart battery is supported
                BIOS boot specification is supported
                Function key-initiated network boot is supported
                Targeted content distribution is supported
                UEFI is supported
        BIOS Revision: 1.39
        Firmware Revision: 21.89

系统信息

System Information
    Manufacturer: Hewlett-Packard
    Product Name: HP EliteBook 840 G1
    Version: A3009DD10303
    Serial Number: CNU421B1DS
    UUID: 2b64bbff-8540-11e3-b4b3-c316d107e0ff
    Wake-up Type: Power Switch
    SKU Number: G9T17EP#ABU
    Family: 103C_5336AN G=N L=BUS B=HP S=ELI
virtualbox
  • 1 个回答
  • 26 Views
Martin Hope
Natan
Asked: 2022-04-28 13:46:55 +0800 CST

导致这种不同 if 行为的 shell 脚本和 shell 内执行之间有什么区别?

  • 0

在 xfce4-terminal 我执行:

if [[ $(pgrep -x xfce4-terminal) ]]; then         echo "there are files" > test.txt;     else         echo "no files found" > test.txt;     fi

其中写道there are files。test.txt如果我在一个 shell 脚本中执行同样的事情,当说 xfce4-terminal 仍然打开时调用,它会写:no files found在test.txt:

if [[ $(pgrep -x xfce4-terminal) ]]; then         echo "there are files" > test.txt;     else         echo "no files found" > test.txt;     fi

为什么会这样,我该怎么做才能修复(使 shell 脚本表现得像 shell)?

检查$(pgrep -x xfce4-terminal)

从终端:

echo $(pgrep -x xfce4-terminal) > toast.txt
# 8257

从外壳脚本:

echo $(pgrep -x xfce4-terminal) > toast.txt
# 8257
command-line
  • 2 个回答
  • 43 Views
Martin Hope
Natan
Asked: 2022-04-25 06:09:58 +0800 CST

ubuntu22.04如何安装qt

  • 7

在 ubuntu20.04qt5-default中是包名。所以我qt6-default在 22.04 尝试了同样的方法。

然后我尝试apt-cache search qt了它揭示的(在许多其他中):qt6-base-dev和qt5-base-dev.

我不确定新的 qt{version}-base-dev 是否​​是旧的qt5-default. 如果不是:什么是?

qt
  • 2 个回答
  • 10695 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve