New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qvm-run -u root does not work #2903

Closed
marmarek opened this Issue Jul 11, 2017 · 5 comments

Comments

Projects
None yet
2 participants
@marmarek
Member

marmarek commented Jul 11, 2017

Qubes OS version (e.g., R3.2): R4.0

Affected TemplateVMs (e.g., fedora-23, if applicable): debian-8, fedora-25

This applies to test image Qubes-DVD-x86_64-20170706.iso


Expected behavior:

qvm-run -u root d8test xterm open a root terminal in d8test (Debian 8 based VM).

Actual behavior:

Nothing happens, qvm-run exit code is 1.
qvm-run d8test xterm (without -u root) do work. Then, inspecting logs shows this:

Jul 11 14:14:56 d8test qrexec-agent[686]: executed root:QUBESRPC qubes.VMShell dom0 pid 932
Jul 11 14:14:56 d8test qrexec-agent[932]: PAM _pam_load_conf_file: unable to open /etc/pam.d/system-auth
Jul 11 14:14:56 d8test qrexec-agent[932]: PAM _pam_load_conf_file: unable to open /etc/pam.d/postlogin
Jul 11 14:14:56 d8test qrexec-agent[932]: PAM _pam_load_conf_file: unable to open /etc/pam.d/system-auth
Jul 11 14:14:56 d8test qrexec-agent[932]: PAM _pam_load_conf_file: unable to open /etc/pam.d/system-auth
Jul 11 14:14:56 d8test qrexec-agent[932]: PAM _pam_load_conf_file: unable to open /etc/pam.d/system-auth
Jul 11 14:14:56 d8test qrexec-agent[932]: PAM _pam_load_conf_file: unable to open /etc/pam.d/postlogin
Jul 11 14:14:56 d8test qrexec-agent[686]: send exit code 1
Jul 11 14:14:56 d8test qrexec-agent[686]: pid 932 exited with 1
Jul 11 14:14:56 d8test qrexec-agent[686]: eintr

Steps to reproduce the behavior:

  1. Call qvm-run -u root d8test xterm

@marmarek marmarek added this to the Release 4.0 milestone Jul 11, 2017

@marmarek marmarek changed the title from qvm-run -u root does not work on Debian 8 template to qvm-run -u root does not work Jul 11, 2017

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Jul 11, 2017

Member

Actually, it doesn't work on Fedora either.

Member

marmarek commented Jul 11, 2017

Actually, it doesn't work on Fedora either.

marmarek added a commit to marmarek/old-qubes-core-agent-linux that referenced this issue Jul 12, 2017

qrexec: start process in a login shell
Prepend "-" to shell name, to instruct it being a login shell. This way
shell will initialize environment, load /etc/profile etc.

Fixes QubesOS/qubes-issues#2903
@qubesos-bot

This comment has been minimized.

Show comment
Hide comment
@qubesos-bot

qubesos-bot Jul 12, 2017

Automated announcement from builder-github

The package qubes-core-agent_4.0.5-1+deb8u1 has been pushed to the r4.0 testing repository for the Debian jessie template.
To test this update, first enable the testing repository in /etc/apt/sources.list.d/qubes-*.list by uncommenting the line containing jessie-testing, then use the standard update command:

sudo apt-get update && sudo apt-get dist-upgrade

Changes included in this update

Automated announcement from builder-github

The package qubes-core-agent_4.0.5-1+deb8u1 has been pushed to the r4.0 testing repository for the Debian jessie template.
To test this update, first enable the testing repository in /etc/apt/sources.list.d/qubes-*.list by uncommenting the line containing jessie-testing, then use the standard update command:

sudo apt-get update && sudo apt-get dist-upgrade

Changes included in this update

@qubesos-bot qubesos-bot referenced this issue in QubesOS/updates-status Jul 12, 2017

Closed

core-agent-linux v4.0.5 (r4.0) #132

@qubesos-bot

This comment has been minimized.

Show comment
Hide comment
@qubesos-bot

qubesos-bot Jul 12, 2017

Automated announcement from builder-github

The package qubes-core-agent_4.0.5-1+deb9u1 has been pushed to the r4.0 testing repository for the Debian stretch template.
To test this update, first enable the testing repository in /etc/apt/sources.list.d/qubes-*.list by uncommenting the line containing stretch-testing, then use the standard update command:

sudo apt-get update && sudo apt-get dist-upgrade

Changes included in this update

Automated announcement from builder-github

The package qubes-core-agent_4.0.5-1+deb9u1 has been pushed to the r4.0 testing repository for the Debian stretch template.
To test this update, first enable the testing repository in /etc/apt/sources.list.d/qubes-*.list by uncommenting the line containing stretch-testing, then use the standard update command:

sudo apt-get update && sudo apt-get dist-upgrade

Changes included in this update

@qubesos-bot

This comment has been minimized.

Show comment
Hide comment
@qubesos-bot

qubesos-bot Jul 12, 2017

Automated announcement from builder-github

The package python2-dnf-plugins-qubes-hooks-4.0.5-1.fc24 has been pushed to the r4.0 testing repository for the Fedora fc24 template.
To test this update, please install it with the following command:

sudo yum update --enablerepo=qubes-vm-r4.0-current-testing

Changes included in this update

Automated announcement from builder-github

The package python2-dnf-plugins-qubes-hooks-4.0.5-1.fc24 has been pushed to the r4.0 testing repository for the Fedora fc24 template.
To test this update, please install it with the following command:

sudo yum update --enablerepo=qubes-vm-r4.0-current-testing

Changes included in this update

@qubesos-bot

This comment has been minimized.

Show comment
Hide comment
@qubesos-bot

qubesos-bot Jul 12, 2017

Automated announcement from builder-github

The package python2-dnf-plugins-qubes-hooks-4.0.5-1.fc25 has been pushed to the r4.0 testing repository for the Fedora fc25 template.
To test this update, please install it with the following command:

sudo yum update --enablerepo=qubes-vm-r4.0-current-testing

Changes included in this update

Automated announcement from builder-github

The package python2-dnf-plugins-qubes-hooks-4.0.5-1.fc25 has been pushed to the r4.0 testing repository for the Fedora fc25 template.
To test this update, please install it with the following command:

sudo yum update --enablerepo=qubes-vm-r4.0-current-testing

Changes included in this update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment