Topic "ls -la fails on error when directory can be listed"

Author Message


$ ls -la
ls: 0653-345 ./..: Permission denied.
total 112
drwxrwxrwx 15 xxxxxxxx xxxxxxxx 4096 Nov 17 14:37 .
-rw------- 1 xxxxxxxx xxxxxxxx 59 Sep 22 07:58 .Xauthority
-rwx------ 1 xxxxxxxx xxxxxxxx 220 Sep 19 10:33 .profile
-rw------- 1 xxxxxxxx xxxxxxxx 268 Oct 09 09:40 .sh_history

The directory contents are listing fine. However, the '..' throws an error, so the whole 'ls -la' command fails when you try to change to a directory. Thus you can't get a directory and file listing for that folder.

The above was done in PuTTY to show that 'ls -la' is actually returning something. WinSCP fails on receipt of the first line instead of parsing the rest of the results.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26858
Location: Prague, Czechia
Have you tried to use SFTP?
Martin Prikryl

You can post new topics in this forum


What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License