我在vagrant(Ubuntu 12.04 OS)中创建了一个新的非sudo用户(user1),并将不安全的公钥添加到user1授权密钥文件。在流浪的文件,添加默认的用户为“用户1”:非Sudo Vagrant用户的流浪汉失败
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
mkdir -p /vagrant
Stdout from the command:
Stderr from the command:
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
但如果是设置默认用户的sudo的用户,那么流浪汉:
config.ssh.default.username = "user1"
现在无业游民了与以下错误消息失败成功。 任何人都可以帮助我做出改变,我需要做的,以启用非sudo用户流浪。
为什么你想避免虚拟机上的sudo? – tmatilai
因为我不希望默认用户有权访问其他用户的文件和文件夹(因为sudo用户可以使用sudo命令访问所有内容)。 – user2846870
其他用户?如果你想在客机上安装或配置任何东西,你需要root权限。如果没有,为什么要使用流浪汉呢?直接创建并旋转虚拟机。 – tmatilai