Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #228031

Qemu 9pfs sftp chrootdirectory option issue

From john doe <johndoe65534@mail.com>
Newsgroups linux.debian.user
Subject Qemu 9pfs sftp chrootdirectory option issue
Date 2020-10-20 18:50 +0200
Message-ID <B22ZI-2V2-11@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Debians,

According to (1):

"ChrootDirectory
Specifies a path to chroot(2) to after authentication. This path, and
all its components, must be root-owned directories that are not writable
by any other user or group. After the chroot, sshd(8)"


i'm using the Qemu's 9p implimentation (mapped mode) to share files
between guests and host, (2) due to lack of space on the guest.
This mountpointis not owned by root and I'm  at a lost on how to have
sftp access to that guest while pointing the chroot directory directive
to that share.


Has anyone been able to set up the chrootdirectory directive with a 9p
share?
If yes, how is the host and the guest configured.

Any ideas on other approaches are also welcome.


1) https://linux.die.net/man/5/sshd_config
2) https://wiki.qemu.org/Documentation/9psetup

--
John Doe

Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Qemu 9pfs sftp chrootdirectory option issue john doe <johndoe65534@mail.com> - 2020-10-20 18:50 +0200
  Re: Qemu 9pfs sftp chrootdirectory option issue Markus Schönhaber <debian-user@list-post.mks-mail.de> - 2020-10-20 20:10 +0200
    Re: Qemu 9pfs sftp chrootdirectory option issue john doe <johndoe65534@mail.com> - 2020-10-21 19:20 +0200
      Re: Qemu 9pfs sftp chrootdirectory option issue Markus Schönhaber <debian-user@list-post.mks-mail.de> - 2020-10-21 23:10 +0200
        Re: Qemu 9pfs sftp chrootdirectory option issue john doe <johndoe65534@mail.com> - 2020-10-28 18:40 +0100
          Re: Qemu 9pfs sftp chrootdirectory option issue Markus Schönhaber <debian-user@list-post.mks-mail.de> - 2020-10-28 19:00 +0100
            Re: Qemu 9pfs sftp chrootdirectory option issue john doe <johndoe65534@mail.com> - 2020-10-28 19:30 +0100
              Re: Qemu 9pfs sftp chrootdirectory option issue Markus Schönhaber <debian-user@list-post.mks-mail.de> - 2020-10-28 20:00 +0100
                Re: Qemu 9pfs sftp chrootdirectory option issue john doe <johndoe65534@mail.com> - 2020-10-28 20:10 +0100
                Re: Qemu 9pfs sftp chrootdirectory option issue john doe <johndoe65534@mail.com> - 2020-11-09 10:00 +0100

csiph-web