You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

咨询Arch Linux默认用户名与密码,及VM登录报错问题

Arch Linux 默认用户名与密码说明

Hey there, let's break this down clearly:

  • First off: Arch Linux has no pre-configured default regular user account, and there's no universal default root/root login combo either.
  • During the Arch installation process, you're explicitly required to set a custom password for the root user—it's a mandatory step the installer won't let you skip. The reason you're getting a login error with root/root is almost certainly because you set a different password during setup and forgot it.
  • If you can't recall your root password, here's how to reset it using the Arch installation media:
    1. Boot your VM from the Arch Linux installation ISO again to enter the live environment.
    2. Mount your system's root partition to /mnt—for example, if your root partition is /dev/sda2, run mount /dev/sda2 /mnt (adjust the device path to match your VM's setup).
    3. Enter the chroot environment with arch-chroot /mnt.
    4. Run passwd root and follow the prompts to set a new root password.
    5. Type exit to leave the chroot, then reboot your VM—you'll now be able to log in with the new password.

Once you're logged in as root, you'll probably want to create a regular user account for daily use. You can do that with:

  • useradd -m -G wheel your_username (replace your_username with your preferred name)
  • passwd your_username to set the user's password
  • Then run visudo and uncomment the line %wheel ALL=(ALL:ALL) ALL to give the user sudo privileges.

内容的提问来源于stack exchange,提问作者arunkumar sambu

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.14 09:11:37