Re: Pardon my slowness, but I have a basic question on uploading a file to my NAS

john Niendorf <[email protected]> Thu, 31 May 2018 16:24:58 -0600
Newsgroups gmane.network.lftp.user
Message-ID <[email protected]>
--===============3297988741948664862==
Content-Type: multipart/alternative; boundary="=-w4VXyGCkk6dvsdQ6GO7T"


--=-w4VXyGCkk6dvsdQ6GO7T
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit

Thank you Kai,
I found an odd thing. When I try using your command to send all text
files to a share on the NAS that I created it works perfectly.
When I try to ftp to the public directory I get the following error:
Access failed: 553 Users may not upload files (/public/Uploadtest.txt)
I googled this and it seems many people have had the same exact
problem. It seems to have to do with the fact that the share was
premade by Western Digital and not a share that I made.
What I don't understand is why I can upload the same file to the public
directory using Filezilla, but not LFTP.
Thank you for your help.
John
On Thu, 2018-05-31 at 20:27 +0200, Kai Stian Olstad wrote:
> On 31.05.2018 14:38, john Niendorf wrote:
> > 
> > I have read the man page for LFTP as well as searched on the web,
> > but I
> > guess I fundamentally do not understand the basics of LFTP.
> > My question is: How would I move a file from ~/Desktop to the NAS
> > public directory?
> > 
> > I can do this in Filezilla, but have been unable to get it to work
> > from
> > the command line.
> > 
> > I tried several variations of :
> > 
> > lftp  mput ftp:// id="-x-evo-selection-start-
> > marker">192.168.1.238/public /home/john/Desktop/*.txt -p 21 -u
> > <name>,<password>
> > 
> > I am using mput to avoid typing the exact name of the file each
> > time.
> > The public directory on the NAS is open to all users, but anonymous
> > FTP
> > is disabled. A user name and password is required to FTP into the
> > public directory.
> > 
> > What am I doing wrong? I would greatly appreciate any help.
> try
> lftp -c 'open -u <name>,<password> 192.168.1.238; mput -O /public 
> /home/john/Desktop/*.txt'
> 
--=-w4VXyGCkk6dvsdQ6GO7T
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: 7bit

<html><head></head><body><div>Thank you Kai,</div><div><br></div><div>I found an odd thing. When I try using your command to send all text files to a share on the NAS that I created it works perfectly.</div><div>When I try to ftp to the public directory I get the following error:</div><div><br></div><div>Access failed: 553 Users may not upload files (/public/Uploadtest.txt)</div><div><br></div><div>I googled this and it seems many people have had the same exact problem. It seems to have to do with the fact that the share was premade by Western Digital and not a share that I made.</div><div>What I don't understand is why I can upload the same file to the public directory using Filezilla, but not LFTP.</div><div><br></div><div>Thank you for your help.</div><div><br></div><div>John</div><div>
 <br></div><div>On Thu, 2018-05-31 at 20:27 +0200, Kai Stian Olstad wrote:</div><blockquote type="cite"><pre>On 31.05.2018 14:38, john Niendorf wrote:
<blockquote type="cite">
I have read the man page for LFTP as well as searched on the web, but I
guess I fundamentally do not understand the basics of LFTP.
My question is: How would I move a file from ~/Desktop to the NAS
public directory?

I can do this in Filezilla, but have been unable to get it to work from
the command line.

I tried several variations of :

lftp&nbsp;&nbsp;mput ftp:// id="-x-evo-selection-start-
marker"&gt;192.168.1.238/public /home/john/Desktop/*.txt -p 21 -u
&lt;name&gt;,&lt;password&gt;

I am using mput to avoid typing the exact name of the file each time.
The public directory on the NAS is open to all users, but anonymous FTP
is disabled. A user name and password is required to FTP into the
public directory.

What am I doing wrong? I would greatly appreciate any help.
</blockquote>

try
lftp -c 'open -u &lt;name&gt;,&lt;password&gt; 192.168.1.238; mput -O /public 
/home/john/Desktop/*.txt'

</pre></blockquote></body></html>
--=-w4VXyGCkk6dvsdQ6GO7T--


--===============3297988741948664862==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
lftp mailing list
[email protected]
http://univ.uniyar.ac.ru/mailman/listinfo/lftp

--===============3297988741948664862==--