[Bug 1258219] Re: smbclient 'put' fails with absolute path to local file

Robie Basak 1258219 at bugs.launchpad.net
Tue May 26 12:20:43 UTC 2015


Some mechanism needs to provide the local path, local name, remote path
and remote name to use. That's four things, and the "put X" command only
provides one. So how exactly these four things should be determined from
the one thing supplied is up to the definition of the "put" command,
which is something for the upstream Samba project to determine. Note
that the "cd" and "lcd" commands can be used to achieve what you want
already.

It would be unhelpful for Ubuntu to change the behaviour of the "put"
command as that could break existing scripts as well as confuse Samba
users switching between distributions. So what I think doesn't matter -
please take up any changes you want to make with the upstream Samba
project.

I'll mark this Won't Fix to reflect that there are currently no plans to
change this in Ubuntu directly. The bug status can change if upstream
change something or we change our mind for some reason.

** Changed in: samba (Ubuntu)
       Status: New => Won't Fix

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1258219

Title:
  smbclient 'put' fails with absolute path to local file

Status in samba package in Ubuntu:
  Won't Fix

Bug description:
  smbclient 2:3.6.3-2ubuntu2.6 on Ubuntu 12.04.3 LTS

  When issuing command similar to
  "smbclient --user=DOMAIN/domainuser -c "put /path/to/file.zip" //Machine/Share machinePassword

  rather than upload the local file /path/to/file.zip to remote //Machine/Share as expected, smbclient complains with the error
  "NT_STATUS_OBJECT_NAME_INVALID opening remote file \/path/to/file.zip"

  
  At the moment, for a workaround, we are using -c "lcd /path/to; put file.zip" which has been working, but this only works because the very simple script knows the absolute paths for the files we are backing up.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1258219/+subscriptions



More information about the foundations-bugs mailing list