qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Re: Does anyone actually use -smb


From: Jamie Lokier
Subject: Re: [Qemu-devel] Re: Does anyone actually use -smb
Date: Tue, 5 May 2009 13:10:39 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

Jan Kiszka wrote:
> Jamie Lokier wrote:
> > Jan Kiszka wrote:
> >> Anthony Liguori wrote:
> >>> It looks to be broken.  I don't recall that Samba has every supported
> >>> running as an unprivileged user to so it would require launching as root.
> >> It works perfectly. I even have a patch pending that fixes the zombie
> >> issue it causes (more precisely, slirp missed that).
> > 
> > I've been unable to use it for a year or so due to Samba having
> > hard-coded directory paths, pointing into /var/lib/samba, which cannot
> > be overridden in the config file smb.conf.
> > 
> > (I forget which files were hard-coded, or which distro I hit that on.
> > Either CentOS, Debian or Ubuntu.  Files were something like
> > /var/lib/samba/{locking,connections}.tdb, perhaps?)
> > 
> > Because of those paths, non-root wasn't possible and running it as
> > root caused it to try to clobber some files which interfered with a
> > non-QEMU ("native") Samba running on the same machine for normal file
> > service.
> 
> I ran strace -e open and only caught this:
> 
> [pid 28902] open("/var/log/samba/log.smbd", O_WRONLY|O_CREAT|O_APPEND,
> 0644) = -1 EACCES (Permission denied)

Is that just starting Samba, or accessing a share from a Windows guest
and doing some file accesses with locking?

-- Jamie




reply via email to

[Prev in Thread] Current Thread [Next in Thread]