[Bug 50385] Re: samba does not support private dir option (qemu related)
** Changed in: samba (Debian) Status: Confirmed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/50385 Title: samba does not support private dir option (qemu related) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/kvm/+bug/50385/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 50385] Re: samba does not support private dir option (qemu related)
** Package changed: qemu (Debian) => samba (Debian) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/50385 Title: samba does not support private dir option (qemu related) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/kvm/+bug/50385/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 50385] Re: samba does not support private dir option (qemu related)
** Changed in: qemu (Debian) Status: Fix Released => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/50385 Title: samba does not support private dir option (qemu related) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/kvm/+bug/50385/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 50385] Re: samba does not support private dir option (qemu related)
Hi, work-around for user accounts you trust as administrators, if you don't want to run everything as root, but are not so insane as to use `chmod a+rw`: essentially just give the user permission to the files in the /var/lib/samba dir as noted by others earlier. (as root) # disable samba startup at boot: (so only qemu's one will be running) update-rc.d -f samba remove adduser $YOU adm chgrp adm /var/lib/samba/*.tdb chmod g+rw /var/lib/samba/*.tdb I also applied that to /var/lib/samba/perfmon and the parent dir but I don't know if that is really necessary. note that cd /tmp/qemu-smb.1234-0 /usr/sbin/smbd -i -s smb.conf ends with: """ ... Failed to open group mapping ldb '/var/lib/samba/group_mapping.ldb' - '(null)' ... Abnormal server exit: open_sockets_smbd() failed BACKTRACE: ... ... """ but C:\> net use e: \\10.0.2.4\qemu in the WinXP guest works. shrug. tested in Debian/squeeze + samba 2:3.5.6~dfsg-3squeeze2 :-/ Hamish -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/50385 Title: samba does not support private dir option (qemu related) -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 50385] Re: samba does not support private dir option (qemu related)
Observed this in samba on Maverick. Specifically I'm observing schannel_store.tdb in /etc/samba. There is a Debian bug #454770 describes this problem but that bug is marked archived because 'Fixed in version samba/2:3.2.0-3'. I'm not sure how that corresponds with version 2:3.5.4~dfsg-1ubuntu8.3 which is the maverick version. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/50385 Title: samba does not support private dir option (qemu related) -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 50385] Re: samba does not support private dir option (qemu related)
** Changed in: qemu (Debian) Status: Confirmed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/50385 Title: samba does not support private dir option (qemu related) -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 50385] Re: samba does not support private dir option (qemu related)
Issue still exists in lucid. I find this a useful feature, so fix would be welcome. -- samba does not support private dir option (qemu related) https://bugs.launchpad.net/bugs/50385 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 50385] Re: samba does not support private dir option (qemu related)
samba uses two directories: * private-dir (/etc/samba/private by default) to hold various "secret" tdbs * state-dir (/var/lib/samba by default) fhs-filespaths.patch ensures that for passdb.tdb, secrets.tdb and schannel_store.tdb, we use state-dir instead of private-dir. qemu overrides private-dir, but not state-dir. One fix for this bug would be to set private-dir=/var/lib/samba and drop the patch, that would allow qemu to happily override it. The potential regression is about all the other files that use private-dir directly. The only one I could find in code is idmap2.tdb (code in winbindd/idmap_tdb2.c). That one could probably live in /var/lib/samba as well, though it could cause upgrade headaches. ** Changed in: samba (Ubuntu) Status: Confirmed => Triaged -- samba does not support private dir option (qemu related) https://bugs.launchpad.net/bugs/50385 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs