Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #228368
| From | john doe <johndoe65534@mail.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Qemu 9pfs sftp chrootdirectory option issue |
| Date | 2020-10-28 20:10 +0100 |
| Message-ID | <B4YZz-4HJ-3@gated-at.bofh.it> (permalink) |
| References | (3 earlier) <B2twR-2ja-1@gated-at.bofh.it> <B4XAu-3Hd-9@gated-at.bofh.it> <B4XTP-3OL-1@gated-at.bofh.it> <B4YmR-4fb-3@gated-at.bofh.it> <B4YPT-4p0-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 10/28/2020 7:50 PM, Markus Schönhaber wrote: > 28.10.20, 19:19 +0100 john doe: > >> On 10/28/2020 6:51 PM, Markus Schönhaber wrote: >>> 28.10.20, 18:30 +0100 john doe: >> >>>> $ ls -dl /srv/sftp/9p >>>> drwx------ 8 root root ... /srv/sftp/9p >>> >>> Isn't "9p" supposed to be the share directory? If it is, why is it owned >>> by root and has these restrictive permissions? >>> >> >> Because of the chrootdirectory directive (see above). > > That's why I suggested (twice!) to set the ChrootDirectory to the > directory that *contains* the share directory. > >>> Assuming >>> ChrootDirectory -> /srv/sftp -> make this root:root, drwxr-xr-x >>> share -> /srv/sftp/9p -> make this libvirt-qemu:libvirt-qemu, drwxr-xr-x >>> >> >> If I do that, I can't even connect to the sftp server: >> >> $ sftp sftp9p >> packet_write_wait: Connection to ::1 port 22: Broken pipe >> Connection closed > > The logs will probably tell you what exactly is wrong. > Yes the cause of this message is explained by the fatal message mentioned in my privious e-mail. As I'm not able to properly describe the issue I'm facing I will need to come at this from an other angle. Thanks anyway for your help. -- John Doe
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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