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
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) samba/* .tdb samba/* .tdb
# 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/
chmod g+rw /var/lib/
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 smb.1234- 0 samba/group_ mapping. ldb' - '(null)'
cd /tmp/qemu-
/usr/sbin/smbd -i -s smb.conf
ends with:
"""
...
Failed to open group mapping ldb '/var/lib/
...
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