"Permission denied" when running provision (with possible fix)

Michael Wood esiotrot at gmail.com
Fri Feb 3 03:31:40 MST 2012

On 3 February 2012 05:10, Horacio G. de Oro <hgdeoro at gmail.com> wrote:
> OSError: [Errno 13] Permission denied: '/opt/samba4-3bea5a147b3fYaLt'
> The install location is "/opt/samba4-3bea5a147b/" (I think the extra
> "3fYaLt" is a random string added to create the temporary file) and I
> think the problem is that the directory name is passed to
> NamedTemporaryFile() with "prefix". I'm the owner of
> "/opt/samba4-3bea5a147b/" but I've no permission on /opt. Using "dir"
> instead of "prefix" makes the script work. The attached patch 0001
> changes that.
> I've found that the same is used on
> source4/scripting/python/samba/netcmd/domain.py, so the 0002 patch
> removes "prefix" an put "dir" in that file, but this is totally
> untested and don't know if the changes of the two patches breaks
> anythiny... I don't know if 0002 is really needed...

Both changes seem sensible to me.

Michael Wood <esiotrot at gmail.com>

More information about the samba-technical mailing list