From unknown Sat Aug 09 01:05:42 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#44519 <44519@debbugs.gnu.org> To: bug#44519 <44519@debbugs.gnu.org> Subject: Status: Qemu fails to start Samba server Reply-To: bug#44519 <44519@debbugs.gnu.org> Date: Sat, 09 Aug 2025 08:05:42 +0000 retitle 44519 Qemu fails to start Samba server reassign 44519 guix submitter 44519 elaexuotee@wilsonb.com severity 44519 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 08 09:52:10 2020 Received: (at submit) by debbugs.gnu.org; 8 Nov 2020 14:52:10 +0000 Received: from localhost ([127.0.0.1]:59998 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbm38-0007GC-0p for submit@debbugs.gnu.org; Sun, 08 Nov 2020 09:52:10 -0500 Received: from lists.gnu.org ([209.51.188.17]:59168) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbm35-0007G3-O6 for submit@debbugs.gnu.org; Sun, 08 Nov 2020 09:52:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54340) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kbm35-0000FB-Em for bug-guix@gnu.org; Sun, 08 Nov 2020 09:52:07 -0500 Received: from m42-5.mailgun.net ([69.72.42.5]:19741) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kbm33-0005Kx-83 for bug-guix@gnu.org; Sun, 08 Nov 2020 09:52:07 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.wilsonb.com; q=dns/txt; s=krs; t=1604847120; h=Content-Type: MIME-Version: Message-Id: Subject: From: To: Date: Sender; bh=4izNqg1pSGYpjSlncyAgKVsM997A47d2OW+XcSHeA5c=; b=Qdfj7WHVnTXnlF/ZrW3O8NquSu8AtdIIOLCfIMpG45Z3xCuWLseyPIj+6Rlnx1EBsQELjvp4 /fLgYH/cGhjl2UC0NM768/R/TeVe5Ce6dY7/ltcxv7TOG0DQvccrvQVf8CqHCUMu0LDcyL+a dYpi1YmQ58nzu/8HdlhKhJIZxyW+EWf3n5p3YQbUzDRnP7JXklAkxjRYQu4Px4ru6hKY7sDn SsHHVP6Zc7GpFYNWE42nUU1dNADOJmfdYmNGjJXIIXsBFPcLKjsr2lplZ4h8ZDsZf5QBVcSC 2L/R12VEaPAwUqnbEjNaqRmf+WzB60f8XnEndVCHoo4lEQJffpI+1g== X-Mailgun-Sending-Ip: 69.72.42.5 X-Mailgun-Sid: WyJkMDM0YyIsICJidWctZ3VpeEBnbnUub3JnIiwgIjA4NTQ3YSJd Received: from wilsonb.com (wilsonb.com [104.199.203.42]) by smtp-out-n04.prod.us-west-2.postgun.com with SMTP id 5fa8060f23a1a2b32d427441 (version=TLS1.3, cipher=TLS_AES_128_GCM_SHA256); Sun, 08 Nov 2020 14:51:59 GMT Received: from localhost (KD106154076247.au-net.ne.jp [106.154.76.247]) by wilsonb.com (Postfix) with ESMTPSA id 3CFD8A0933 for ; Sun, 8 Nov 2020 14:51:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wilsonb.com; s=201703; t=1604847117; bh=4izNqg1pSGYpjSlncyAgKVsM997A47d2OW+XcSHeA5c=; h=Date:To:From:Subject:From; b=Eh4oausbivFk9Yp6ZNhnK1O1B45JQJdO9ti/9SAeiIiFoidXM4bkySiP4vpgNVooL L5w2gMf0gdHCx8ssvFRj52mNHDlXTs11DfIPNxZuLj0KCFv1qgwTPJXll/vFd3C63M XG5HaGxPH708SzkUMG3F3pxujNRi9Z5U+QTKbh3QLOg1hOFg5ObNgLR8B3FKst3cob g7y3JLbUbi8eSCdtNW/yOkkkQnFIfFt9t4Coars0LxTvwmiXtx6zrjAEm9nPIOU+yw 5UZDzgNZMinsI5v63YjGHUX9MsItBQ/w9kK8S4upjPmuh5BXzNgvrPLJh5PRA1wQsw 2CRyFfYiMFXcdrbFNmtzWv1pjyzOlezHthAGK4WifdveHriaRBVXff6xG/i58wMilE u/cNLR0V2Nu0FdwzE1lGj/i9ROVKaD3eIogTMhxiCvG5LpJlDmY6+uzaBpyCOHV2pK UvHCRv04jnx/xTbuxQaf71yGexRjExcypOL97xVpriomucrPwcW34+IP1vfnbgDXdr IZZg5c7SW1jjFioOV6oyOWU/bvFR5JAsvmlIQAXjWOP6McbFgHyCKrJncpuhbg5xYd p1yFBKKtgWkxdHPLQXDL4tQ8Cm2pcOzO0YwYivIBEqayCJ+FKZSKUc2FIxnpN3iH7Z KhUJcT9xtR0IQenFdFYjknhA= Date: Sun, 08 Nov 2020 23:52:00 +0900 To: bug-guix@gnu.org From: elaexuotee@wilsonb.com Subject: Qemu fails to start Samba server Message-Id: <2TW13SLBJ587U.3P9BRBVHZE7YV@wilsonb.com> User-Agent: mblaze/1.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_00c475be5ddb0dc418c6d302_=_" Received-SPF: pass client-ip=69.72.42.5; envelope-from=bounce+7434c3.08547a-bug-guix=gnu.org@mg.wilsonb.com; helo=m42-5.mailgun.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/08 07:53:21 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) This is a multipart message in MIME format. ------_=_00c475be5ddb0dc418c6d302_=_ Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey Guix, Having trouble getting the Samba directory share in qemu to work as adverti= sed: $ qemu-system-x86_64 -netdev user,id=3Dnet0,smb=3D/share ... Running something like the above with samba installed should spin up `smbd`= ; however, this doesn't happen. I see no smbd processes started. Qemu does cr= eate /tmp/qemu-smb.XXXXXX/smb.conf, however. Am I just missing something obvious? Can your reproduce? Digging through the qemu repo[0], it looks like qemu calls out to a samba daemon with an invocation that resolves to this: $ smbd -l /tmp/qemu-smb.XXXXXX -s /tmp/qemu-smb.XXXXXXX/smb.conf Manually running the above results in silent failure, though. To be clear, running the above with --foreground makes no difference. For good measure, I am attaching the smb.conf that qemu generates, in case = you want to directly try the smbd command without spinning up qemu. Note, you m= ay need to edit the 'path=3D/shared' line to an existing directory on your mac= hine. Throwing strace at the above shows that the daemon is getting EPERM when tr= ying to bind() the priviledged ports 445 and 139. Indeed, running the daemon under sudo works as expected, and I am able to access the shared directory from the guest machine as intended. Given the permission issues, I did try adding /sbin/smbd to my setuid-programs= , but that seems to make no difference. Is this a PEBKAC issue or a legitimate bug? [0]:https://github.com/qemu/qemu/blob/7f368aed672117980f7f09933e1eb3e1139ca= ae6/net/slirp.c ------_=_00c475be5ddb0dc418c6d302_=_ Content-Disposition: attachment; filename=smb.conf Content-Type: text/plain Content-Transfer-Encoding: 7bit [global] private dir=/tmp/qemu-smb.2IQ1T0 interfaces=127.0.0.1 bind interfaces only=yes pid directory=/tmp/qemu-smb.2IQ1T0 lock directory=/tmp/qemu-smb.2IQ1T0 state directory=/tmp/qemu-smb.2IQ1T0 cache directory=/tmp/qemu-smb.2IQ1T0 ncalrpc dir=/tmp/qemu-smb.2IQ1T0/ncalrpc log file=/tmp/qemu-smb.2IQ1T0/log.smbd smb passwd file=/tmp/qemu-smb.2IQ1T0/smbpasswd security = user map to guest = Bad User load printers = no printing = bsd disable spoolss = yes usershare max shares = 0 [qemu] path=/share read only=no guest ok=yes force user=x ------_=_00c475be5ddb0dc418c6d302_=_-- From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 09 00:28:08 2020 Received: (at 44519-done) by debbugs.gnu.org; 9 Nov 2020 05:28:08 +0000 Received: from localhost ([127.0.0.1]:33569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbziq-00070u-EU for submit@debbugs.gnu.org; Mon, 09 Nov 2020 00:28:08 -0500 Received: from m42-5.mailgun.net ([69.72.42.5]:45469) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbzil-00070K-1m for 44519-done@debbugs.gnu.org; Mon, 09 Nov 2020 00:28:07 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.wilsonb.com; q=dns/txt; s=krs; t=1604899684; h=Message-Id: Subject: From: To: Date: Sender; bh=HKRJ8lspVQkRWQhm2OxKr8iNsJYWpe2Lsz0zBqBP/1c=; b=UEVlmIO51BsaZi18eaPXaaMRp5By5ApxtMIB5zhgcKRyC5hjc4QFOpSsP05mo/Gq4Lg0Zbxu na4ijTQE1RyfT7clnXGe0PNDgVSC9jkQBt0hylngiSn2LFPILfKuBhOV7bM2JmkBBuo0soHj tr1ORHn6m7l8MNPtre+g2irLZXwTjgKbEJ3MeqUtXjYS8y8ghQXEmpsA2SyWAcPNNo7cVYTO wn85w5XE8SQJ6ZryIDOqnWLYQ++wniVAqLznVsi30iX6gaI/w6DAW9VifC9rnPWLZ0dkkIba TFBCk6PUGKSd8jXB36zfEySuvr6IzyH6MWqd7WhFxi65D9bPFk58tg== X-Mailgun-Sending-Ip: 69.72.42.5 X-Mailgun-Sid: WyJhNGUxNyIsICI0NDUxOS1kb25lQGRlYmJ1Z3MuZ251Lm9yZyIsICIwODU0N2EiXQ== Received: from wilsonb.com (wilsonb.com [104.199.203.42]) by smtp-out-n01.prod.us-west-2.postgun.com with SMTP id 5fa8d3501d3980f7d64a6eed (version=TLS1.3, cipher=TLS_AES_128_GCM_SHA256); Mon, 09 Nov 2020 05:27:44 GMT Received: from localhost (KD106154062084.au-net.ne.jp [106.154.62.84]) by wilsonb.com (Postfix) with ESMTPSA id 4A4B9A097A for <44519-done@debbugs.gnu.org>; Mon, 9 Nov 2020 05:27:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wilsonb.com; s=201703; t=1604899660; bh=HKRJ8lspVQkRWQhm2OxKr8iNsJYWpe2Lsz0zBqBP/1c=; h=Date:To:From:Subject:From; b=Uz3lVSNT0ornHcA8A0bOJJFdnY4kXPwR18dARse//HjJWtvnoLoO1XgkrPiyF1CAb SU0QuzIOff0nuyeXz1FhZJN3BEaheGjYYeZv4NrWhY/PJ6t9HHvMtBgNApLnGPO2Fn uRe30yiWRZDJv/RoinPpPfJpyEMddMzcuaSaBcbS1zllb15OlwAax5f4JiFyf5CP7/ EiFb69Q8ggKLhwJB67MKEOqxeiOd2FUEFHySZxkr9ZiFZnj9v/5zgv8Kpqrd+kyMoV e7bl5o11ZLvrKgeh/bZIiadcye3jfDqWTuxyMJDKNkuce57yHgB/0C2K387mDTLqgj hFueCiMTxylQRcAnMJjNFogGjzK8PA3G4JGL5Q16lcWXiY2P8KRdIUp5rPXtV+6LmL Cm0kZQmrzS04NtMdIj++EhbEuh3934SrmU2QBg+CCwp6IanYGeozH5GMiO7b0U3EzH ok0e01sSVDOijQutYm7mF97C0y8vbNVvZ0FmCD8mJHZBbeEERN03jCd7WSINFKy2Gt dkg2v215QY44IUSjGjHWw9QuddcXIjIBSUQBU5iuaELLlIXoirPZRy/pp2GUSEFcnb mHoJUbsNUUZCpTQvNhP8DXaaJeoftyUENwbm5iEeyG+9cK7wtJerRC/Z+FgQcGNkcX XcG0ovOb9lUDjo6N7Hj5eWKs= Date: Mon, 09 Nov 2020 14:27:37 +0900 To: 44519-done@debbugs.gnu.org From: elaexuotee@wilsonb.com Subject: Re: Qemu fails to start Samba server Message-Id: <3SWX1YQCFO35F.3ITRQ98CIOONV@wilsonb.com> User-Agent: mblaze/1.0 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 44519-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Um. Apparently, I was the one failing. I just tried connecting again, and as long as smbd has setuid, the qemu SMB share works as advertised. Sorry for the false alarm. From unknown Sat Aug 09 01:05:42 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 07 Dec 2020 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator